Solved Ban on death

Discussion in 'Plugin Development' started by xDGaming, Dec 29, 2013.

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

    xDGaming

    I am trying to make a plugin that bans you when you die but with a specific amount of time using permissions
     
  2. Offline

    Windy Day

    Cool, good luck.

    Not being hostile here, but you didn't really say you have a problem or if you are looking for how to approach this so we can't really help you. Try to be more specific next time so we can help.
     
  3. Offline

    PolarCraft

    xDGaming Do this: OnPlayerDeathEvent.
    Then do a argument that checks how many times they have died. Then if it gets to 'x' number of deaths. Then do p.setBanned(true).
     
  4. Offline

    HyrulesLegend

    Have you tried anything?
     
  5. Offline

    qdog83

    Dude, not exactly trying to be the harsh one here, but the community here is here to help you sort out and solve pre-existing errors, not to write your code for you. Give it a try! You will be amazed at the stuff you can do when you set your mind to it.
     
  6. Offline

    xDGaming

    Yes I have tried, and it wouldn't work, and so I'm asking to see if anyone can show me how
     
  7. Offline

    NoLiver92


    If you have tried and it didnt work, post your code and the error, this shows you did try it and then we can help edit your code to what you want.
     
  8. Offline

    ItsOneAndTwo

    Code:java
    1. @EventHandler
    2. public void onPlayerDeathEvent(PlayerDeathEvent event) {
    3. Player player = (Player) event.getEntity().getPlayer();
    4. player.setBanned(true);
    5. }
     
  9. Offline

    xDGaming

    Thank you, that's similar but I just noticed that I managed to fail at typing it properly and so it did not recognize it and that's why and now I gotta just implement the hashmaps :)
     
Thread Status:
Not open for further replies.

Share This Page