Skip to content

IllegalPluginAccessException when using EvtByReflection for non-event classes #39

@FranKusmiruk

Description

@FranKusmiruk

Describe the bug
As the title says, an IPAE is thrown when a class that doesn't implement Event is used as input.

To reproduce

import:
  java.util.function.Consumer


on Consumer:
  broadcast "%event%"

Expected behavior
I would expect the addon to do type-checking before casting or passing around the input, and throw an error if applicable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions