diff --git a/pom.xml b/pom.xml
index ebdb2588..22a488cb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
dev.efnilite
IP
- 5.3.0
+ 5.3.1
17
diff --git a/src/main/java/dev/efnilite/ip/menu/play/SpectatorMenu.java b/src/main/java/dev/efnilite/ip/menu/play/SpectatorMenu.java
index 9576b1a7..404be003 100644
--- a/src/main/java/dev/efnilite/ip/menu/play/SpectatorMenu.java
+++ b/src/main/java/dev/efnilite/ip/menu/play/SpectatorMenu.java
@@ -4,6 +4,7 @@
import dev.efnilite.ip.config.Option;
import dev.efnilite.ip.menu.Menus;
import dev.efnilite.ip.menu.ParkourOption;
+import dev.efnilite.ip.mode.Modes;
import dev.efnilite.ip.player.ParkourUser;
import dev.efnilite.ip.session.Session;
import dev.efnilite.ip.world.Divider;
@@ -66,6 +67,8 @@ public void open(Player player) {
}
}
+ item.click(event -> Modes.SPECTATOR.create(player, session));
+
display.add(item);
}
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 7c2a5da2..8bede4b3 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,7 +1,7 @@
name: 'IP'
description: 'Infinitely automatically generating parkour plugin.'
author: Efnilite
-version: 5.3.0
+version: 5.3.1
api-version: 1.16
main: dev.efnilite.ip.IP
softdepend: [floodgate, Vault, PlaceholderAPI, Multiverse-Core, VoidGen]