mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 00:49:44 +00:00
fix a few groupmanager.java errors
This commit is contained in:
parent
c1b4ed5920
commit
48db088fb4
1 changed files with 7 additions and 3 deletions
|
@ -674,7 +674,7 @@ public class GroupManager extends JavaPlugin {
|
||||||
}
|
}
|
||||||
auxGroup = dataHolder.getGroup(args[0]);
|
auxGroup = dataHolder.getGroup(args[0]);
|
||||||
if (auxGroup != null) {
|
if (auxGroup != null) {
|
||||||
sender.sendMessage(ChatColor.RED + "" + args[0] + " Group doesnt exist!");
|
sender.sendMessage(ChatColor.RED + "" + args[0] + " Group already exist!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Seems OK
|
// Seems OK
|
||||||
|
@ -770,8 +770,10 @@ public class GroupManager extends JavaPlugin {
|
||||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.FOUND)) {
|
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.FOUND)) {
|
||||||
sender.sendMessage(ChatColor.RED + "The user already has direct access to that permission.");
|
sender.sendMessage(ChatColor.RED + "The user already has direct access to that permission.");
|
||||||
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
||||||
if (permissionResult.accessLevel.equalsIgnoreCase(args[1]));
|
if (permissionResult.accessLevel.equalsIgnoreCase(args[1]))
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
|
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
|
||||||
// Warn only while still allowing you to add the node.
|
// Warn only while still allowing you to add the node.
|
||||||
sender.sendMessage(ChatColor.RED + "The user already has a matching Negated node.");
|
sender.sendMessage(ChatColor.RED + "The user already has a matching Negated node.");
|
||||||
|
@ -1028,8 +1030,10 @@ public class GroupManager extends JavaPlugin {
|
||||||
sender.sendMessage(ChatColor.RED + "The group already has direct access to that permission.");
|
sender.sendMessage(ChatColor.RED + "The group already has direct access to that permission.");
|
||||||
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
|
||||||
// Abort adding if the node is a direct match.
|
// Abort adding if the node is a direct match.
|
||||||
if (permissionResult.accessLevel.equalsIgnoreCase(args[1]));
|
if (permissionResult.accessLevel.equalsIgnoreCase(args[1]))
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
|
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
|
||||||
// Warn only while still allowing you to add the node.
|
// Warn only while still allowing you to add the node.
|
||||||
sender.sendMessage(ChatColor.RED + "The group already has a matching Negated node.");
|
sender.sendMessage(ChatColor.RED + "The group already has a matching Negated node.");
|
||||||
|
|
Loading…
Reference in a new issue