From d2a0aa637b3789cdc458999369aab25f62132403 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sat, 30 Jun 2018 12:56:31 +0800 Subject: [PATCH] Remove debug code --- .../main/java/net/citizensnpcs/commands/AdminCommands.java | 2 -- main/src/main/java/net/citizensnpcs/npc/CitizensNPC.java | 4 ---- 2 files changed, 6 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java b/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java index 8662cc1ba..118051576 100644 --- a/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/AdminCommands.java @@ -1,7 +1,6 @@ package net.citizensnpcs.commands; import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; import net.citizensnpcs.Citizens; import net.citizensnpcs.api.command.Command; @@ -29,7 +28,6 @@ public class AdminCommands { Messaging.send(sender, " <7>-- Written by fullwall and aPunch"); Messaging.send(sender, " <7>-- Source Code: http://github.com/CitizensDev"); Messaging.send(sender, " <7>-- Website: " + plugin.getDescription().getWebsite()); - Messaging.log(((Player) sender).getInventory().getItemInOffHand()); } @Command( diff --git a/main/src/main/java/net/citizensnpcs/npc/CitizensNPC.java b/main/src/main/java/net/citizensnpcs/npc/CitizensNPC.java index a50e1b73d..6876a65b9 100644 --- a/main/src/main/java/net/citizensnpcs/npc/CitizensNPC.java +++ b/main/src/main/java/net/citizensnpcs/npc/CitizensNPC.java @@ -354,10 +354,6 @@ public class CitizensNPC extends AbstractNPC { if (Util.isAlwaysFlyable(type)) { data().setPersistent(NPC.FLYABLE_METADATA, true); } - if (type == EntityType.PLAYER) { - Player player = (Player) getEntity(); - player.getInventory().getExtraContents(); - } } private static final String NPC_METADATA_MARKER = "NPC";