Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Execute command when hit sign

Comments in 'Plugin Development' started by Joe4047, Nov 8, 2015.

  1. Joe4047
    Offline

    Joe4047 New Member

    Joined:
    Jun 27, 2015
    Posts:
    25
    Minecraft User:
    OfficialJoey
    Does anyone have any code that when i would hit the sign it would execute the basic commands? or i could like edit it and make it use a command of my choice?
  2. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    what do you mean?

    A more detailed concept would be useful.
  3. Joe4047
    Offline

    Joe4047 New Member

    Joined:
    Jun 27, 2015
    Posts:
    25
    Minecraft User:
    OfficialJoey
    I would tap a sign and then the server would execute a command
  4. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    TapToDo ;)
  5. Joe4047
    Offline

    Joe4047 New Member

    Joined:
    Jun 27, 2015
    Posts:
    25
    Minecraft User:
    OfficialJoey
    I know this xD but i need code for it so i could combine it with an existing plugin
  6. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Try to learn TapToDo source
  7. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    You would have to handle PlayerInteractEvent and use Server->dispatchCommand(). And before creating a new thread, try looking into other people's plugins source code.
    iksaku likes this.
  8. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Just look at TapToDo's source code and learn from it. It does exactly what you are trying to do.

Share This Page

Advertisement