mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-26 22:06:07 +00:00
@@ -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")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user