Kod:
options:
p: &e&lɴᴇsᴏɪ ɴᴇᴛᴡᴏʀᴋ &7➻
variables:
{uyari.%player%} = 0
{total.%player%} = 0
on first join:
set {warn.%player%} to 0
set {total.%player%} to 0
command /warn [<text>] [<offline player>]:
permission: warn.usage
trigger:
if arg-1 or arg-2 isn't set:
send "{@p} &fUsage: &c/warn <give/look/reset> <player>"
if arg-1 is "give":
add 1 to {warn.%arg-2%}
add 1 to {total.%arg-2%}
send title "&c&lNesoi Warn" with subtitle "&cYou have been warned by the official!" to arg-2 for 2 seconds
send title "&c&lWarn Admin" with subtitle "&cYou gave a warning to the %arg-2%!" to player for 2 seconds
if arg-1 is "reset":
set {uyari.%arg-2%} to 0
set {total.%arg-2%} to 0
send title "&c&lNesoi Warn" with subtitle "&aAll your warnings have been deleted by the official!" to arg-2 for 2 seconds
send title "&c&lWarn Admin" with subtitle "&aYou deleted all the warnings of %arg-2%!"
if arg-1 is "look":
send title "&c%arg-2%" with subtitle "&fCurrent alerts: %{warn.%arg-2%}% &fTotal alerts: %{total.%arg-2%}%" to player for 5 seconds
Moderatör tarafında düzenlendi: