Read description

Added command undisguise
Changed perm for undisguise to libsdisguises.undisguise
Moved where the commands are set incase of errors.
This commit is contained in:
Andrew
2013-05-21 14:23:58 +12:00
parent 39ba0083d3
commit 0bda040a60
4 changed files with 29 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ import com.comphenix.protocol.reflect.StructureModifier;
public class LibsDisguises extends JavaPlugin {
public void onEnable() {
getCommand("disguise").setExecutor(new DisguiseCommand());
ProtocolLibrary.getProtocolManager().addPacketListener(
new PacketAdapter(this, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL, Packets.Server.NAMED_ENTITY_SPAWN,
Packets.Server.ENTITY_METADATA, Packets.Server.NAMED_SOUND_EFFECT, Packets.Server.ARM_ANIMATION) {
@@ -149,5 +148,7 @@ public class LibsDisguises extends JavaPlugin {
}
}
});
getCommand("disguise").setExecutor(new DisguiseCommand());
getCommand("undisguise").setExecutor(new UndisguiseCommand());
}
}