Minecraft GunGame Plugin Programming?

Mi
- in Plugins
8

A friend and I are currently programming on a GunGame plugin, we both have more than 2 years of programming experience but after 3 days of trouble we do not look any further… We have a class called Dead, in which the player should be killed as soon as possible he jumps or falls into the water, but so far no programming code has worked out we have tried many methods but have come to no conclusion. Does anyone of you have any idea what it could be?

Vi

If I read your description of the problem that does not deserve this title, I'll say that you do not have 2 years of programming experience.

Mi

The problem is in the 1.8 works it yes but since we have switched to Spigot 1.12.2 everything is just different and therefore does not work so we do not know any further

As soon as I'm at home, I can send the tested codes.

Vi

How should you know about code or error messages? Could also write "My car does not drive, does anyone know why?" lol

Ka

And he also said that he seems to be able to send you the codes when he gets home.

Mi

The problem is the server does not give an error message but the plugin is installed and activated according to the console…

Mi

@EventHandler
public void onMove (PlayerMoveEvent event) {
Player p = event.getPlayer ();

Material m = p.getLocation (). GetBlock (). GetType ();
if (m.equals (Material.STATIONARY_WATER) || m.equals (Material.WATER)) {
p.damage (10);
}
}

That would be one of many we have tested, yes we know that we also p.sethealt (0.0); We also tested that once and it did not work

Li

@EventHandler
public void onPlayerMove (PlayerMoveEvents) {
Player p = e.getPlayer ();
Material m = p.getLocation (). GetBlock (). GetType ();
if (m == material.WATER) {
p.setHealth (0);
}
}

or you do the damage as with you

Li

Lol