mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Update SuperVanish (and PremiiumVanish) dependency to 5.5.0.
This commit is contained in:
parent
66c6e972ef
commit
89ab3ff194
@ -26,7 +26,7 @@
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.3</version>
|
||||
<version>3.5.1</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
@ -34,7 +34,7 @@
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>2.4.2</version>
|
||||
<version>2.4.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
@ -156,7 +156,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>18.0</version>
|
||||
<version>19.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -344,7 +344,7 @@
|
||||
<dependency>
|
||||
<groupId>com.cnaude.supervanish</groupId>
|
||||
<artifactId>SuperVanish</artifactId>
|
||||
<version>5.0.1</version>
|
||||
<version>5.5.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
8
pom.xml
8
pom.xml
@ -124,7 +124,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>18.0</version>
|
||||
<version>19.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- NTheEndAgain -->
|
||||
@ -343,7 +343,7 @@
|
||||
<dependency>
|
||||
<groupId>com.cnaude.supervanish</groupId>
|
||||
<artifactId>SuperVanish</artifactId>
|
||||
<version>5.0.1</version>
|
||||
<version>5.5.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- SimpleTicketManager -->
|
||||
@ -398,7 +398,7 @@
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.3</version>
|
||||
<version>3.5.1</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
@ -408,7 +408,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>2.4.2</version>
|
||||
<version>2.4.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
|
@ -18,7 +18,7 @@ package com.cnaude.purpleirc.Hooks;
|
||||
|
||||
import com.cnaude.purpleirc.PurpleIRC;
|
||||
import java.util.List;
|
||||
import me.MyzelYam.SuperVanish.api.SVAPI;
|
||||
import de.myzelyam.api.vanish.VanishAPI;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
@ -43,7 +43,7 @@ public class SuperVanishHook {
|
||||
* @return
|
||||
*/
|
||||
public boolean isVanished(Player player) {
|
||||
List<String> invisiblePlayers = SVAPI.getInvisiblePlayers();
|
||||
List<String> invisiblePlayers = VanishAPI.getInvisiblePlayers();
|
||||
for (String uuid : invisiblePlayers) {
|
||||
if (uuid.equalsIgnoreCase(player.getUniqueId().toString())) {
|
||||
plugin.logDebug("Player " + player.getName() + " is vanished.");
|
||||
|
@ -220,6 +220,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
final String PL_SIMPLETICKET = "SimpleTicketManager";
|
||||
final String PL_NTHE_END_AGAIN = "NTheEndAgain";
|
||||
final String PL_SUPERVANISH = "SuperVanish";
|
||||
final String PL_PREMIUMVANISH = "PremiumVanish";
|
||||
final String PL_VANISHNOPACKET = "VanishNoPacket";
|
||||
final String PL_OREBROADCAST = "OreBroadcast";
|
||||
final String PL_DYNMAP = "dynmap";
|
||||
@ -1698,6 +1699,12 @@ public class PurpleIRC extends JavaPlugin {
|
||||
} else {
|
||||
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)) {
|
||||
hookList.add(hookFormat(PL_REPORTRTS, true));
|
||||
getServer().getPluginManager().registerEvents(new ReportRTSListener(this), this);
|
||||
|
@ -21,6 +21,7 @@ softdepend:
|
||||
- RedditStream
|
||||
- AdminPrivateChat
|
||||
- SuperVanish
|
||||
- PremiumVanish
|
||||
- VanishNoPacket
|
||||
commands:
|
||||
irc:
|
||||
|
Loading…
Reference in New Issue
Block a user