mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-08 03:29:46 +01:00
Clone kit items when given to players so the kit doesn't end up edited.
This commit is contained in:
parent
e95baae80a
commit
350ccac983
@ -276,7 +276,7 @@ public class KitHandler {
|
||||
plugin.getGuiManager().showGUI(player, new AnimatedKitGui(plugin, player, kit, item.getItem()));
|
||||
return true;
|
||||
} else {
|
||||
ItemStack parseStack = item.getContent().process(player);
|
||||
ItemStack parseStack = item.getContent().process(player).clone();
|
||||
if (!(item.getContent() instanceof KitContentEconomy || item.getContent() instanceof KitContentCommand)) {
|
||||
if (Settings.AUTO_EQUIP_ARMOR.getBoolean() && ArmorType.equip(player, parseStack)) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user