Much Needed Help

Discussion in 'Plugin Development' started by MojaveRattle, Jan 26, 2011.

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

    MojaveRattle

    This is my first plugin, and I'm trying to grasp the concept of Java [​IMG]. My first question is how would I have a command like menu display when a command is put in, then have a player reply with a command from that list to change a mob type in "public MobType getHatchType() return hatchType; }"? I'm sure I'll have a few more questions along the way, many thanks.
     
  2. Offline

    NathanWolf

    Start with some of the great tutorials/frameworks/templates available on the board, if you haven't already.

    Then look at the PlayerListener interface, onPlayerCommand.

    You want to registerEvent your PlayerListener for PLAYER_COMMAND, and then put your code in onPlayerCommand. Call event.getPlayer.sendMessage("Your Menu Text") to display things to the player.

    Hope that helps get you started! Good luck :)
     
Thread Status:
Not open for further replies.

Share This Page