Get in front of any other plugin at command execution

Discussion in 'Plugin Development' started by KoffiePatje, Nov 14, 2013.

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

    KoffiePatje

    Is there a way to make sure that my plugin recieves the command first, before any other plugin.

    And after that possibly completely cancels it for all other plugins, i made a command edit plugin which let the user create new commands that execute (multiple) other commands. Whenever a player creates a command that already exist the existing command + the editted command will be executed. I am looking for a fix for this problem. Any idea from you guys ?

    Kind regards,

    KoffiePatje
     
  2. Offline

    Xacero

  3. Offline

    ZeusAllMighty11

    You can set the load priority of your plugin to be after the plugin.
     
  4. Offline

    KoffiePatje

    Xacero

    I am actually using that already, at Highest priority... but there still seem to be some other plugins that do get in front of line... also, the documentation states that doing event.setCancelled(true); is not actually canceling the event untill all other plugins has recieved the same event.

    ZeusAllMighty11

    Yes i know this, this let me "load" the plugin earlier then any other but does that also include the command execution order?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
Thread Status:
Not open for further replies.

Share This Page