Skip to content

Commit

Permalink
rm: 移除调试用组件
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Nov 3, 2023
1 parent 2eb4e84 commit eb7633a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions src/main/java/xiamomc/morph/events/CommonEventProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,6 @@ public class CommonEventProcessor extends MorphPluginObject implements Listener

private Bindable<Boolean> 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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb7633a

Please sign in to comment.