From 29d02a0384d16a77d99069b049aaf7cc1f353bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=8F=E9=BB=91?= Date: Sat, 1 Dec 2018 16:10:25 +0800 Subject: [PATCH] + nSpigot supported. --- src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java | 2 +- src/main/resources/config.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java b/src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java index 8146a42..d021ad5 100644 --- a/src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java +++ b/src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java @@ -40,7 +40,7 @@ public class TagDataHandler implements Listener { @Override public void run() { - if (PacketUtils.isProtocolLibEnabled()) { + if (PacketUtils.isProtocolLibEnabled() && Main.getInst().getConfig().getBoolean("TABLIST-PACKET", true)) { TagPacket.inst(); } } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index cb95b66..9bac868 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -47,6 +47,9 @@ TABLIST-SORT: true # 玩家列表(TAB-API)是否自动清理没有成员的队伍 TABLIST-AUTO-CLEAN-TEAM: true +# 是否启用发包(禁用后会影响 tagDisplay() 方法的使用) +TABLIST-PACKET: true + # 是否启用更新检测 UPDATE-CHECK: true