1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-26 22:06:07 +00:00

remove CheckWorld and update to 2.8.0.3...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092
2015-10-02 20:19:33 +08:00
parent a25e3025b5
commit 5eab6a07e7
3 changed files with 2 additions and 48 deletions

View File

@@ -11,7 +11,6 @@ import com.bekvon.bukkit.residence.commandsub.CommandArea;
import com.bekvon.bukkit.residence.commandsub.CommandBank;
import com.bekvon.bukkit.residence.commandsub.CommandCheck;
import com.bekvon.bukkit.residence.commandsub.CommandCheckSelf;
import com.bekvon.bukkit.residence.commandsub.CommandCheckWorld;
import com.bekvon.bukkit.residence.commandsub.CommandClearFlags;
import com.bekvon.bukkit.residence.commandsub.CommandCompass;
import com.bekvon.bukkit.residence.commandsub.CommandConfirm;
@@ -69,7 +68,6 @@ public class CommandRes extends BaseCommand implements DefaultCommand {
hdsubcmd.registerCommand(new CommandBank(plugin));
hdsubcmd.registerCommand(new CommandCheck(plugin));
hdsubcmd.registerCommand(new CommandCheckSelf(plugin));
hdsubcmd.registerCommand(new CommandCheckWorld(plugin));
hdsubcmd.registerCommand(new CommandClearFlags(plugin));
hdsubcmd.registerCommand(new CommandCompass(plugin));
hdsubcmd.registerCommand(new CommandConfirm(plugin));
@@ -143,13 +141,10 @@ public class CommandRes extends BaseCommand implements DefaultCommand {
return;
}
}
if (args.length == 0) {
return;
}
hdsubcmd.onCommand(sender, resadmin ? command : null, label, args);
}
private boolean commandHelp(final String[] args, final boolean resadmin, final CommandSender sender) {
private void commandHelp(final String[] args, final boolean resadmin, final CommandSender sender) {
if (plugin.getHelppages() != null) {
String helppath = "res";
for (final String arg : args) {
@@ -168,9 +163,7 @@ public class CommandRes extends BaseCommand implements DefaultCommand {
}
if (plugin.getHelppages().containesEntry(helppath)) {
plugin.getHelppages().printHelp(sender, page, helppath);
return true;
}
}
return false;
}
}