9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-29 11:59:14 +00:00

fix: GSit integration not working on 2.0.0

This commit is contained in:
LoJoSho
2025-02-01 10:00:28 -06:00
parent c2ea3121bb
commit 14630bfe48
3 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package me.lojosho.hibiscuscommons.hooks.misc;
import dev.geco.gsit.api.event.PlayerGetUpPoseEvent;
import dev.geco.gsit.api.event.PlayerPoseEvent;
import dev.geco.gsit.api.event.PlayerStopPoseEvent;
import me.lojosho.hibiscuscommons.api.events.HibiscusPlayerPoseEvent;
import me.lojosho.hibiscuscommons.hooks.Hook;
import org.bukkit.Bukkit;
@@ -22,7 +22,7 @@ public class HookGSit extends Hook {
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOW)
public void onPlayerGetUp(PlayerGetUpPoseEvent event) {
public void onPlayerGetUp(PlayerStopPoseEvent event) {
HibiscusPlayerPoseEvent newEvent = new HibiscusPlayerPoseEvent(this, event.getPlayer(), true);
Bukkit.getPluginManager().callEvent(newEvent);
}