Determining if a player in on minigame map

Discussion in 'Plugin Development' started by GeorgeeeHD, Apr 2, 2016.

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


    I am making a minigame where players spawn on a hill. Players must hit the other players off the map. The last one on the hill wins. I need a method that returns true if they are on the hill. I want it to be able to work for any map without having to modify and code. Some ideas I had;

    Put water under hill and if player is in water, eliminate them. (don't want to do this as I don't want to put water under every map)

    Check if highest block at players location is below a certain number. (doesn't work as players can double jump, so if they get knocked off the hill but double jump back on, the plugin will see them as being off the hill)

    Any ideas? Thanks
  2. Offline

    timtower Administrator Administrator Moderator

    @GeorgeeeHD Instead of water:
    Check if player is below ...
  3. Offline


    Store the time they were off the hill, amd do a red "get backbto the battlefield" title
    DoggyCodeâ„¢ likes this.
  4. Offline


    i forgot to mention this on the post, but this would be my backup idea. it works but i would just have to make sure the maps are above the height i decide to check for.

    to store the time they are off the hill, i would need to know when they are off the hill, which is what the problem was xD
  5. Offline


    No, you said you can check, when they get under a certain point, but they could just double jump back and that would destroy the whole idea, but if you give them like 3 seconds before they die, then they can just jump back
  6. Offline


    Add the players to an arraylist.
  7. Offline


    I dont see how that would work for him in this case.
Thread Status:
Not open for further replies.

Share This Page