Add Offhand
Dieser Commit ist enthalten in:
Ursprung
b533e27b85
Commit
af87505532
@ -131,6 +131,10 @@ public class Detonator implements Listener {
|
|||||||
return player.getInventory().getItemInMainHand();
|
return player.getInventory().getItemInMainHand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(player.getInventory().getItemInOffHand().getItemMeta() != null && player.getInventory().getItemInOffHand().getItemMeta().getPersistentDataContainer().has(new NamespacedKey(BauSystem.getPlugin(), "deto"), PersistentDataType.BYTE)) {
|
||||||
|
return player.getInventory().getItemInOffHand();
|
||||||
|
}
|
||||||
|
|
||||||
for (ItemStack item : player.getInventory().getContents()) {
|
for (ItemStack item : player.getInventory().getContents()) {
|
||||||
if(item == null)
|
if(item == null)
|
||||||
continue;
|
continue;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren