Water kill

Discussion in 'Plugins and Coding' started by HangarGeek, May 27, 2016.

  1. HangarGeek

    HangarGeek Member

    Messages:
    3,131
    Likes Received:
    2,581
    Trophy Points:
    333
    HangarGeek
    Obsidian
    Hello, I'm posting this little thing that may help some people (when you touch water it kills you):
    Code:
    @EventHandler
    public void onPlayerMove(PlayerMoveEvent e) {
        Material m = e.getPlayer().getLocation().getBlock().getType();
        if (m == Material.STATIONARY_WATER || m == Material
           p.setHealt(0,0);
    I'll make explanation later
     
  2. Livid

    Livid Member

    Messages:
    316
    Likes Received:
    53
    Trophy Points:
    53
    Did your computer throw up?
     
  3. HangarGeek

    HangarGeek Member

    Messages:
    3,131
    Likes Received:
    2,581
    Trophy Points:
    333
    HangarGeek
    Obsidian
    wasn't tested xD, I'll change it later
     
  4. SP3NC3RXD

    SP3NC3RXD Member

    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    This should be pretty self explanatory for anyone who makes bukkit plugins.

    Btw
    You forgot to add the 'h' lol.
     
  5. HangarGeek

    HangarGeek Member

    Messages:
    3,131
    Likes Received:
    2,581
    Trophy Points:
    333
    HangarGeek
    Obsidian
    I made it on my iPhone Potato 4 :p
     
  6. zivdnaL

    zivdnaL Member

    Messages:
    1,344
    Likes Received:
    2,327
    Trophy Points:
    198
    WHOOOOOOOOOOOOOP
    Iron
    Aww man! Did they release the 4 already? I bought the iPhone Potato 3 yesterday!
     
  7. HangarGeek

    HangarGeek Member

    Messages:
    3,131
    Likes Received:
    2,581
    Trophy Points:
    333
    HangarGeek
    Obsidian
    No, but I work with apple sekrit' projects, we're doing a Mac Noob 2
     
  8. zivdnaL

    zivdnaL Member

    Messages:
    1,344
    Likes Received:
    2,327
    Trophy Points:
    198
    WHOOOOOOOOOOOOOP
    Iron
    Is apple going to invest in Watermelon inc. anytime soon?
     
  9. HangarGeek

    HangarGeek Member

    Messages:
    3,131
    Likes Received:
    2,581
    Trophy Points:
    333
    HangarGeek
    Obsidian
    Yes, also in a time travel machine in a car.