Call right function in SimplyCommands
This commit is contained in:
parent
b9dcbbfc09
commit
80c055d209
@ -325,7 +325,7 @@ public class SimplyCommands implements CommandExecutor {
|
|||||||
plugin.config.addPlayerGroup(player, group);
|
plugin.config.addPlayerGroup(player, group);
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin.refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is now in " + ChatColor.WHITE + split[3] + ChatColor.GREEN + ".");
|
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is now in " + ChatColor.WHITE + split[3] + ChatColor.GREEN + ".");
|
||||||
return true;
|
return true;
|
||||||
@ -341,7 +341,7 @@ public class SimplyCommands implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
plugin.config.addPlayerGroup(player, group);
|
plugin.config.addPlayerGroup(player, group);
|
||||||
|
|
||||||
plugin.refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is now in " + ChatColor.WHITE + group + ChatColor.GREEN + ".");
|
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is now in " + ChatColor.WHITE + group + ChatColor.GREEN + ".");
|
||||||
return true;
|
return true;
|
||||||
@ -357,7 +357,7 @@ public class SimplyCommands implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
plugin.config.removePlayerGroup(player, group);
|
plugin.config.removePlayerGroup(player, group);
|
||||||
|
|
||||||
plugin.refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is no longer in " + ChatColor.WHITE + group + ChatColor.GREEN + ".");
|
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is no longer in " + ChatColor.WHITE + group + ChatColor.GREEN + ".");
|
||||||
return true;
|
return true;
|
||||||
@ -372,7 +372,7 @@ public class SimplyCommands implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugin.config.removePlayer(player);
|
plugin.config.removePlayer(player);
|
||||||
plugin.refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is no longer in config file.");
|
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " is no longer in config file.");
|
||||||
return true;
|
return true;
|
||||||
@ -390,7 +390,7 @@ public class SimplyCommands implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugin.config.addPlayerPermission(player, world, perm, value);
|
plugin.config.addPlayerPermission(player, world, perm, value);
|
||||||
plugin.refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " now has " + ChatColor.WHITE + perm + ChatColor.GREEN + " = " + ChatColor.WHITE + value + ChatColor.GREEN + ".");
|
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " now has " + ChatColor.WHITE + perm + ChatColor.GREEN + " = " + ChatColor.WHITE + value + ChatColor.GREEN + ".");
|
||||||
return true;
|
return true;
|
||||||
@ -412,7 +412,7 @@ public class SimplyCommands implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
plugin.config.removePlayerPermission(player, world, perm);
|
plugin.config.removePlayerPermission(player, world, perm);
|
||||||
plugin.refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
|
|
||||||
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " no longer has " + ChatColor.WHITE + perm + ChatColor.GREEN + " set.");
|
sender.sendMessage(ChatColor.GREEN + "Player " + ChatColor.WHITE + player + ChatColor.GREEN + " no longer has " + ChatColor.WHITE + perm + ChatColor.GREEN + " set.");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user