Fix /kp spawn still executing if not in an arena world

This commit is contained in:
cervinakuy committed 2022-11-11 13:59:09 -08:00
1 parent 77d6e4bbe0
commit bd53366b4c
1 file changed
+1
@@ -351,6 +351,7 @@ public class MainCommand implements CommandExecutor {
private void executeSpawnCommand(Player p) {
if (!config.contains("Arenas." + p.getWorld().getName())) {
p.sendMessage(messages.fetchString("Messages.Error.Arena").replace("%arena%", p.getWorld().getName()));
return;
}
if (spawnUsers.contains(p.getName())) {