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

update some class...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-13 13:31:12 +08:00
parent 6b01aaf888
commit ce8c8fbd66
22 changed files with 25 additions and 25 deletions

View File

@@ -19,8 +19,8 @@ public class CommandCheck extends BaseCommand {
public CommandCheck(final ResidenceMain plugin) {
super("check");
this.plugin = plugin;
setOnlyPlayerExecutable();
setMinimumArguments(2);
setOnlyPlayerExecutable();
setPossibleArguments("<领地名称> <权限> [玩家]");
}
@@ -44,9 +44,9 @@ public class CommandCheck extends BaseCommand {
player.sendMessage(language.getPhrase("FlagCheckFalse",
ChatColor.YELLOW + args[0] + ChatColor.RED + "." + ChatColor.YELLOW + pname + ChatColor.RED + "." + ChatColor.YELLOW + args[0] + ChatColor.RED));
} else {
player.sendMessage(
language.getPhrase("FlagCheckTrue", ChatColor.GREEN + args[0] + ChatColor.YELLOW + "." + ChatColor.GREEN + pname + ChatColor.YELLOW + "." + ChatColor.YELLOW + args[0]
+ ChatColor.RED + "." + (res.getPermissions().playerHas(pname, res.getPermissions().getWorld(), args[1], false) ? ChatColor.GREEN + "TRUE" : ChatColor.RED + "FALSE")));
player.sendMessage(language.getPhrase("FlagCheckTrue",
ChatColor.GREEN + args[0] + ChatColor.YELLOW + "." + ChatColor.GREEN + pname + ChatColor.YELLOW + "." + ChatColor.YELLOW + args[0] + ChatColor.RED + "."
+ (res.getPermissions().playerHas(pname, res.getPermissions().getWorld(), args[1], false) ? ChatColor.GREEN + "TRUE" : ChatColor.RED + "FALSE")));
}
}
}