reset added to ./hotzone

This commit is contained in:
2023-02-23 17:47:22 -05:00
parent 85798822cc
commit 2ef60933b2
+4 -1
View File
@@ -49,11 +49,14 @@ public class HotzoneCmd extends AbstractDevCmd {
} }
if (input.equalsIgnoreCase("random")) { if (input.equalsIgnoreCase("random")) {
throwbackInfo(pc, "Previous hotZone: " + ZoneManager.hotZone.getName());
ZoneManager.generateAndSetRandomHotzone(); ZoneManager.generateAndSetRandomHotzone();
throwbackInfo(pc, "New hotZone: " + ZoneManager.hotZone.getName()); throwbackInfo(pc, "New hotZone: " + ZoneManager.hotZone.getName());
} }
if (input.equalsIgnoreCase("reset"))
for (Zone zone: ZoneManager.getAllZones())
zone.hasBeenHotzone = false;
return; return;
} }
@Override @Override