From 2b6d26d95b0d063bf31a0ea2c94b32af00b6bda7 Mon Sep 17 00:00:00 2001 From: cnaude Date: Tue, 21 Feb 2017 21:18:46 -0700 Subject: [PATCH] UUID fix for SuperVanish/PremiumVanish hook --- pom.xml | 2 +- .../java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 114e64d..00d6ce5 100644 --- a/pom.xml +++ b/pom.xml @@ -398,7 +398,7 @@ com.cnaude.supervanish SuperVanish - 5.6.2 + 5.9.1 diff --git a/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java b/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java index 4b50a6e..b2b7ff0 100644 --- a/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java +++ b/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java @@ -17,8 +17,9 @@ package com.cnaude.purpleirc.Hooks; import com.cnaude.purpleirc.PurpleIRC; -import java.util.List; import de.myzelyam.api.vanish.VanishAPI; +import java.util.List; +import java.util.UUID; import org.bukkit.entity.Player; /** @@ -43,9 +44,9 @@ public class SuperVanishHook { * @return */ public boolean isVanished(Player player) { - List invisiblePlayers = VanishAPI.getInvisiblePlayers(); - for (String uuid : invisiblePlayers) { - if (uuid.equalsIgnoreCase(player.getUniqueId().toString())) { + List invisiblePlayers = VanishAPI.getInvisiblePlayers(); + for (UUID uuid : invisiblePlayers) { + if (uuid.equals(player.getUniqueId())) { plugin.logDebug("Player " + player.getName() + " is vanished."); return true; }