Need help putting my idea into code

Discussion in 'Plugin Development' started by aPandaification, Aug 2, 2012.

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

    aPandaification

    This year I started java classes at my high school and by no means am I very good at programming and I decided to take up some plugins and am trying to make some of my own stuff. Currently I have only completed 3 plugins which are very basic. I want to make this next idea into a reality but as of now I am unsure how to proceed. The idea is as follows:
    Players use a /join command to be teleported to an arena
    They are sorted into 2 teams attackers and defenders and given a kit accordingly
    Then the attacking team has to right click a block to win
    The defending team has to hold them off for 2 min
    Each team has it's own spawn.

    These are the major points of the plugin of which I am unsure on how to get started. If anyone can tell me how to start this and how difficult these tasks would be and how I would be able to accomplish my goals I would greatly appreciate it. And any help is great too.
     
  2. Offline

    mothma

    This guide is good to get started: http://wiki.bukkit.org/Plugin_Tutorial

    Commands are covered, and you should be able to figure out how to execute code with "/join"

    Dividing the teams can be fairly hard, but try adding players into an ArrayList, use list.shuffle() and split the list to make 2 teams.

    To know when to stop the game you need to make an event listener for the right clicking event. See http://wiki.bukkit.org/Introduction_to_the_New_Event_System

    You can use http://wiki.bukkit.org/Scheduler_Programming as a guide in making a 2 min timer.

    To make spawns for the teams you will need to create an event listener for the respawn event, and change the events respawn location if the player is on a team.

    Let me know how it goes.
     
  3. Offline

    michaelb10297

  4. Offline

    aPandaification

    Thanks for the input and I know about the api and the tut but the other links should be helpful.
     
Thread Status:
Not open for further replies.

Share This Page