Remove unused command

This commit is contained in:
fullwall 2013-11-07 23:47:55 +08:00
parent dc1771d911
commit 02186a16f6

View File

@ -63,7 +63,6 @@ import org.bukkit.command.BlockCommandSender;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender; import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.conversations.Conversable; import org.bukkit.conversations.Conversable;
import org.bukkit.craftbukkit.v1_6_R3.entity.CraftEntity;
import org.bukkit.entity.Ageable; import org.bukkit.entity.Ageable;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
@ -935,22 +934,6 @@ public class NPCCommands {
Messaging.sendTr(sender, Messages.PROFESSION_SET, npc.getName(), profession); Messaging.sendTr(sender, Messages.PROFESSION_SET, npc.getName(), profession);
} }
@Command(
aliases = { "npc" },
usage = "randommob [id]",
desc = "Sets randommob",
modifiers = { "randommob" },
min = 2,
max = 2,
permission = "citizens.npc.randommob")
public void randommob(CommandContext args, CommandSender sender, NPC npc) {
UUID uuid = npc.getEntity().getUniqueId();
UUID random = new UUID(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()
| (0x7FFFFFFF + args.getInteger(1)));
net.minecraft.server.v1_6_R3.Entity e = ((CraftEntity) npc.getEntity()).getHandle();
e.uniqueID = random;
}
@Command( @Command(
aliases = { "npc" }, aliases = { "npc" },
usage = "remove|rem (all)", usage = "remove|rem (all)",