From 0cfede6187f21305e9b08050c30173296164632e Mon Sep 17 00:00:00 2001 From: Zontreck Date: Sun, 18 Feb 2024 08:38:47 -0700 Subject: [PATCH] oops, forgot to add getters --- gradle.properties | 2 +- .../dev/zontreck/libzontreck/events/TeleportEvent.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index b45c6d4..240d5b5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -53,7 +53,7 @@ mod_name=Zontreck's Library Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=GPLv3 # The mod version. See https://semver.org/ -mod_version=1201.11.021824.0834 +mod_version=1201.11.021824.0838 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/dev/zontreck/libzontreck/events/TeleportEvent.java b/src/main/java/dev/zontreck/libzontreck/events/TeleportEvent.java index 6247793..2e7d77d 100644 --- a/src/main/java/dev/zontreck/libzontreck/events/TeleportEvent.java +++ b/src/main/java/dev/zontreck/libzontreck/events/TeleportEvent.java @@ -21,4 +21,12 @@ public class TeleportEvent extends Event this.position=position; this.player=player; } + + public ServerPlayer getPlayer() { + return player; + } + + public WorldPosition getPosition() { + return position; + } }