forked from MagicBane/Server
ZoneSet DevCmd created.
This commit is contained in:
@@ -40,16 +40,20 @@ public class ZoneSetCmd extends AbstractDevCmd {
|
||||
|
||||
zone = ZoneManager.findSmallestZone(playerCharacter.getLoc());
|
||||
|
||||
if (zone == null) {
|
||||
throwbackError(playerCharacter, "Error: can't find the zone you are in.");
|
||||
throwbackInfo(playerCharacter, zone.getName() + " (" + zone.getLoadNum() + ") " + zone.getObjectUUID());
|
||||
|
||||
// NPC
|
||||
|
||||
if (words[0].equalsIgnoreCase("mob")) {
|
||||
|
||||
for (NPC npc : zone.zoneNPCSet) {
|
||||
String out = npc.getName() + '(' + npc.getDBID() + "): ";
|
||||
throwbackInfo(playerCharacter, out);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
//get all mobs for the zone
|
||||
|
||||
throwbackInfo(playerCharacter, zone.getName() + " (" + zone.getLoadNum() + ") " + zone.getObjectUUID());
|
||||
|
||||
if (words[0].equalsIgnoreCase("mob")) {
|
||||
// Mob
|
||||
|
||||
for (Mob mob : zone.zoneMobSet) {
|
||||
|
||||
@@ -63,14 +67,6 @@ public class ZoneSetCmd extends AbstractDevCmd {
|
||||
throwbackInfo(playerCharacter, out);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// NPC
|
||||
|
||||
for (NPC npc : zone.zoneNPCSet) {
|
||||
String out = npc.getName() + '(' + npc.getDBID() + "): ";
|
||||
throwbackInfo(playerCharacter, out);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user