From eb7633acd8cf2bcbb4a9b0602d0b635e3e0169d9 Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Fri, 3 Nov 2023 14:54:35 +0800 Subject: [PATCH] =?UTF-8?q?rm:=20=E7=A7=BB=E9=99=A4=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../morph/events/CommonEventProcessor.java | 17 ----------------- .../network/server/MorphClientHandler.java | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/main/java/xiamomc/morph/events/CommonEventProcessor.java b/src/main/java/xiamomc/morph/events/CommonEventProcessor.java index 9e77ac1c..a5801d44 100644 --- a/src/main/java/xiamomc/morph/events/CommonEventProcessor.java +++ b/src/main/java/xiamomc/morph/events/CommonEventProcessor.java @@ -76,23 +76,6 @@ public class CommonEventProcessor extends MorphPluginObject implements Listener private Bindable unMorphOnDeath; - //region Test - @EventHandler - public void onLoadComplete(ManagerFinishedInitializeEvent e) - { - var players = List.of("Icalingua", "Player111", "NekoCrystal"); - var ids = List.of("player:NekoCrystal", "null", "minecraft:allay"); - - for (var str : players) - { - var player = Bukkit.getPlayerExact(str); - if (player == null) continue; - if (ids.get(players.indexOf(str)).equals("null")) continue; - e.manager.morph(null, player, ids.get(players.indexOf(str)), null); - } - } - //endregion - @EventHandler public void onEntityDeath(EntityDeathEvent e) { diff --git a/src/main/java/xiamomc/morph/network/server/MorphClientHandler.java b/src/main/java/xiamomc/morph/network/server/MorphClientHandler.java index a84a2501..5e30b7b0 100644 --- a/src/main/java/xiamomc/morph/network/server/MorphClientHandler.java +++ b/src/main/java/xiamomc/morph/network/server/MorphClientHandler.java @@ -316,7 +316,7 @@ public void waitUntilReady(Player player, Runnable r) if (bool == null) { - logger.info("should remove for " + player.getName()); + //logger.info("should remove for " + player.getName()); return; }