diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansManager.java index dca0a3881..1375dba32 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/ClansManager.java @@ -242,8 +242,6 @@ public class ClansManager extends MiniClientPluginimplements IRelati _damageManager = new DamageManager(plugin, _combatManager, _npcManager, _disguiseManager, _condition); _damageManager.addCommand(new KillCommand(_damageManager)); - addCommand(new QueryCommand(this)); - _worldEvent = new WorldEventManager(plugin, this, _damageManager, _lootManager, blockRestore, _clanRegions, null); _taskManager = new TaskManager(plugin, _clientManager, webServerAddress); diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/commands/QueryCommand.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/commands/QueryCommand.java deleted file mode 100644 index 8e95c06e0..000000000 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/commands/QueryCommand.java +++ /dev/null @@ -1,53 +0,0 @@ -package mineplex.game.clans.clans.commands; - -import org.bukkit.entity.Player; - -import mineplex.core.command.CommandBase; -import mineplex.core.common.Rank; -import mineplex.core.common.util.Callback; -import mineplex.core.common.util.F; -import mineplex.core.common.util.UtilPlayer; -import mineplex.core.database.MinecraftRepository; -import mineplex.game.clans.clans.ClanInfo; -import mineplex.game.clans.clans.ClansManager; -import mineplex.serverdata.database.DBPool; -import mineplex.serverdata.database.RepositoryBase; - -public class QueryCommand extends CommandBase -{ - private ClansManager _clansManager; - - public QueryCommand(ClansManager plugin) - { - super(plugin, Rank.JNR_DEV, "query"); - _clansManager = plugin; - } - - @Override - public void Execute(final Player caller, String[] args) - { - if (args.length == 0) - { - UtilPlayer.message(caller, F.main(Plugin.getName(), "Query missing.")); - return; - } - - final String query = F.combine(args, 0, null, false); - - new MinecraftRepository(Plugin.getPlugin(), DBPool.getAccount()) { - protected void initialize() - { - executeUpdate(query); - } - - protected void update() - { - } - }; - } - - public static void message(Player player, String message) - { - UtilPlayer.message(player, F.main("Clans", message)); - } -}