mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
raid creation bugs
This commit is contained in:
1 parent
23f61e99a4
commit
2a733fe867
4 files changed
+28
-13
No files matched your search
@@ -1367,18 +1367,24 @@ public class AdminCommands implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
} else if (args[3].equalsIgnoreCase("reset")) {
|
||||
if (args[6].equals(w.getSide1())) {
|
||||
w.setLastRaidTimeSide1(0L);
|
||||
p.sendMessage(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
Main.warLogger.log(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
return finalizeWar(w);
|
||||
} else if (args[6].equals(w.getSide2())) {
|
||||
w.setLastRaidTimeSide2(0L);
|
||||
p.sendMessage(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
Main.warLogger.log(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
return finalizeWar(w);
|
||||
|
||||
if (args.length >= 6) {
|
||||
if (args[5].equals(w.getSide1())) {
|
||||
w.setLastRaidTimeSide1(0L);
|
||||
p.sendMessage(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
Main.warLogger.log(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
return finalizeWar(w);
|
||||
} else if (args[5].equals(w.getSide2())) {
|
||||
w.setLastRaidTimeSide2(0L);
|
||||
p.sendMessage(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
Main.warLogger.log(Helper.Chatlabel() + "Reset last raid time in war " + args[4]);
|
||||
return finalizeWar(w);
|
||||
} else {
|
||||
p.sendMessage(Helper.color("c") + "Side not found!");
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
p.sendMessage(Helper.color("c") + "Side not found!");
|
||||
p.sendMessage(Helper.color("c") + "Usage: /alathrawaradmin modify war raidTimeWar [add,set,reset] [town/war] [amt] [side]");
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -570,6 +570,7 @@ public class AdminTabCompletion implements TabCompleter {
|
||||
if (args.length > 4) {
|
||||
if (args.length > 5) {
|
||||
if (args.length > 6) {
|
||||
|
||||
if (args.length > 7) {
|
||||
return NameUtil.filterByStart(CommandHelper.getWarSides(args[4]), args[6]);
|
||||
} else {
|
||||
|
||||
@@ -210,6 +210,7 @@ public class RaidCommands implements CommandExecutor {
|
||||
|
||||
//publish raid
|
||||
Main.econ.withdrawPlayer(offlinePlayer, 1000);
|
||||
raid2.addActiveRaider(raidOwner.getName());
|
||||
RaidData.addRaid(raid2);
|
||||
raid2.start(); //funny funny method haha
|
||||
WarData.saveWar(raid2.getWar());
|
||||
|
||||
Reference in new issue
Block a user