Skip to content

Commit 3c1a05d

Browse files
committed
update for latest BungeeCord; fixes #774
1 parent 5386666 commit 3c1a05d

6 files changed

Lines changed: 12 additions & 13 deletions

File tree

bungee/src/main/java/codecrafter47/bungeetablistplus/BungeeTabListPlus.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,37 +187,37 @@ public void onLoad() {
187187
try {
188188
Class.forName("net.md_5.bungee.api.Title");
189189
} catch (ClassNotFoundException ex) {
190-
throw new RuntimeException("You need to run at least BungeeCord version #1899");
190+
throw new RuntimeException("You need to run at least BungeeCord version #1990");
191191
}
192192

193193
try {
194194
Connection.class.getMethod("isConnected");
195195
} catch (NoSuchMethodException ex) {
196-
throw new RuntimeException("You need to run at least BungeeCord version #1899");
196+
throw new RuntimeException("You need to run at least BungeeCord version #1990");
197197
}
198198

199199
try {
200200
Class.forName("net.md_5.bungee.protocol.packet.PlayerListItemUpdate");
201201
} catch (ClassNotFoundException ex) {
202-
throw new RuntimeException("You need to run at least BungeeCord version #1899");
202+
throw new RuntimeException("You need to run at least BungeeCord version #1990");
203203
}
204204

205205
try {
206206
PlayerListHeaderFooter.class.getMethod("setHeader", BaseComponent.class);
207207
} catch (NoSuchMethodException ex) {
208-
throw new RuntimeException("You need to run at least BungeeCord version #1899");
208+
throw new RuntimeException("You need to run at least BungeeCord version #1990");
209209
}
210210

211211
try {
212-
Class.forName("net.md_5.bungee.protocol.Either");
212+
Class.forName("net.md_5.bungee.protocol.packet.Team");
213213
} catch (ClassNotFoundException ex) {
214-
throw new RuntimeException("You need to run at least BungeeCord version #1899");
214+
throw new RuntimeException("You need to run at least BungeeCord version #1990");
215215
}
216216

217217
try {
218-
Class.forName("net.md_5.bungee.protocol.packet.Team");
218+
Class.forName("net.md_5.bungee.protocol.util.Either");
219219
} catch (ClassNotFoundException ex) {
220-
throw new RuntimeException("You need to run at least BungeeCord version #1899");
220+
throw new RuntimeException("You need to run at least BungeeCord version #1990");
221221
}
222222

223223
INSTANCE = this;

bungee/src/main/java/codecrafter47/bungeetablistplus/handler/AbstractLegacyTabOverlayHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import net.md_5.bungee.api.ChatColor;
4040
import net.md_5.bungee.api.chat.TextComponent;
4141
import net.md_5.bungee.protocol.DefinedPacket;
42-
import net.md_5.bungee.protocol.Either;
42+
import net.md_5.bungee.protocol.util.Either;
4343
import net.md_5.bungee.protocol.packet.*;
4444

4545
import javax.annotation.Nonnull;

bungee/src/main/java/codecrafter47/bungeetablistplus/handler/AbstractTabOverlayHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import net.md_5.bungee.api.chat.TextComponent;
3737
import net.md_5.bungee.chat.ComponentSerializer;
3838
import net.md_5.bungee.protocol.DefinedPacket;
39-
import net.md_5.bungee.protocol.Either;
39+
import net.md_5.bungee.protocol.util.Either;
4040
import net.md_5.bungee.protocol.packet.PlayerListHeaderFooter;
4141
import net.md_5.bungee.protocol.packet.PlayerListItem;
4242
import net.md_5.bungee.protocol.packet.Team;

bungee/src/main/java/codecrafter47/bungeetablistplus/handler/NewTabOverlayHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import net.md_5.bungee.chat.ComponentSerializer;
4141
import net.md_5.bungee.netty.ChannelWrapper;
4242
import net.md_5.bungee.protocol.DefinedPacket;
43-
import net.md_5.bungee.protocol.Either;
43+
import net.md_5.bungee.protocol.util.Either;
4444
import net.md_5.bungee.protocol.Protocol;
4545
import net.md_5.bungee.protocol.packet.*;
4646

bungee/src/main/java/codecrafter47/bungeetablistplus/handler/OrderedTabOverlayHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import net.md_5.bungee.chat.ComponentSerializer;
4242
import net.md_5.bungee.netty.ChannelWrapper;
4343
import net.md_5.bungee.protocol.DefinedPacket;
44-
import net.md_5.bungee.protocol.Either;
4544
import net.md_5.bungee.protocol.Protocol;
4645
import net.md_5.bungee.protocol.packet.*;
4746

bungee/src/main/java/codecrafter47/bungeetablistplus/util/Property119Handler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package codecrafter47.bungeetablistplus.util;
22

33
import net.md_5.bungee.connection.LoginResult;
4-
import net.md_5.bungee.protocol.Property;
4+
import net.md_5.bungee.protocol.data.Property;
55
import net.md_5.bungee.protocol.packet.PlayerListItem;
66

77
import java.util.Arrays;

0 commit comments

Comments
 (0)