Hey all, New to skript so I am probably missing something obvious but i have built a punish gui the links to other pages and that all works fine but when myself or staff click items in our inventory it affects the gui and from time to time the items from the gui end up in staff inventories. You can see what i mean in the picture can someone point out the problem in the skript? would be very helpful.
Picture: http://imgur.com/a/vFIDa (would not show on thread for some reason, sorry)
Picture: http://imgur.com/a/vFIDa (would not show on thread for some reason, sorry)
code_language.skript:
command /ban [<offline player>] [<text>]:
permission: smpban.use
permission message: &c&lSMP&f&lAdmin &8> &aNice try! &7Only our staff have this permission.
trigger:
wait 2 ticks
if arg-1 is not set:
send "&c&lSMP&f&lAdmin &8> &6Command &7<player>"
if arg-1 is set:
open chest with 3 rows named "&c&lSMP&f&lAdmin&7&l: &r&a%arg-1%" to player
wait 1 tick
format slot 11 of player with yellow glass pane named "&e&lTemp Ban: &7%arg-1%" with lore "" to close then run [execute player command "/skript:smpadmintempban %arg-1%"]
format slot 15 of player with red glass pane named "&c&lPerm Ban: &7%arg-1%" with lore " " to close then run [execute player command "/skript:smpadminban %arg-1%"]
command /smpadminban [<offline player>] [<text>]:
permission: smpban.use
permission message: &c&lSMP&f&lAdmin &8> &aNice try! &7Only our staff have this permission.
trigger:
wait 2 ticks
if arg-1 is not set:
send "&c&lSMP&f&lAdmin &8> &6/ban &7<player>"
if arg-1 is set:
open chest with 3 rows named "&c&lSMP&f&lAdmin &c&lPerm: &r&a%arg-1%" to player
wait 2 tick
format slot 9 of player with iron sword named "&aPvP/Kill Aura Hacks" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% PvP/Kill Aura Hacks"]
format slot 10 of player with feather named "&aFly/Speed/Water Hacking" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Fly/Speed/Water Hacking"]
format slot 11 of player with diamond named "&aX-Ray" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% X-Ray"]
format slot 12 of player with compass named "&aAdvertising" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Advertising"]
format slot 13 of player with creeper head named "&aStaff Impersonation/Disrespect" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Staff Impersonation/Disrespect"]
format slot 14 of player with book named "&aSpam/Racism/Harassment/Sexism/Threats/KYS" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Spam/Racism/Harassment/Sexism/Threats/KYS"]
format slot 15 of player with tnt named "&aGriefing" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Griefing"]
format slot 16 of player with ender chest named "&aExploiting &7(Please remove items/money)" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Exploiting"]
format slot 17 of player with cobweb named "&aOther/Unspecified" with lore "" to close then run [make player execute command "/advancedban:ban %arg-1% Other/Unspecified"]
command /smpadmintempban [<offline player>] [<text>]:
permission: smpban.use
permission message: &c&lSMP&f&lAdmin &8> &aNice try! &7Only our staff have this permission.
trigger:
wait 2 tick
if arg-1 is not set:
send "&c&lSMP&f&lAdmin &r&8> &6/tempban &7<player>"
if arg-1 is set:
open chest with 5 rows named "&c&lSMP&f&lAdmin &6&lTemp: &r&a%arg-1%" to player
wait 1 tick
format slot 9 of player with iron sword named "&aPvP/Kill Aura Hacks &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d PvP/Kill Aura Hacks"]
format slot 10 of player with feather named "&aFly/Speed/Water Hacking &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Fly/Speed/Water Hacking"]
format slot 11 of player with diamond named "&aX-Ray &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d X-Ray"]
format slot 12 of player with compass named "&aAdvertising &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Advertising"]
format slot 13 of player with creeper head named "&aStaff Impersonation/Disrespect &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Staff Impersonation/Disrespect"]
format slot 14 of player with book named "&aSpam/Racism/Harassment/Sexism/Threats/KYS &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Spam/Racism/Harassment/Sexism/Threats/KYS"]
format slot 15 of player with tnt named "&aGriefing &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Griefing"]
format slot 16 of player with ender chest named "&aExploiting &67d &7(Please remove items/money)" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Exploiting"]
format slot 17 of player with cobweb named "&aOther/Unspecified &67d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 7d Other/Unspecified"]
format slot 27 of player with iron sword named "&aPvP/Kill Aura Hacks &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d PvP/Kill Aura Hacks"]
format slot 28 of player with feather named "&aFly/Speed/Water Hacking &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Fly/Speed/Water Hacking"]
format slot 29 of player with diamond named "&aX-Ray &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d X-Ray"]
format slot 30 of player with compass named "&aAdvertising &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Advertising"]
format slot 31 of player with creeper head named "&aStaff Impersonation/Disrespect &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Staff Impersonation/Disrespect"]
format slot 32 of player with book named "&aSpam/Racism/Harassment/Sexism/Threats/KYS &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Spam/Racism/Harassment/Sexism/Threats/KYS"]
format slot 33 of player with tnt named "&aGriefing &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Griefing"]
format slot 34 of player with ender chest named "&aExploiting &614d &7(Please remove items/money)" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Exploiting"]
format slot 35 of player with cobweb named "&aOther/Unspecified &614d" with lore "" to close then run [make player execute command "/advancedban:tempban %arg-1% 14d Other/Unspecified"]