1212import com .springwater .easybot .papi .OfflineStatisticExpansion ;
1313import com .springwater .easybot .task .TaskManager ;
1414import com .springwater .easybot .utils .BukkitUtils ;
15+ import com .springwater .easybot .utils .FakePlayerUtils ;
1516import com .springwater .easybot .utils .ItemsAdderUtils ;
1617import org .bukkit .Bukkit ;
1718import org .bukkit .event .EventHandler ;
@@ -57,7 +58,7 @@ public void onEnable() {
5758 ClientProfile .setDebugMode (getConfig ().getBoolean ("debug" , false ));
5859
5960 instance = this ;
60- bridgeBehavior = new EasyBotImpl ();
61+ bridgeBehavior = new BridgeImpl ();
6162
6263 initHooks ();
6364
@@ -82,11 +83,11 @@ public void onEnable() {
8283
8384
8485 private void handleSkinsRestorerCompatibility () {
85- if (BukkitUtils .hasSkinsRestorer () && !BukkitUtils .placeholderApiInstalled ()){
86+ if (BukkitUtils .hasSkinsRestorer () && !BukkitUtils .placeholderApiInstalled ()) {
8687 getLogger ().info ("\u001B [31m※ 检测到SkinsRestorer插件,但未检测到PlaceholderApi插件,EasyBot获取SkinsRestorer的皮肤需要依赖PlaceholderApi!\u001B [0m" );
8788 }
8889
89- if (BukkitUtils .hasSkinsRestorer () && BukkitUtils .placeholderApiInstalled ()) {
90+ if (BukkitUtils .hasSkinsRestorer () && BukkitUtils .placeholderApiInstalled ()) {
9091 getLogger ().info ("\u001B [32m※ 检测到SkinsRestorer插件,玩家皮肤将通过该插件获取!\u001B [0m" );
9192 ClientProfile .setHasSkinsRestorer (true );
9293 } else if (BukkitUtils .hasPaperSkinApi ()) {
@@ -98,7 +99,7 @@ private void handleSkinsRestorerCompatibility() {
9899 }
99100
100101 private void handleItemsAdderCompatibility () {
101- if (ItemsAdderUtils .isItemsAdderInstalled ()){
102+ if (ItemsAdderUtils .isItemsAdderInstalled ()) {
102103 getLogger ().info ("\u001B [32m※ 检测到ItemsAdder插件!\u001B [0m" );
103104 ClientProfile .setHasItemsAdder (true );
104105 Bukkit .getPluginManager ().registerEvents (new ItemsAdderEvents (), this );
@@ -238,6 +239,12 @@ private void initHooks() {
238239 getLogger ().info ("\u001B [32m※ 已注册离线变量,专用文档: \u001B [33mhttps://docs.hualib.com/offline-papi.html\u001B [0m" );
239240 }
240241
242+ getLogger ().info ("\u001B [32m[>]\u001B [0m 假人插件" );
243+ if (FakePlayerUtils .isInstalled ()) {
244+ getLogger ().info (" \u001B [32m[OK]\u001B [0m 已开启假人过滤" );
245+ } else {
246+ getLogger ().info (" \u001B [32m[OK]\u001B [0m 已关闭假人过滤" );
247+ }
241248 }
242249
243250 private void uninstallPlaceholderApi () {
0 commit comments