mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Fixed setGroup in PermissionsManager for Essentials Group Manager and zPermissions
This commit is contained in:
parent
504106f835
commit
400d014e7b
@ -480,16 +480,17 @@ public class PermissionsManager {
|
|||||||
|
|
||||||
case ESSENTIALS_GROUP_MANAGER:
|
case ESSENTIALS_GROUP_MANAGER:
|
||||||
// Essentials Group Manager
|
// Essentials Group Manager
|
||||||
final AnjoPermissionsHandler handler = groupManagerPerms.getWorldsHolder().getWorldPermissions(player);
|
/*final AnjoPermissionsHandler handler = groupManagerPerms.getWorldsHolder().getWorldPermissions(player);
|
||||||
if(handler == null)
|
if(handler == null)
|
||||||
return false;
|
return false;*/
|
||||||
// TODO: Write proper code here!
|
// Add the user to the group
|
||||||
//return Arrays.asList(handler.getGroups(player.getName()));
|
// TODO: Clear the current list of groups?
|
||||||
|
return Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "manuadd " + player.getName() + " " + groupName);
|
||||||
|
|
||||||
case Z_PERMISSIONS:
|
case Z_PERMISSIONS:
|
||||||
//zPermissions
|
//zPermissions
|
||||||
// TODO: Write proper code here!
|
// Set the players group through the plugin commands
|
||||||
//return new ArrayList(zPermissionsService.getPlayerGroups(player.getName()));
|
return Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "permissions player " + player.getName() + " setgroup " + groupName);
|
||||||
|
|
||||||
case VAULT:
|
case VAULT:
|
||||||
// Vault
|
// Vault
|
||||||
|
Loading…
Reference in New Issue
Block a user