mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 13:36:04 +01:00
UUID fix for SuperVanish/PremiumVanish hook
This commit is contained in:
parent
28c924e875
commit
2b6d26d95b
2
pom.xml
2
pom.xml
@ -398,7 +398,7 @@
|
||||
<dependency>
|
||||
<groupId>com.cnaude.supervanish</groupId>
|
||||
<artifactId>SuperVanish</artifactId>
|
||||
<version>5.6.2</version>
|
||||
<version>5.9.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- SimpleTicketManager -->
|
||||
|
@ -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<String> invisiblePlayers = VanishAPI.getInvisiblePlayers();
|
||||
for (String uuid : invisiblePlayers) {
|
||||
if (uuid.equalsIgnoreCase(player.getUniqueId().toString())) {
|
||||
List<UUID> invisiblePlayers = VanishAPI.getInvisiblePlayers();
|
||||
for (UUID uuid : invisiblePlayers) {
|
||||
if (uuid.equals(player.getUniqueId())) {
|
||||
plugin.logDebug("Player " + player.getName() + " is vanished.");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user