Script isn't working but can't find anything wrong

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Goose

Supporter
Nov 23, 2019
439
33
28
I can't find anything wrong with my script but there is apparently errors, keep in mind that some of the commands that the script forces the player to run commands that have not been implemented yet and the GUI won't open when the script is ran.

CODE:


command /punish [<offline player>]:
trigger:
open chest with 3 rows named &4&lPunish %player% to player
format slot 0 with light gray glass named "&4" to be unstealable
format slot 1 with light gray glass named "&4" to be unstealable
format slot 2 with light gray glass named "&4" to be unstealable
format slot 3 with light gray glass named "&4" to be unstealable
format slot 4 of player with skull of ("%player%" parsed as an offline player) to be unstealable
format slot 5 with light gray glass named "&4" to be unstealable
format slot 6 with light gray glass named "&4" to be unstealable
format slot 7 with light gray glass named "&4" to be unstealable
format slot 8 with light gray glass named "&4" to be unstealable
format slot 9 with red terracotta named "&c&lBan" to be unstealable and run:
[make player execute command "/punishreasons"]
format slot 10 with red glazed terracotta named "&c&lTempban" to be unstealable and run:
[make player execute command "/punishtimes"]
format slot 12 with blue terracotta named "&b&lMute" to be unstealable and run:
[make player execute "/punishreasons"]
format slot 13 with blue glazed terracotta named "&b&lTempmute" to be unstealable and run: [make player execute "/punishtimes"]
format slot 15 with red terracotta named "&3&lWarn" to be unstealable and run: [make player execute "/punishreasons"]
 
  • Like
Reactions: Chief_Cman
Try This:

command /punish <offline player>:
trigger:
open chest with 3 rows named "&4&lPunish %player%" to player
format slot 0 of player with lightgrayglass named "&4" to be unstealable
format slot 1 of player with lightgrayglass named "&4" to be unstealable
format slot 2 of player with lightgrayglass "&4" to be unstealable
format slot 3 of player with lightgrayglass "&4" to be unstealable
format slot 4 of player with skull of ("%player%" parsed as offline player) to be unstealable
format slot 5 of player with lightgrayglass named "&4" to be unstealable
format slot 6 of player with lightgraylass named "&4" to be unstealable
format slot 7 of player with lightgrayglass named "&4" to be unstealable
format slot 8 of player with lightgrayglass named "&4" to be unstealable
format slot 9 of player with redstainedclay named "&c&lBan" to close then run [execute player command "/punishreasons"]
format slot 10 of player with bluestainedclay named "&c&lTempban" to close then run [execute player command "/punishtimes"]
format slot 11 of player with bluestainedclay named "&b&lMute" to close then run [execute player command "/punishreasons"]
format slot 12 of player with bluestainedclay named "&b&lTempmute" to close then run [execute player command "/punishtimes"]
format slot 13 of player with bluestainedclay named "&3&lWarn" to close then run [execute player command "/punishreasons"]
 
Try This:

command /punish <offline player>:
trigger:
open chest with 3 rows named "&4&lPunish %player%" to player
format slot 0 of player with lightgrayglass named "&4" to be unstealable
format slot 1 of player with lightgrayglass named "&4" to be unstealable
format slot 2 of player with lightgrayglass "&4" to be unstealable
format slot 3 of player with lightgrayglass "&4" to be unstealable
format slot 4 of player with skull of ("%player%" parsed as offline player) to be unstealable
format slot 5 of player with lightgrayglass named "&4" to be unstealable
format slot 6 of player with lightgraylass named "&4" to be unstealable
format slot 7 of player with lightgrayglass named "&4" to be unstealable
format slot 8 of player with lightgrayglass named "&4" to be unstealable
format slot 9 of player with redstainedclay named "&c&lBan" to close then run [execute player command "/punishreasons"]
format slot 10 of player with bluestainedclay named "&c&lTempban" to close then run [execute player command "/punishtimes"]
format slot 11 of player with bluestainedclay named "&b&lMute" to close then run [execute player command "/punishreasons"]
format slot 12 of player with bluestainedclay named "&b&lTempmute" to close then run [execute player command "/punishtimes"]
format slot 13 of player with bluestainedclay named "&3&lWarn" to close then run [execute player command "/punishreasons"]
Ok, I'll try it! Thanks for the help, I will get back to you if it worked or not.
 
Status
Not open for further replies.