From 7a3665d64029f1e632752f7327869396b839a56c Mon Sep 17 00:00:00 2001 From: Angelillo15 Date: Fri, 10 Jan 2025 18:55:57 +0100 Subject: [PATCH] fix(staff): restore location instead of double inventory restore --- .../staff/paper/extension/staff/PaperStaffModeExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/extension/staff/PaperStaffModeExtension.java b/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/extension/staff/PaperStaffModeExtension.java index c42b72e5..679a79cb 100644 --- a/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/extension/staff/PaperStaffModeExtension.java +++ b/NookureStaff-Paper/src/main/java/com/nookure/staff/paper/extension/staff/PaperStaffModeExtension.java @@ -115,7 +115,7 @@ public void disableStaffMode() { long time = System.currentTimeMillis(); player.disablePlayerPerks(); restoreInventory(); - if (config.get().staffMode.teleportToPreviousLocation()) restoreInventory(); + if (config.get().staffMode.teleportToPreviousLocation()) restoreLocation(); player.sendMiniMessage(messages.get().staffMode.toggledOff()); writeStaffModeState(false);