Command block api?

Discussion in 'Spigot Plugin Development' started by elio, May 19, 2015.

  1. Hi,
    I want to use "~ ~ detect ~ ~- " fonction of command block on my plugin to avoid PlayerMoveEvent how can I do that?
    Can you help me?
     
  2. If what you are saying is that you want to get the Command Block, and its command contents when the block is powered, refer to this https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/CommandBlock.html If what you are saying is you want to use a command block command, well the answer is you don't, you write code for the actions that detect does. Ive never really used detect but if you explain it I'm sure I can find you a solution. Just think what does detect do? There is no use in avoiding a playerMoveEvent in this situation, either way you will want to use a listener for efficiency.
     
    #2 vivabenfica4, May 19, 2015
    Last edited: May 19, 2015