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());
|
zone = ZoneManager.findSmallestZone(playerCharacter.getLoc());
|
||||||
|
|
||||||
if (zone == null) {
|
throwbackInfo(playerCharacter, zone.getName() + " (" + zone.getLoadNum() + ") " + zone.getObjectUUID());
|
||||||
throwbackError(playerCharacter, "Error: can't find the zone you are in.");
|
|
||||||
|
// NPC
|
||||||
|
|
||||||
|
if (words[0].equalsIgnoreCase("mob")) {
|
||||||
|
|
||||||
|
for (NPC npc : zone.zoneNPCSet) {
|
||||||
|
String out = npc.getName() + '(' + npc.getDBID() + "): ";
|
||||||
|
throwbackInfo(playerCharacter, out);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//get all mobs for the zone
|
// Mob
|
||||||
|
|
||||||
throwbackInfo(playerCharacter, zone.getName() + " (" + zone.getLoadNum() + ") " + zone.getObjectUUID());
|
|
||||||
|
|
||||||
if (words[0].equalsIgnoreCase("mob")) {
|
|
||||||
|
|
||||||
for (Mob mob : zone.zoneMobSet) {
|
for (Mob mob : zone.zoneMobSet) {
|
||||||
|
|
||||||
@@ -63,14 +67,6 @@ public class ZoneSetCmd extends AbstractDevCmd {
|
|||||||
throwbackInfo(playerCharacter, out);
|
throwbackInfo(playerCharacter, out);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// NPC
|
|
||||||
|
|
||||||
for (NPC npc : zone.zoneNPCSet) {
|
|
||||||
String out = npc.getName() + '(' + npc.getDBID() + "): ";
|
|
||||||
throwbackInfo(playerCharacter, out);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user