Paul2708 / simple-commands

An (even more) simplified and intuitive command framework for Spigot.
MIT License
14 stars 2 forks source link

Listener that listens to false usage, no permission, ... #12

Open Paul2708 opened 4 years ago

Paul2708 commented 4 years ago

Description

Possibility to listen to certain (custom) events.

Possible events:

Usage

Implementation idea Dispatch custom events by using the built-in event-system. More details about the event system can be found here.

nea89o commented 4 years ago

Spigot has their own event dispatchment system which we could use for this. See:

Paul2708 commented 4 years ago

Good point. Using the build-in event-system by Spigot makes a lot more sense too me.

Paul2708 commented 4 years ago

A good entry point would be CommandDelegator. Most of the checks are performed in #execute(...).