mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Fix Necrodooms code...again!
This commit is contained in:
@@ -718,10 +718,10 @@ public class GroupManager extends JavaPlugin {
|
|||||||
sender.sendMessage(ChatColor.RED + "Review your arguments count! (/<command> <player> <permission>)");
|
sender.sendMessage(ChatColor.RED + "Review your arguments count! (/<command> <player> <permission>)");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String auxString = args[1];
|
auxString = args[1];
|
||||||
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
||||||
{
|
{
|
||||||
auxString = auxString.substring(1, auxString.length() - 1)
|
auxString = auxString.substring(1, auxString.length() - 1);
|
||||||
}
|
}
|
||||||
if ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {
|
if ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {
|
||||||
return false;
|
return false;
|
||||||
@@ -959,10 +959,10 @@ public class GroupManager extends JavaPlugin {
|
|||||||
sender.sendMessage(ChatColor.RED + "Review your arguments count! (/<command> <group> <permission>)");
|
sender.sendMessage(ChatColor.RED + "Review your arguments count! (/<command> <group> <permission>)");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String auxString = args[1];
|
auxString = args[1];
|
||||||
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
||||||
{
|
{
|
||||||
auxString = auxString.substring(1, auxString.length() - 1)
|
auxString = auxString.substring(1, auxString.length() - 1);
|
||||||
}
|
}
|
||||||
auxGroup = dataHolder.getGroup(args[0]);
|
auxGroup = dataHolder.getGroup(args[0]);
|
||||||
if (auxGroup == null) {
|
if (auxGroup == null) {
|
||||||
@@ -1246,7 +1246,7 @@ public class GroupManager extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
||||||
{
|
{
|
||||||
auxString = auxString.substring(1, auxString.length() - 1)
|
auxString = auxString.substring(1, auxString.length() - 1);
|
||||||
}
|
}
|
||||||
auxUser.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));
|
auxUser.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));
|
||||||
sender.sendMessage(ChatColor.YELLOW + "Variable " + ChatColor.GOLD + args[1] + ChatColor.YELLOW + ":'" + ChatColor.GREEN + auxString + ChatColor.YELLOW + "' added to the user " + auxUser.getName());
|
sender.sendMessage(ChatColor.YELLOW + "Variable " + ChatColor.GOLD + args[1] + ChatColor.YELLOW + ":'" + ChatColor.GREEN + auxString + ChatColor.YELLOW + "' added to the user " + auxUser.getName());
|
||||||
@@ -1398,7 +1398,7 @@ public class GroupManager extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
if (auxString.startsWith("'") && auxString.endsWith("'"))
|
||||||
{
|
{
|
||||||
auxString = auxString.substring(1, auxString.length() - 1)
|
auxString = auxString.substring(1, auxString.length() - 1);
|
||||||
}
|
}
|
||||||
auxGroup.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));
|
auxGroup.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));
|
||||||
sender.sendMessage(ChatColor.YELLOW + "Variable " + ChatColor.GOLD + args[1] + ChatColor.YELLOW + ":'" + ChatColor.GREEN + auxString + ChatColor.YELLOW + "' added to the group " + auxGroup.getName());
|
sender.sendMessage(ChatColor.YELLOW + "Variable " + ChatColor.GOLD + args[1] + ChatColor.YELLOW + ":'" + ChatColor.GREEN + auxString + ChatColor.YELLOW + "' added to the group " + auxGroup.getName());
|
||||||
|
Reference in New Issue
Block a user