mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-08-26 15:32:50 +02:00
File formatting.
This commit is contained in:
parent
56b5a128f5
commit
809d18575d
|
@ -89,7 +89,7 @@ javac.classpath=\
|
||||||
${file.reference.PermissionsEx.jar}:\
|
${file.reference.PermissionsEx.jar}:\
|
||||||
${file.reference.bPermissions.jar}:\
|
${file.reference.bPermissions.jar}:\
|
||||||
${file.reference.PermissionsBukkit-1.2.jar}:\
|
${file.reference.PermissionsBukkit-1.2.jar}:\
|
||||||
${file.reference.lombok-0.10.1.jar}
|
${file.reference.lombok-0.10.1.jar}:\
|
||||||
${reference.EssentialsGroupManager.jar}
|
${reference.EssentialsGroupManager.jar}
|
||||||
# Space-separated list of extra javac options
|
# Space-separated list of extra javac options
|
||||||
javac.compilerargs=
|
javac.compilerargs=
|
||||||
|
|
|
@ -15,55 +15,55 @@ public class GroupManagerHandler implements IPermissionsHandler
|
||||||
|
|
||||||
public GroupManagerHandler(final Plugin permissionsPlugin)
|
public GroupManagerHandler(final Plugin permissionsPlugin)
|
||||||
{
|
{
|
||||||
groupManager = ((GroupManager)permissionsPlugin);
|
groupManager = ((GroupManager)permissionsPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGroup(final Player base)
|
public String getGroup(final Player base)
|
||||||
{
|
{
|
||||||
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return handler.getGroup(base.getName());
|
return handler.getGroup(base.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getGroups(final Player base)
|
public List<String> getGroups(final Player base)
|
||||||
{
|
{
|
||||||
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return Arrays.asList(handler.getGroups(base.getName()));
|
return Arrays.asList(handler.getGroups(base.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canBuild(final Player base, final String group)
|
public boolean canBuild(final Player base, final String group)
|
||||||
{
|
{
|
||||||
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return handler.canUserBuild(base.getName());
|
return handler.canUserBuild(base.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean inGroup(final Player base, final String group)
|
public boolean inGroup(final Player base, final String group)
|
||||||
{
|
{
|
||||||
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return handler.inGroup(base.getName(), group);
|
return handler.inGroup(base.getName(), group);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(final Player base, final String node)
|
public boolean hasPermission(final Player base, final String node)
|
||||||
{
|
{
|
||||||
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return handler.has(base, node);
|
return handler.has(base, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPrefix(final Player base)
|
public String getPrefix(final Player base)
|
||||||
{
|
{
|
||||||
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return handler.getUserPrefix(base.getName());
|
return handler.getUserPrefix(base.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSuffix(final Player base)
|
public String getSuffix(final Player base)
|
||||||
{
|
{
|
||||||
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(base);
|
||||||
return handler.getUserSuffix(base.getName());
|
return handler.getUserSuffix(base.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user