Slimefun4 icon indicating copy to clipboard operation
Slimefun4 copied to clipboard

SlimefunGuideMode.CHEAT_MODE doesn't fire

Open JustinDevB opened this issue 3 years ago • 0 comments

❗ Checklist

  • [X] I am using the official english version of Slimefun and did not modify the jar.
  • [X] I am using an up to date "DEV" (not "RC") version of Slimefun.
  • [X] I am aware that issues related to Slimefun addons need to be reported on their bug trackers and not here.
  • [X] I searched for similar open issues and could not find an existing bug report on this.

📍 Description

@EventHandler public void slimefunGuideOpen(SlimefunGuideOpenEvent event) { mcpe.log("Mode: " + event.getGuideLayout().toString(), true); if (event.getGuideLayout() != SlimefunGuideMode.CHEAT_MODE) return;

When doing /sf cheat this never returns CHEAT_MODE, nothing is printed. Haven't looked through the source, but I'm guessing that the /sf cheat command does not fire the SlimefunGuideOpenEvevnt event and then set the Enum to CHEAT_MODE

📑 Reproduction Steps

@EventHandler public void slimefunGuideOpen(SlimefunGuideOpenEvent event) { mcpe.log("Mode: " + event.getGuideLayout().toString(), true); if (event.getGuideLayout() != SlimefunGuideMode.CHEAT_MODE) return;

Run /sf cheat nothing will print. Open a regular guide and it prints SURVIVAL_MODE This should fire and print CHEAT_MODE when opening the cheat menu

💡 Expected Behavior

SlimefunGuideOpeneEvent fires on /sf cheat and Enum is properly set to CHEAT_MODE

📷 Screenshots / Videos

No response

📜 Server Log

No response

📂 /error-reports/ folder

No response

💻 Server Software

Purpur

🎮 Minecraft Version

1.18.x

⭐ Slimefun version

Capture

🧭 Other plugins

No response

JustinDevB avatar Feb 12 '22 20:02 JustinDevB