Fix build

This commit is contained in:
Gabriele C 2017-12-19 10:53:07 +01:00
parent 4213867048
commit 779c4a2b33
2 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ public class LuckPermsHandler implements PermissionHandler {
}
Group permissionGroup = luckPermsApi.getGroup(group);
boolean result = permissionGroup != null && user.isInGroup(permissionGroup);
boolean result = permissionGroup != null && user.inheritsGroup(permissionGroup);
luckPermsApi.cleanupUser(user);
return result;

View File

@ -107,14 +107,14 @@ public class LimboPersistenceTest {
Player player = mock(Player.class);
Logger logger = TestHelper.setupLogger();
LimboPersistenceHandler handler = getHandler();
doThrow(IllegalAccessException.class).when(handler).getLimboPlayer(player);
doThrow(RuntimeException.class).when(handler).getLimboPlayer(player);
// when
LimboPlayer result = limboPersistence.getLimboPlayer(player);
// then
assertThat(result, nullValue());
verify(logger).warning(argThat(containsString("[IllegalAccessException]")));
verify(logger).warning(argThat(containsString("[RuntimeException]")));
}
@Test