Jump to content

Recommended Posts

Posted

Das wird wohl an deinem DeathBan-Plugin liegen. Wenn der Spieler stirbt, ist der natürliche Weg des Inventarleerens nicht mehr gegeben, da er direkt weggebannt wird 😁

Geh mal in dein Plugin und füge beim EntityDeathEvent die folgenden 2 Zeilen hinzu:

 

p.getEquipment().clear();
p.getInventory().clear();
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "tempban " + p.getName() + ...);

 

 

  • Thanks 1
Posted

Ich musste noch

Zitat

p.getInventory().setHelmet(null);
            p.getInventory().setChestplate(null);
            p.getInventory().setLeggings(null);
            p.getInventory().setBoots(null);

Hinzufügen, weil die Rüstung nicht gecleared wurde :D 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
B
B