mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 14:38:55 +00:00
1 parent
119a2f5e33
commit
840ea44ebc
5 files changed
+10
-12
No files matched your search
@@ -51,6 +51,7 @@ v/ Raiders on death are teleported to their town spawn.
|
||||
|
||||
/**
|
||||
* This is based on the existing Siege Class
|
||||
*
|
||||
* @author AubriTheHuman
|
||||
* @author NinjaMandalorian
|
||||
* @author ShermansWorld
|
||||
|
||||
@@ -83,9 +83,7 @@ public class RaidTabCompletion implements TabCompleter {
|
||||
return completions;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
@@ -34,12 +34,6 @@ public class WarCommands implements CommandExecutor {
|
||||
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "Invalid Arguments. /war help");
|
||||
return true;
|
||||
} else if (args.length >= 1) {
|
||||
// Create - Admin Command
|
||||
// Delete - Admin Command
|
||||
// Join - Auto works out town/nation e.t.c.
|
||||
// Surrender - Auto works out town/nation e.t.c.
|
||||
// List - Lists all current wars
|
||||
// Info - Info on a player and their wars.
|
||||
|
||||
switch(args[0].toLowerCase()) {
|
||||
case "create":
|
||||
@@ -67,9 +61,7 @@ public class WarCommands implements CommandExecutor {
|
||||
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "Invalid Arguments. /war help");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ package me.ShermansWorld.AlathraWar.data;
|
||||
|
||||
import com.palmergames.bukkit.towny.object.Town;
|
||||
import me.ShermansWorld.AlathraWar.Main;
|
||||
import me.ShermansWorld.AlathraWar.War;
|
||||
|
||||
import org.bukkit.configuration.Configuration;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
@@ -80,4 +82,8 @@ public class RaidData {
|
||||
public int isValidRaid(Town t) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static Object getRaidMap(War war) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import com.palmergames.bukkit.towny.object.Town;
|
||||
import me.ShermansWorld.AlathraWar.Main;
|
||||
import me.ShermansWorld.AlathraWar.War;
|
||||
import me.ShermansWorld.AlathraWar.commands.WarCommands;
|
||||
import me.ShermansWorld.AlathraWar.data.WarData;
|
||||
import me.ShermansWorld.AlathraWar.hooks.TABHook;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -27,7 +28,7 @@ public class JoinListener implements Listener {
|
||||
if (town == null) return;
|
||||
String townName = town.getName();
|
||||
boolean inWar = false;
|
||||
for (final War war : WarCommands.wars) {
|
||||
for (final War war : WarData.getWars()) {
|
||||
if (war.getSide1Towns().contains(townName)) {
|
||||
TABHook.assignSide1WarSuffix(p, war);
|
||||
inWar = true;
|
||||
|
||||
Reference in new issue
Block a user