raidcommands force save

This commit is contained in:
Aubri Seebauer committed 2023-04-18 17:05:50 -04:00
1 parent c23018bd79
commit 23f61e99a4
2 files changed
+4 -1

No files matched your search

@@ -376,7 +376,6 @@ public class AdminCommands implements CommandExecutor {
p.sendMessage(Helper.color("c") + "Forced " + args[3] + " to join the war " + args[4] + " on side " + args[5]);
Main.warLogger.log("Forced " + args[3] + " to join the war " + args[4] + " on side " + args[5]);
finalizeWar(w);
} else {
p.sendMessage(Helper.color("c") + "Usage: /alathrawaradmin force join war [player] [war] [side]");
return true;
@@ -318,6 +318,8 @@ public class RaidCommands implements CommandExecutor {
} else {
joiner.sendMessage(String.valueOf(Helper.Chatlabel()) + "You cannot join the raid on " + raid.getRaidedTown().getName() + "! It has already started!");
}
raid.save();
}
} else {
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "No raid is gathering in this town or this town does not exist!");
@@ -362,6 +364,8 @@ public class RaidCommands implements CommandExecutor {
}
}
}
raid.save();
} else {
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "No raid is gathering in this town or this town does not exist!");
if (admin) player.sendMessage(String.valueOf(Helper.Chatlabel()) + "No raid is gathering in this town or this town does not exist!");