We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b761580 + 321eba2 commit f405368Copy full SHA for f405368
pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/guide/button/BackButton.kt
@@ -17,7 +17,11 @@ open class BackButton(val player: Player) : AbstractItem() {
17
18
override fun handleClick(clickType: ClickType, player: Player, event: InventoryClickEvent) {
19
val history = PylonGuide.history.getOrPut(player.uniqueId) { mutableListOf() }
20
- if (history.size >= 2) {
+
21
+ if (clickType.isShiftClick) {
22
+ history.clear()
23
+ PylonGuide.rootPage.open(player);
24
+ } else if (history.size >= 2) {
25
history.removeLast() // remove the current page
26
history.removeLast().open(player)
27
}
0 commit comments