mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
Base files
This commit is contained in:
1 parent
d85cf05eee
commit
65a3dc46a1
4 files changed
+53
No files matched your search
@@ -9,6 +9,17 @@ commands:
|
|||||||
war:
|
war:
|
||||||
description: used to create, delete, join and leave wars
|
description: used to create, delete, join and leave wars
|
||||||
softdepend: [Vault, Towny, TAB]
|
softdepend: [Vault, Towny, TAB]
|
||||||
|
usage: /war
|
||||||
siege:
|
siege:
|
||||||
description: used to start, end, and view sieges
|
description: used to start, end, and view sieges
|
||||||
softdepend: [Vault, Towny]
|
softdepend: [Vault, Towny]
|
||||||
|
usage: /siege
|
||||||
|
raid:
|
||||||
|
description: used to start, end, and view raids
|
||||||
|
softdepend: [Vault, Towny]
|
||||||
|
usage: /raid
|
||||||
|
alathrawaradmin:
|
||||||
|
description: used to administrate wars and modify existing events
|
||||||
|
softdepend: [Vault, Towny, TAB]
|
||||||
|
usage: /alathrawaradmin
|
||||||
|
aliases: [awa]
|
||||||
@@ -84,9 +84,11 @@ public class Main extends JavaPlugin {
|
|||||||
new WarCommands(this);
|
new WarCommands(this);
|
||||||
new SiegeCommands(this);
|
new SiegeCommands(this);
|
||||||
new RaidCommands(this);
|
new RaidCommands(this);
|
||||||
|
new AdminCommands(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());
|
||||||
|
getCommand("alathrawaradmin").setTabCompleter(new AdminTabCompletion());
|
||||||
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);
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package me.ShermansWorld.AlathraWar.commands;
|
||||||
|
|
||||||
|
import com.palmergames.bukkit.towny.object.Town;
|
||||||
|
import me.ShermansWorld.AlathraWar.Main;
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class AdminCommands implements CommandExecutor {
|
||||||
|
|
||||||
|
static {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public AdminCommands(final Main plugin) {
|
||||||
|
plugin.getCommand("alathrawaradmin").setExecutor((CommandExecutor)this);
|
||||||
|
plugin.getCommand("awa").setExecutor((CommandExecutor)this);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package me.ShermansWorld.AlathraWar.commands;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.command.TabCompleter;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class AdminTabCompletion implements TabCompleter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user