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:
    2,966
    Likes Received:
    2,164
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    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:
    28
    Did your computer throw up?
     
  3. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,966
    Likes Received:
    2,164
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    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:
    2,966
    Likes Received:
    2,164
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    I made it on my iPhone Potato 4 :p
     
  6. Landviz

    Landviz Member

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

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,966
    Likes Received:
    2,164
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    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,181
    Likes Received:
    1,584
    Trophy Points:
    113
    Gender:
    Male
    Location:
    North pole
    Home Page:
    Is apple going to invest in Watermelon inc. anytime soon?
     
  9. HangarGeek

    HangarGeek Member

    Joined:
    Sep 15, 2015
    Messages:
    2,966
    Likes Received:
    2,164
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Yes, also in a time travel machine in a car.