mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +01:00
Remove unused command
This commit is contained in:
parent
dc1771d911
commit
02186a16f6
@ -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)",
|
||||||
|
Loading…
Reference in New Issue
Block a user