On the Bukkit platform, NPCs aren't shown immediately after teleporting the player. They only show up when the player moves.
I think this could be solved by also listening to the PlayerTeleportEvent and simply invoking the handleMove function with the event object of PlayerTeleportEvent (since PlayerTeleportEvent inherits from PlayerMoveEvent):
|
public void handleMove(@NotNull PlayerMoveEvent event) { |
On the Bukkit platform, NPCs aren't shown immediately after teleporting the player. They only show up when the player moves.
I think this could be solved by also listening to the
PlayerTeleportEventand simply invoking thehandleMovefunction with the event object ofPlayerTeleportEvent(sincePlayerTeleportEventinherits fromPlayerMoveEvent):npc-lib/bukkit/src/main/java/com/github/juliarn/npclib/bukkit/BukkitActionController.java
Line 131 in 3a2002e