From 2ef60933b26feac45e005d24cd0c0db3d3fc10e5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 23 Feb 2023 17:47:22 -0500 Subject: [PATCH] reset added to ./hotzone --- src/engine/devcmd/cmds/HotzoneCmd.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/devcmd/cmds/HotzoneCmd.java b/src/engine/devcmd/cmds/HotzoneCmd.java index d1427800..dc9fce73 100644 --- a/src/engine/devcmd/cmds/HotzoneCmd.java +++ b/src/engine/devcmd/cmds/HotzoneCmd.java @@ -49,11 +49,14 @@ public class HotzoneCmd extends AbstractDevCmd { } if (input.equalsIgnoreCase("random")) { - throwbackInfo(pc, "Previous hotZone: " + ZoneManager.hotZone.getName()); ZoneManager.generateAndSetRandomHotzone(); throwbackInfo(pc, "New hotZone: " + ZoneManager.hotZone.getName()); } + if (input.equalsIgnoreCase("reset")) + for (Zone zone: ZoneManager.getAllZones()) + zone.hasBeenHotzone = false; + return; } @Override