mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 06:28:51 +00:00
Cleanup post merge
This commit is contained in:
1 parent
6f171d4410
commit
4f033344a9
4 files changed
+3
-15
No files matched your search
@@ -96,7 +96,7 @@ public class Main extends JavaPlugin {
|
|||||||
new RaidCommands(this);
|
new RaidCommands(this);
|
||||||
getCommand("war").setTabCompleter(new WarTabCompletion());
|
getCommand("war").setTabCompleter(new WarTabCompletion());
|
||||||
getCommand("siege").setTabCompleter(new SiegeTabCompletion());
|
getCommand("siege").setTabCompleter(new SiegeTabCompletion());
|
||||||
//getCommand("raid").setTabCompleter(new RaidTabCompletion());
|
getCommand("raid").setTabCompleter(new RaidTabCompletion());
|
||||||
getServer().getPluginManager().registerEvents((Listener) new KillsListener(), (Plugin) this);
|
getServer().getPluginManager().registerEvents((Listener) new KillsListener(), (Plugin) this);
|
||||||
getServer().getPluginManager().registerEvents((Listener) new CommandsListener(), (Plugin) this);
|
getServer().getPluginManager().registerEvents((Listener) new CommandsListener(), (Plugin) this);
|
||||||
getServer().getPluginManager().registerEvents((Listener) new JoinListener(), (Plugin) this);
|
getServer().getPluginManager().registerEvents((Listener) new JoinListener(), (Plugin) this);
|
||||||
@@ -104,6 +104,7 @@ public class Main extends JavaPlugin {
|
|||||||
initData();
|
initData();
|
||||||
initAPIs();
|
initAPIs();
|
||||||
setupEconomy();
|
setupEconomy();
|
||||||
|
initLogs();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
|
|||||||
@@ -19,17 +19,9 @@ import org.bukkit.entity.Player;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class RaidCommands implements CommandExecutor {
|
public class RaidCommands implements CommandExecutor {
|
||||||
public static ArrayList<Town> towns;
|
|
||||||
public static ArrayList<Raid> raids;
|
|
||||||
public static int maxID;
|
|
||||||
|
|
||||||
static {
|
|
||||||
RaidCommands.towns = new ArrayList<Town>();
|
|
||||||
RaidCommands.raids = new ArrayList<Raid>();
|
|
||||||
}
|
|
||||||
|
|
||||||
public RaidCommands(final Main plugin) {
|
public RaidCommands(final Main plugin) {
|
||||||
//plugin.getCommand("raid").setExecutor((CommandExecutor)this);
|
plugin.getCommand("raid").setExecutor((CommandExecutor)this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
|
public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ public class RaidTabCompletion implements TabCompleter {
|
|||||||
public List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {
|
||||||
List<String> completions = new ArrayList<>();
|
List<String> completions = new ArrayList<>();
|
||||||
Player p = (Player)sender;
|
Player p = (Player)sender;
|
||||||
/*
|
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
if (p.hasPermission("AlathraWar.admin")) {
|
if (p.hasPermission("AlathraWar.admin")) {
|
||||||
completions.add("stop");
|
completions.add("stop");
|
||||||
@@ -101,7 +100,6 @@ public class RaidTabCompletion implements TabCompleter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -241,7 +241,4 @@ public class RaidData {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Object getRaidMap(War war) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user