Add APIv3 and API events

This commit is contained in:
William committed 2022-08-26 22:19:15 +01:00
1 parent 0fc56dc758
commit 59249f285a
25 files changed
+985 -100

No files matched your search

@@ -349,6 +349,9 @@ public class TeleportManager {
@NotNull TeleportType teleportType) {
final Teleport teleport = new Teleport(onlineUser, position, teleportType);
// Call the teleport event
plugin.getEventDispatcher().dispatchTeleportEvent(teleport);
// Update the player's last position
if (!plugin.getSettings().backCommandSaveOnTeleportEvent) {
plugin.getDatabase().setLastPosition(onlineUser, onlineUser.getPosition());