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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
on inventory click:
if "%inventory name of player's current inventory%" is " &0&nPlayer Stats":
cancel event
if clicked slot is 13:
broadcast "test"
play sound "ITEM_BREAK" to player with volume 3 and pitch 1
on first join:
set {mysql._joined.%player%} to true
set {mysql._jtime.%player%} to now
stop
command /stats [<offline player>]:
usage: /stats <player>
trigger:
arg-1 is not set:
send "/stats <player>"
stop
set {_player} to "%player%"
if {mysql._joined.%arg-1%} is true:
arg-1 is set:
if arg-1 has permission "test.1":
open chest with 3 rows named " &0&nPlayer Stats" to player
format slot 13 of player with obsidian named "&c&l&n%arg-1%" with lore "test" to be unstealable
else if arg-1 has permission "test.2":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 5 of player's current inventory to feather named "&c&l&n%arg-1%" with lore "%{_amount}%"
else:
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 5 of player's current inventory to feather named "&1%arg-1%" with lore "never joined!"
format slot 13 of player with skull of ("%player%" parsed as an offline player) named "&7Skull of %player%" with lore "This is your skull!"
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "test"
if {mysql._joined.%arg-1%} is true:
if arg-1 is not online:
#show what you want to show when they have joined but are offline
command /stats [<offline player>]:
usage: /stats <player>
trigger:
arg-1 is not set:
send "/stats <player>"
stop
set {_player} to "%player%"
if {mysql._joined.%arg-1%} is true:
arg-1 is set:
if arg-1 is not online:
if arg-1 has permission "test.1":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player with obsidian named "&c&l&n%arg-1%" with lore "test"
else if arg-1 has permission "test.2":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 5 of player's current inventory to feather named "&c&l&n%arg-1%" with lore "%{_amount}%"
else:
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 5 of player's current inventory to feather named "&1%arg-1%" with lore "never joined!"
command /stats [<offline player>]:
usage: /stats <player>
trigger:
arg-1 is not set:
send "/stats <player>"
stop
set {_player} to "%player%"
if {mysql._joined.%arg-1%} is true:
arg-1 is set:
if arg-1 is not online:
if arg-1 has permission "test.1":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "just testing!"
else if arg-1 has permission "test.2":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "just testing!2"
else:
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 5 of player's current inventory to feather named "&1%arg-1%" with lore "never joined!"
command /stats [<offline player>]:
usage: /stats <player>
trigger:
arg-1 is not set:
send "/stats <player>"
stop
set {_player} to "%player%"
if {mysql._joined.%arg-1%} is true:
arg-1 is set:
if arg-1 is not online:
if arg-1 has permission "test.1":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "just testing!"
else if arg-1 has permission "test.2":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "just testing!2"
else:
if arg-1 has permission "test.1":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "just testing!"
else if arg-1 has permission "test.2":
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 13 of player's current inventory to arg-1's skull named "&c&l&n%arg-1%" with lore "just testing!2"
else:
open chest with 3 rows named " &0&nPlayer Stats" to player
set slot 5 of player's current inventory to feather named "&1%arg-1%" with lore "never joined!"