mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
1 parent
119a2f5e33
commit
840ea44ebc
5 files changed
+9
-11
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
|
* This is based on the existing Siege Class
|
||||||
|
*
|
||||||
* @author AubriTheHuman
|
* @author AubriTheHuman
|
||||||
* @author NinjaMandalorian
|
* @author NinjaMandalorian
|
||||||
* @author ShermansWorld
|
* @author ShermansWorld
|
||||||
|
|||||||
@@ -83,9 +83,7 @@ public class RaidTabCompletion implements TabCompleter {
|
|||||||
return completions;
|
return completions;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,12 +34,6 @@ public class WarCommands implements CommandExecutor {
|
|||||||
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "Invalid Arguments. /war help");
|
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "Invalid Arguments. /war help");
|
||||||
return true;
|
return true;
|
||||||
} else if (args.length >= 1) {
|
} 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()) {
|
switch(args[0].toLowerCase()) {
|
||||||
case "create":
|
case "create":
|
||||||
@@ -68,8 +62,6 @@ public class WarCommands implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ package me.ShermansWorld.AlathraWar.data;
|
|||||||
|
|
||||||
import com.palmergames.bukkit.towny.object.Town;
|
import com.palmergames.bukkit.towny.object.Town;
|
||||||
import me.ShermansWorld.AlathraWar.Main;
|
import me.ShermansWorld.AlathraWar.Main;
|
||||||
|
import me.ShermansWorld.AlathraWar.War;
|
||||||
|
|
||||||
import org.bukkit.configuration.Configuration;
|
import org.bukkit.configuration.Configuration;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
@@ -80,4 +82,8 @@ public class RaidData {
|
|||||||
public int isValidRaid(Town t) {
|
public int isValidRaid(Town t) {
|
||||||
return 0;
|
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.Main;
|
||||||
import me.ShermansWorld.AlathraWar.War;
|
import me.ShermansWorld.AlathraWar.War;
|
||||||
import me.ShermansWorld.AlathraWar.commands.WarCommands;
|
import me.ShermansWorld.AlathraWar.commands.WarCommands;
|
||||||
|
import me.ShermansWorld.AlathraWar.data.WarData;
|
||||||
import me.ShermansWorld.AlathraWar.hooks.TABHook;
|
import me.ShermansWorld.AlathraWar.hooks.TABHook;
|
||||||
|
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
@@ -27,7 +28,7 @@ public class JoinListener implements Listener {
|
|||||||
if (town == null) return;
|
if (town == null) return;
|
||||||
String townName = town.getName();
|
String townName = town.getName();
|
||||||
boolean inWar = false;
|
boolean inWar = false;
|
||||||
for (final War war : WarCommands.wars) {
|
for (final War war : WarData.getWars()) {
|
||||||
if (war.getSide1Towns().contains(townName)) {
|
if (war.getSide1Towns().contains(townName)) {
|
||||||
TABHook.assignSide1WarSuffix(p, war);
|
TABHook.assignSide1WarSuffix(p, war);
|
||||||
inWar = true;
|
inWar = true;
|
||||||
|
|||||||
Reference in new issue
Block a user