update to use the new vault API

This commit is contained in:
DNx5
2015-09-20 19:38:46 +07:00
parent b27079026b
commit c94f9c5cdc
4 changed files with 33 additions and 51 deletions
@@ -464,7 +464,7 @@ public class AdminCommand implements CommandExecutor {
@SuppressWarnings("deprecation")
Player target = Bukkit.getPlayer(name);
PlayerCache.getInstance().removePlayer(name);
Utils.setGroup(name, GroupType.UNREGISTERED);
Utils.setGroup(target, GroupType.UNREGISTERED);
if (target != null) {
if (target.isOnline()) {
if (Settings.isTeleportToSpawnEnabled && !Settings.noTeleport) {