@Test public void testInGroup() { final TestOfflinePermissible permissible = new TestOfflinePermissible(); permissible.setPermission("group.a", true); permissible.setPermission("group.b", true); assertTrue(resolver.inGroup(permissible, "a")); assertTrue(resolver.inGroup(permissible, "b")); assertFalse(resolver.inGroup(permissible, "c")); }
@Override public boolean inGroup(String name, String group) { return inGroup(server.getOfflinePlayer(name), group); }
DinnerPermsResolver implements PermissionsResolver { @Override public boolean inGroup(String name, String group) { return inGroup(server.getOfflinePlayer(name), group); } }
DinnerPermsResolver implements PermissionsResolver { @Override public boolean inGroup(String name, String group) { return inGroup(server.getOfflinePlayer(name), group); } DinnerPermsResolver(Server server); }
DinnerPermsResolver implements PermissionsResolver { @Override public boolean inGroup(String name, String group) { return inGroup(server.getOfflinePlayer(name), group); } DinnerPermsResolver(Server server); static PermissionsResolver factory(Server server, YAMLProcessor config); @Override void load(); @Override boolean hasPermission(String name, String permission); @Override boolean hasPermission(String worldName, String name, String permission); @Override boolean inGroup(String name, String group); @Override String[] getGroups(String name); @Override boolean hasPermission(OfflinePlayer player, String permission); @Override boolean hasPermission(String worldName, OfflinePlayer player, String permission); @Override boolean inGroup(OfflinePlayer player, String group); @Override String[] getGroups(OfflinePlayer player); Permissible getPermissible(OfflinePlayer offline); int internalHasPermission(Permissible perms, String permission); @Override String getDetectionMessage(); }
DinnerPermsResolver implements PermissionsResolver { @Override public boolean inGroup(String name, String group) { return inGroup(server.getOfflinePlayer(name), group); } DinnerPermsResolver(Server server); static PermissionsResolver factory(Server server, YAMLProcessor config); @Override void load(); @Override boolean hasPermission(String name, String permission); @Override boolean hasPermission(String worldName, String name, String permission); @Override boolean inGroup(String name, String group); @Override String[] getGroups(String name); @Override boolean hasPermission(OfflinePlayer player, String permission); @Override boolean hasPermission(String worldName, OfflinePlayer player, String permission); @Override boolean inGroup(OfflinePlayer player, String group); @Override String[] getGroups(OfflinePlayer player); Permissible getPermissible(OfflinePlayer offline); int internalHasPermission(Permissible perms, String permission); @Override String getDetectionMessage(); static final String GROUP_PREFIX; }