From 1745638eb4b775b26539f183b51387d1b64a0af0 Mon Sep 17 00:00:00 2001 From: Rodzynus Date: Sun, 14 May 2017 01:47:38 +0100 Subject: [PATCH] Correctly recognise vanished players during quit event. Remove broken repo. --- dependency-reduced-pom.xml | 434 ++++++++++++++++++ pom.xml | 7 +- .../purpleirc/Hooks/SuperVanishHook.java | 5 +- 3 files changed, 438 insertions(+), 8 deletions(-) create mode 100644 dependency-reduced-pom.xml diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml new file mode 100644 index 0000000..7253141 --- /dev/null +++ b/dependency-reduced-pom.xml @@ -0,0 +1,434 @@ + + + 4.0.0 + com.cnaude + PurpleIRC + PurpleIRC-spigot + 1.0-SNAPSHOT + Minecraft IRC integration for CraftBukkit/Spigot servers. + http://www.spigotmc.org/resources/purpleirc.2836/ + + + + true + src/main/resources + + plugin.yml + + + + src/main/resources + + plugin.yml + + + + + + maven-compiler-plugin + 3.5.1 + + 1.7 + 1.7 + + + + maven-shade-plugin + 2.4.3 + + + package + + shade + + + true + + + com.cnaude.pircbotx + commons-codec + + + + + + org.pircbotx + com.cnaude.purpleirc.ext.org.pircbotx + + + org.apache.commons.lang3 + com.cnaude.purpleirc.ext.org.apache.commons.lang3 + + + org.apache.commons.codec + com.cnaude.purpleirc.ext.org.apache.commons.codec + + + + + + + + maven-antrun-plugin + + + package + + run + + + + + + + + + + + + + + cnaude-repo + http://cnaude.org/repo/ + + + + false + + + false + + sonatype-nexus-public + SonaType public snapshots and releases repository + https://oss.sonatype.org/content/groups/public + + + + + regularbox-repo + http://ci.regularbox.com/plugin/repository/everything/ + + + dmulloy2-repo + http://repo.dmulloy2.net/content/groups/public/ + + + placeholderapi + http://repo.extendedclip.com/content/repositories/placeholderapi/ + + + + + org.bukkit + spigot-api + 1.11.2 + provided + + + org.bukkit + spigot-183 + 1.8.3 + provided + + + org.bukkit + spigot-184 + 1.8.4 + provided + + + org.bukkit + spigot-19 + 1.9 + provided + + + org.bukkit + spigot-194 + 1.9.4 + provided + + + org.bukkit + spigot-110 + 1.10 + provided + + + org.bukkit + spigot-111 + 1.11 + provided + + + commons-io + commons-io + 2.4 + compile + + + com.google.guava + guava + 19.0 + compile + + + com.cnaude.nplugins + ntheendagain + 0.6.10-SNAPSHOT + compile + + + com.cnaude.essentialsx + essentialsx + 2.0.1 + compile + + + com.nyancraft.reportrts + ReportRTS + 2.0.0-54 + compile + + + ProtocolLib + com.comphenix.protocol + + + Vault + net.milkbowl.net + + + bukkit + org.bukkit + + + + + net.milkbowl.vault + Vault + 1.5.6 + compile + + + com.cnaude.herochat + Herochat + 5.6.5 + compile + + + com.cnaude.venturechat + VentureChat + 2.11.0 + compile + + + com.cnaude.jobs + Jobs + 2.18.8 + compile + + + com.cnaude.jobs + JobsOld + 2.12.0 + compile + + + com.cnaude.factions + Factions + 2.7.5 + compile + + + com.cnaude.orebroadcast + OreBroadcast + 1.2 + compile + + + com.cnaude.RedditStream + RedditStream + 0.2 + compile + + + com.cnaude.vanishnopacket + VanishNoPacket + 3.19.2-SNAPSHOT + compile + + + com.cnaude.mcore + MassiveCore + 2.7.5 + compile + + + nz.co.lolnet.james137137 + factionchat + 1.9.16 + compile + + + com.cnaude.titanchat + TitanChat + 4.1 + compile + + + com.gmail.nossr50 + mcMMO + 1.5.01-SNAPSHOT-b3682 + compile + + + com.cnaude.multiverse + Multiverse-Core + 2.5 + compile + + + com.cnaude.townychat + TownyChat + 0.40 + compile + + + com.cnaude.towny + Towny + 0.84.0.0 + compile + + + com.comphenix.protocol + ProtocolLib-API + 4.0 + compile + + + com.cnaude.clevernotch + CleverNotch + 1.1-RELEASE + compile + + + com.cnaude.deathmessages + DeathMessages + 2.9.1-SNAPSHOT + compile + + + com.cnaude.deathmessagesprime + DeathMessagesPrime + 1.11.11 + compile + + + com.cnaude.shortify + Shortify + 1.8-SNAPSHOT + compile + + + com.cnaude.shortify + Shortify-Universal + 1.7-SNAPSHOT + compile + + + com.cnaude.commandbook + CommandBook + 2.5-SNAPSHOT + compile + + + com.cnaude.dynmap + DynmapAPI + 2.1 + compile + + + com.cnaude.prism + Prism + 2.0.1 + compile + + + com.cnaude.adminprivatechat + AdminPrivateChat + 2.1 + compile + + + com.cnaude.supervanish + SuperVanish + 5.9.1 + compile + + + com.cnaude.simpleticketmanager + SimpleTicketManager + 2.0.3 + compile + + + com.cnaude.griefprevention + GriefPrevention + 12.1 + compile + + + me.clip + placeholderapi + 2.5.1 + provided + + + com.scarsz.discordsrv + DiscordSRV + 13.5 + provided + + + com.cnaude.uchat + UltimateChat + 1.6.8-b502 + provided + + + junit + junit + 4.12 + test + + + hamcrest-core + org.hamcrest + + + + + com.carrotsearch + junit-benchmarks + 0.7.2 + test + + + + + stage-repo + file://${basedir}/../repo/releases + + + stage-repo-stapshots + file://${basedir}/../repo/snapshots + + + + SNAPSHOT + UTF-8 + 1.11.2 + + + diff --git a/pom.xml b/pom.xml index 7eb70da..b35ce64 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.cnaude PurpleIRC - 1.0-${build.number} + 1.0-SNAPSHOT PurpleIRC-spigot Minecraft IRC integration for CraftBukkit/Spigot servers. http://www.spigotmc.org/resources/purpleirc.2836/ @@ -83,11 +83,6 @@ placeholderapi http://repo.extendedclip.com/content/repositories/placeholderapi/ - - - Scarsz-Jenkins - http://scarsz.tech:8080/plugin/repository/everything/ - diff --git a/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java b/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java index b2b7ff0..2618868 100644 --- a/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java +++ b/src/main/java/com/cnaude/purpleirc/Hooks/SuperVanishHook.java @@ -44,13 +44,14 @@ public class SuperVanishHook { * @return */ public boolean isVanished(Player player) { - List invisiblePlayers = VanishAPI.getInvisiblePlayers(); - for (UUID uuid : invisiblePlayers) { + List allinvisiblePlayers = VanishAPI.getAllInvisiblePlayers(); + for (UUID uuid : allinvisiblePlayers) { if (uuid.equals(player.getUniqueId())) { plugin.logDebug("Player " + player.getName() + " is vanished."); return true; } } + plugin.logDebug("Player " + player.getName() + " is not vanished."); return false; } }