Commands

Discussion in 'Plugin Development' started by Kohle, Jul 15, 2011.

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

    Kohle

    OK, so this may sound really dumb, but I dont know how to explain them...

    So if args was set to 1, and the command was /command playername it would pay attention to playername, right? So if args was 0, it would only pay attention to /command?

    That sounded retarded, Im sure.... but please help :p
     
  2. Offline

    bleachisback

    no, commandLabel is the /<commandLabel>
    args starts at /command <args[0]> <args[1]> etc..
     
  3. Offline

    Kohle

    Oh! Thanks!!!

    Now how about checking if a block is powered by redstone?

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  4. Offline

    bleachisback

    block.getBlockPower()
     
Thread Status:
Not open for further replies.

Share This Page