Minecraft PC IP: play.cubecraft.net

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
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
 
Members Online

Team online

Latest profile posts

ItzJuan wrote on Axwi's profile.
thank you for following!
remio wrote on Cathie's profile.
beste cathie,
bij deze hartelijk gefeliciteerd met het behalen van de helper functie
warme groet,
remi
jamesthesignificant wrote on Axwi's profile.
Calm down replying to my daily questions! :)
Verbramdt wrote on Axwi's profile.
Thanks for the follow :D
Dreamer wrote on Shainted's profile.
Thanks for the follow :O <3
Top Bottom