Hello, I'm posting this little thing that may help some people (when you touch water it kills you):
I'll make explanation later
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