Getting preprocessed commands sent by command blocks

Discussion in 'Plugin Development' started by Imred_Gemu, Aug 11, 2015.

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

    Imred_Gemu

    I'm essentially trying to register commands per command sender. Certain commands being only available if they're sent from a specific command block or a specific player. I figure the simplest way to do this is to pull all commands via events and if they are available to the sender, run them. This works fine for command senders who actually have command events, but as far as I can tell there is no command event for command blocks. I looked into using the method where I pull all redstone events and check to see if they're being used on a command block, but the problem with that is there is I don't know how to get a reference to the command sender or how to prevent the command from running normally after I'm done with it. Anyone know any work-arounds?
     
  2. Offline

    Imred_Gemu

    Bumping this
     
  3. Offline

    cfil360

Thread Status:
Not open for further replies.

Share This Page