CommandBlock & Comparator help fast.

Discussion in 'Plugin Development' started by Kevin BEAUCORAL, Apr 4, 2013.

Thread Status:
Not open for further replies.
  1. Hi all,

    I'm currently making a plugin adding many commands for servers.

    I search to create an interaction with my new commands when they are executed with CommandBlock + Comparator.

    For exemple, I want that the Comparator pasted to the CommandBlock who executes this command, is enabled if the paremeter three of this command is "miss".

    How I can do that ?

    The onCommand fonction, is a boolean return, if I return 'false', it will make that I want ?
     
  2. Offline

    Nitnelave

    The boolean return value of the command indicates if the command has a valid syntax. Returning false will display the help of the command typed.
     
  3. Okey, and... how I can make that I want ?
     
  4. Offline

    Nitnelave

    I'm not sure for that, I haven't looked at how CommandBlocks work. Are you sure that they use the onCommand? If so, you can probably detect that they are CommandBlocks because the instance of CommadnSender is a CommandBlock or something like that. And I don't know much about Comparator either...
     
Thread Status:
Not open for further replies.

Share This Page