Hello
I have a server where I use a navigator clock and skript to navigate between spawn and survival! I have the script written and it worked on an old server, however it won't work on this new one! The problem is that I have formatted GUI slots and added run commands, but when I click on the item in the menu, it doesn't run what it is supposed to! I am using TuSKe for the GUI! Any ideas on how I can make the run command actually work!
With regards,
Daniel Lazar
CEO, Dlazar Servers Co.
I have a server where I use a navigator clock and skript to navigate between spawn and survival! I have the script written and it worked on an old server, however it won't work on this new one! The problem is that I have formatted GUI slots and added run commands, but when I click on the item in the menu, it doesn't run what it is supposed to! I am using TuSKe for the GUI! Any ideas on how I can make the run command actually work!
With regards,
Daniel Lazar
CEO, Dlazar Servers Co.
Code:
command /menu:
trigger:
open virtual chest inventory with size 1 named "Menu" to player
format gui slot 0 of player with beacon named "Spawn" to run:
teleport player to location at 11878, 152, 5999 in world "Server_world"
set the player's gamemode to survival
clear the player's inventory
set slot 8 of player to clock named "&cNavigator &7"
format gui slot 1 of player with iron sword named "Survival" to run:
teleport player to location at -46, 70, -22 in world "Server_world"
#set the player's gamemode to survival
on rightclick holding a clock:
make player execute "menu"
on join:
set slot 8 of player to clock named "&cNavigator &7"
on player respawn:
set slot 8 of player to clock named "&cNavigator &7"
on inventory click:
if clicked slot = 8:
cancel the event
on inventory click:
if clicked slot = 8:
cancel the event