mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Add APIv3 and API events
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user