Update SuperVanish (and PremiiumVanish) dependency to 5.5.0.

This commit is contained in:
cnaude 2016-03-14 18:21:25 -07:00
parent 66c6e972ef
commit 89ab3ff194
5 changed files with 18 additions and 10 deletions

View File

@ -26,7 +26,7 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version> <version>3.5.1</version>
<configuration> <configuration>
<source>1.7</source> <source>1.7</source>
<target>1.7</target> <target>1.7</target>
@ -34,7 +34,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>2.4.2</version> <version>2.4.3</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
@ -156,7 +156,7 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>18.0</version> <version>19.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -344,7 +344,7 @@
<dependency> <dependency>
<groupId>com.cnaude.supervanish</groupId> <groupId>com.cnaude.supervanish</groupId>
<artifactId>SuperVanish</artifactId> <artifactId>SuperVanish</artifactId>
<version>5.0.1</version> <version>5.5.0</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -124,7 +124,7 @@
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>18.0</version> <version>19.0</version>
</dependency> </dependency>
<!-- NTheEndAgain --> <!-- NTheEndAgain -->
@ -343,7 +343,7 @@
<dependency> <dependency>
<groupId>com.cnaude.supervanish</groupId> <groupId>com.cnaude.supervanish</groupId>
<artifactId>SuperVanish</artifactId> <artifactId>SuperVanish</artifactId>
<version>5.0.1</version> <version>5.5.0</version>
</dependency> </dependency>
<!-- SimpleTicketManager --> <!-- SimpleTicketManager -->
@ -398,7 +398,7 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version> <version>3.5.1</version>
<configuration> <configuration>
<source>1.7</source> <source>1.7</source>
<target>1.7</target> <target>1.7</target>
@ -408,7 +408,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>2.4.2</version> <version>2.4.3</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>

View File

@ -18,7 +18,7 @@ package com.cnaude.purpleirc.Hooks;
import com.cnaude.purpleirc.PurpleIRC; import com.cnaude.purpleirc.PurpleIRC;
import java.util.List; import java.util.List;
import me.MyzelYam.SuperVanish.api.SVAPI; import de.myzelyam.api.vanish.VanishAPI;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
/** /**
@ -43,7 +43,7 @@ public class SuperVanishHook {
* @return * @return
*/ */
public boolean isVanished(Player player) { public boolean isVanished(Player player) {
List<String> invisiblePlayers = SVAPI.getInvisiblePlayers(); List<String> invisiblePlayers = VanishAPI.getInvisiblePlayers();
for (String uuid : invisiblePlayers) { for (String uuid : invisiblePlayers) {
if (uuid.equalsIgnoreCase(player.getUniqueId().toString())) { if (uuid.equalsIgnoreCase(player.getUniqueId().toString())) {
plugin.logDebug("Player " + player.getName() + " is vanished."); plugin.logDebug("Player " + player.getName() + " is vanished.");

View File

@ -220,6 +220,7 @@ public class PurpleIRC extends JavaPlugin {
final String PL_SIMPLETICKET = "SimpleTicketManager"; final String PL_SIMPLETICKET = "SimpleTicketManager";
final String PL_NTHE_END_AGAIN = "NTheEndAgain"; final String PL_NTHE_END_AGAIN = "NTheEndAgain";
final String PL_SUPERVANISH = "SuperVanish"; final String PL_SUPERVANISH = "SuperVanish";
final String PL_PREMIUMVANISH = "PremiumVanish";
final String PL_VANISHNOPACKET = "VanishNoPacket"; final String PL_VANISHNOPACKET = "VanishNoPacket";
final String PL_OREBROADCAST = "OreBroadcast"; final String PL_OREBROADCAST = "OreBroadcast";
final String PL_DYNMAP = "dynmap"; final String PL_DYNMAP = "dynmap";
@ -1698,6 +1699,12 @@ public class PurpleIRC extends JavaPlugin {
} else { } else {
hookList.add(hookFormat(PL_SUPERVANISH, false)); hookList.add(hookFormat(PL_SUPERVANISH, false));
} }
if (isPluginEnabled(PL_PREMIUMVANISH)) {
hookList.add(hookFormat(PL_PREMIUMVANISH, true));
superVanishHook = new SuperVanishHook(this);
} else {
hookList.add(hookFormat(PL_SUPERVANISH, false));
}
if (isPluginEnabled(PL_REPORTRTS)) { if (isPluginEnabled(PL_REPORTRTS)) {
hookList.add(hookFormat(PL_REPORTRTS, true)); hookList.add(hookFormat(PL_REPORTRTS, true));
getServer().getPluginManager().registerEvents(new ReportRTSListener(this), this); getServer().getPluginManager().registerEvents(new ReportRTSListener(this), this);

View File

@ -21,6 +21,7 @@ softdepend:
- RedditStream - RedditStream
- AdminPrivateChat - AdminPrivateChat
- SuperVanish - SuperVanish
- PremiumVanish
- VanishNoPacket - VanishNoPacket
commands: commands:
irc: irc: