Check if /give command was used.

Discussion in 'Plugin Development' started by flyslasher, Mar 5, 2011.

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

    flyslasher

    How can I check if the /give command was used and disable/activate it? I am using onCommand() and before I was using onPlayerCommand() with event.setCancelled( true ); which worked, but now putting them in the yml file overrides the default /give =/
     
  2. Offline

    Plague

    There is the PLAYER_COMMAND_PREPROCESS which should not ordinarily be used, but for this I think it's justifiable
    it'S used exactly like PLAYER_COMMAND was
     
Thread Status:
Not open for further replies.

Share This Page