Skip to content

Commit 7434057

Browse files
committed
Improve timeout and vanish channels
1 parent 5087d8d commit 7434057

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/java/com/github/fernthedev/fernapi/universal/FernAPIChannels.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private FernAPIChannels() {
1515

1616
public static final Channel PlaceHolderBungeeChannel = new Channel("fernapi", "ph", Channel.ChannelAction.BOTH);
1717

18-
public static final Channel VANISH_CHANNEL = new Channel("fernapi", "vanish", Channel.ChannelAction.BOTH);
18+
public static final Channel VANISH_CHANNEL = new Channel("fernapi", "vanishv2", Channel.ChannelAction.BOTH);
1919

2020
public static final String VANISH_SUBCHANNEL = "vanish";
2121

core/src/main/java/com/github/fernthedev/fernapi/universal/api/IFPlayer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ public CompletableFuture<Boolean> isVanished(int amount, TimeUnit timeUnit) {
120120
CompletableFuture<Boolean> completableFuture = new CompletableFuture<>();
121121

122122
new VanishProxyCheck(this, (player, isVanished, timedOut) -> {
123-
if (timedOut) throw new PluginTimeoutException("The vanish check timed out. The server must have FernAPI enabled and registered");
124-
125123
completableFuture.complete(isVanished);
124+
125+
if (timedOut) throw new PluginTimeoutException("The vanish check timed out. The server must have AskPlaceHolderSpigot plugin enabled and registered");
126126
}).setTimeout(amount, timeUnit);
127127

128128
return completableFuture;

0 commit comments

Comments
 (0)