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/Codes' started by A Christmas Hangar, May 27, 2016.

  1. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    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:
    307
    Likes Received:
    46
    Trophy Points:
    28
    Location:
    Everywhere
    Did your computer throw up?
     
  3. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    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. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    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:
    668
    Likes Received:
    396
    Trophy Points:
    63
    Gender:
    Male
    Location:
    North pole
    Aww man! Did they release the 4 already? I bought the iPhone Potato 3 yesterday!
     
  7. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    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:
    668
    Likes Received:
    396
    Trophy Points:
    63
    Gender:
    Male
    Location:
    North pole
    Is apple going to invest in Watermelon inc. anytime soon?
     
  9. A Christmas Hangar

    A Christmas Hangar Member

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