Capture Points

Discussion in 'Plugin Development' started by killerzz1, Apr 10, 2015.

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

    killerzz1

    Hello,

    I am working on a gamemode that will involve 4 capture point's that are saved in the config and set by an admin i want it so that there are two team's and each team start with 1 capture point and the aim is to keep them from the other team (the teams will be able to capture the points).

    How would i make it so that if there is a team member from another team in a 5 block radius of the point set it would start to capture the point and after 10 secs of waiting it would then change to that teams capture point?
     
  2. Offline

    mine-care

    What have you tryed so far?
    Hint: use Location#disnance(Location paramLocation) returns double.
     
  3. Offline

    killerzz1

    I have not tried anything yet as i know i can't do it by myself :confused:
     
  4. Offline

    mine-care

    @killerzz1 Well try :) use the hint above, and think of an event that can be used to check the distance :p This is part of bukkit's fun
     
  5. Offline

    killerzz1

    Okay thanks for the hint :)
     
    Last edited: Apr 13, 2015
  6. Offline

    mine-care

    @killerzz1 generally it is a good practice to keep each thing under its own class so let's say re spawn listener is in one class death listener is in another and so on, this way object orientation is present in your code :- ) so defenatly I woud recommend an second class,
    Hope that helps, feel free to ask oter stuff too!
     
Thread Status:
Not open for further replies.

Share This Page