1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Water kill

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

  1. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    3,106
    Likes Received:
    2,485
    Trophy Points:
    298
    Gender:
    Male
    Location:
    Kepler452B
    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

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

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    3,106
    Likes Received:
    2,485
    Trophy Points:
    298
    Gender:
    Male
    Location:
    Kepler452B
    HangarGeek
    Obsidian
    wasn't tested xD, I'll change it later
     
  4. SP3NC3RXD

    SP3NC3RXD Member

    Joined:
    May 31, 2016
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    This should be pretty self explanatory for anyone who makes bukkit plugins.

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

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    3,106
    Likes Received:
    2,485
    Trophy Points:
    298
    Gender:
    Male
    Location:
    Kepler452B
    HangarGeek
    Obsidian
    I made it on my iPhone Potato 4 :p
     
  6. Landviz

    Landviz Member

    Joined:
    Feb 20, 2016
    Messages:
    1,318
    Likes Received:
    2,256
    Trophy Points:
    198
    Gender:
    Male
    Location:
    North pole
    Home Page:
    WHOOOOOOOOOOOOOP
    Iron
    Aww man! Did they release the 4 already? I bought the iPhone Potato 3 yesterday!
     
  7. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    3,106
    Likes Received:
    2,485
    Trophy Points:
    298
    Gender:
    Male
    Location:
    Kepler452B
    HangarGeek
    Obsidian
    No, but I work with apple sekrit' projects, we're doing a Mac Noob 2
     
  8. Landviz

    Landviz Member

    Joined:
    Feb 20, 2016
    Messages:
    1,318
    Likes Received:
    2,256
    Trophy Points:
    198
    Gender:
    Male
    Location:
    North pole
    Home Page:
    WHOOOOOOOOOOOOOP
    Iron
    Is apple going to invest in Watermelon inc. anytime soon?
     
  9. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    3,106
    Likes Received:
    2,485
    Trophy Points:
    298
    Gender:
    Male
    Location:
    Kepler452B
    HangarGeek
    Obsidian
    Yes, also in a time travel machine in a car.