I love to clean code and stuff

This commit is contained in:
Gabriele C
2015-11-10 19:28:17 +01:00
parent 2c45cece00
commit 8a4f2c5ef8
14 changed files with 38 additions and 1194 deletions
@@ -163,17 +163,6 @@ public class Utils {
return false;
}
// TODO: remove if not needed
public static void hasPermOnJoin(Player player) {
if (plugin.permission == null)
return;
for (String permission : Settings.getJoinPermissions) {
if (plugin.permission.playerHas(player, permission)) {
plugin.permission.playerAddTransient(player, permission);
}
}
}
// TODO: Move to a Manager
public static boolean checkAuth(Player player) {
if (player == null || Utils.isUnrestricted(player)) {