mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Fixed setGroup method in permissions manager
This commit is contained in:
parent
1091db0e15
commit
a05a97a0a6
@ -638,8 +638,8 @@ public class PermissionsManager {
|
|||||||
|
|
||||||
case PERMISSIONS_BUKKIT:
|
case PERMISSIONS_BUKKIT:
|
||||||
// Permissions Bukkit
|
// Permissions Bukkit
|
||||||
// Permissions Bukkit doesn't support groups, return false
|
// Set the user's group using a command
|
||||||
return false;
|
return Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "permissions player setgroup " + player.getName() + " " + groupName);
|
||||||
|
|
||||||
case B_PERMISSIONS:
|
case B_PERMISSIONS:
|
||||||
// bPermissions
|
// bPermissions
|
||||||
@ -648,11 +648,8 @@ public class PermissionsManager {
|
|||||||
|
|
||||||
case ESSENTIALS_GROUP_MANAGER:
|
case ESSENTIALS_GROUP_MANAGER:
|
||||||
// Essentials Group Manager
|
// Essentials Group Manager
|
||||||
/*final AnjoPermissionsHandler handler = groupManagerPerms.getWorldsHolder().getWorldPermissions(player);
|
// Clear the list of groups, add the player to the specified group afterwards using a command
|
||||||
if(handler == null)
|
removeAllGroups(player);
|
||||||
return false;*/
|
|
||||||
// Add the user to the group
|
|
||||||
// TODO: Clear the current list of groups?
|
|
||||||
return Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "manuadd " + player.getName() + " " + groupName);
|
return Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "manuadd " + player.getName() + " " + groupName);
|
||||||
|
|
||||||
case Z_PERMISSIONS:
|
case Z_PERMISSIONS:
|
||||||
@ -662,7 +659,8 @@ public class PermissionsManager {
|
|||||||
|
|
||||||
case VAULT:
|
case VAULT:
|
||||||
// Vault
|
// Vault
|
||||||
// TODO: Clear the current list of groups?
|
// Remove all current groups, add the player to the specified group afterwards
|
||||||
|
removeAllGroups(player);
|
||||||
vaultPerms.playerAddGroup(player, groupName);
|
vaultPerms.playerAddGroup(player, groupName);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user