Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /nametag [<text>] [<player>] [<text>]:
- trigger:
- if arg 1 is not "prefix" or "suffix" or "nickname":
- send "&cUsage: /nametag <prefix|suffix|nickname> <Player> <Text>"
- stop
- if arg 2 is not set:
- send "&cUsage: /nametag %arg 1% <Player> <Text>"
- stop
- if arg 3 is not set:
- send "&cUsage: /nametag %arg 1% %arg 2% <Text>"
- stop
- if arg 1 is "prefix":
- if sender does not have permission "tablist.prefix":
- send "&cError: You do not have permission to do this."
- stop
- set {tablist.%arg 2%.prefix} to coloured arg 3
- send "&bSuccess: Changed %arg 2%'s tablist prefix to &r%coloured arg 3%"
- stop
- if arg 1 is "suffix":
- if sender does not have permission "tablist.suffix":
- send "&cError: You do not have permission to do this."
- stop
- set {tablist.%arg 2%.suffix} to coloured arg 3
- send "&bSuccess: Changed %arg 2%'s tablist suffix to &r%coloured arg 3%"
- stop
- if arg 1 is "nickname":
- if sender does not have permission "tablist.nickname":
- send "&cError: You do not have permission to do this."
- stop
- set {tablist.%arg 2%.nick} to coloured arg 3
- send "&bSuccess: Changed %arg 2%'s tablist nickname to &r%coloured arg 3%"
- stop
- every second:
- loop all players:
- if {tablist.%loop-player%.prefix} is not set:
- set {tablist.%loop-player%.prefix} to ""
- if {tablist.%loop-player%.nick} is not set:
- set {tablist.%loop-player%.nick} to loop-player's name
- if {tablist.%loop-player%.suffix} is not set:
- set {tablist.%loop-player%.suffix} to ""
- set loop-player's tablist name to "%{tablist.%loop-player%.prefix}%%{tablist.%loop-player%.nick}%%{tablist.%loop-player%.suffix}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement