Intercept and cancel other plugin commands

Discussion in 'Plugin Development' started by void420, Jan 26, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    void420

    With plugins using the Command interface, is it possible to intercept commands going to them and / or cancel them?

    Interception is needed to keep a log of what a player is doing, very useful when dealing with griefers or thiefs.

    Cancelling is needed when the built in permission system is not flexible enough or a plugin authors fails to use permissions properly. Examples: making certain commands cost something, deny of the player doesn't have enough "money"; allow certain commands only in certain locations on the map; allow commands only when the server is mostly empty, etc.

    For example, as far as I know I can't stop players from listing what plugins are on the server or getting version information since this is built in the Command class.
     
Thread Status:
Not open for further replies.

Share This Page