skPnguin Posted February 27, 2021 Share Posted February 27, 2021 BTW Thanks, XePup for giving me this skript to make this tutorial  Hi guys! Today i will be showing a tutorial how to make a custom chat format and a /grant with it. Heres a example one to show how it works on chat: if {%player's uuid%.rank} = 7: set chat format to "&c[OWNER] %player%&7: &r%colored message%" on chat: means you probably know it but its when someone chats. if {%player's uuid%.rank} = 7: Here it checks for which UUID rank the user has set chat format to ''&c[OWNER] %player%&7: &r%colored message%'' if the user has the owner rank so UUID 7 it will show the chat like that. on chat: if {%player's uuid%.rank} = 7: set chat format to "&c[OWNER] %player%&7: &r%colored message%" else if {%player's uuid%.rank} = 6: set chat format to "&c[ADMIN] %player%&7: &r%colored message%" Now we have a else: if the user doesnt have UUID rank 7 it will check if it has UUID rank 6 then it will set the chat format to ''&c[ADMIN] %player%&7: &r%colored message%'' And that goes on until Default rank, heres the whole skript on chat: if {%player's uuid%.rank} = 7: set chat format to "&c[OWNER] %player%&7: &r%colored message%" else if {%player's uuid%.rank} = 6: set chat format to "&c[ADMIN] %player%&7: &r%colored message%" else if {%player's uuid%.rank} = 5: set chat format to "&2[MOD] %player%&7: &r%colored message%" else if {%player's uuid%.rank} = 4: set chat format to "&d[YOUTUBE] %player%&7: &r%colored message%" else if {%player's uuid%.rank} = 3: set chat format to "&6[DONATOR+] %player%&7: &r%colored message%" else if {%player's uuid%.rank} = 2: set chat format to "&e[DONATOR] %player%&7: &r%message%" else if {%player's uuid%.rank} = 1: set chat format to "&7%player%&7: %message%" Now i will show you guys the GRANT skript! This is pretty hard to make if you dont know skript that well options: prefix: &c&nCOOL SERVER &6▪ noperm: &f&nCOOL SERVER &6▪ &cYou do not have permission to execute this! #GRANT COMMAND command /grant [<offline player>] [<text>]: trigger: if executor is console: if arg-1 is not set: send "{@prefix} &cUsage: /grant (PLAYER) (RANK)" else if arg-2 is not set: send "{@prefix} &9Ranks&7: &7DEFAULT&9, &eDONATOR&9, &6DONATOR+&9, &dYOUTUBE&9, &2MOD&9, &cADMIN&9, &cOWNER" the options are: the prefix it shows and the noperm: is what it sends if the user doesnt have permission You can change Prefix And noperm to your liking now the command /grant [<offline player>] [<text>] make sure you have [<offline player>] so you can grant offline users. the [<text>] is the rank you want to input now if the executor is console: here it checks if the console does it if arg-1 is not set: here it will send a usage message if you didnt include a player that you want to grant send ''{@prefix} &cUsage: /grant (player) (rank)'' here it will send the usage you will have to use else if arg-2 is not set: here it is if you didnt include the rank send "{@prefix} &9Ranks&7: &7DEFAULT&9, &eDONATOR&9, &6DONATOR+&9, &dYOUTUBE&9, &2MOD&9, &cADMIN&9, &cOWNER" here it will send all ranks you can use else if arg-2 = "default": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &7DEFAULT" set {%arg-1's uuid%.rank} to 1 send "{@prefix} &9Your rank has been changed to &7DEFAULT" to arg-1 if the second argument is default it will send ''{@prefix} &9Set &c%arg-1%&c's &9rank to &7DEFAULT'' to the executor Then it will set the users UUID rank to 1 then the user will recieve this message "{@prefix} &9Your rank has been changed to &7DEFAULT" else if arg-2 = "default": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &7DEFAULT" set {%arg-1's uuid%.rank} to 1 send "{@prefix} &9Your rank has been changed to &7DEFAULT" to arg-1 else if arg-2 = "donator": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &eDONATOR" set {%arg-1's uuid%.rank} to 2 send "{@prefix} &9Your rank has been changed to &eDONATOR" to arg-1 Now if the second argument was DONATOR it will send ''{@prefix} &9Set &c%arg-1%&c's &9rank to &eDONATOR'' Then it will set the user's UUID rank to 2 and then it will send this message to %arg-1% ''{@prefix} &9Your rank has been changed to &eDONATOR'' Heres the whole granting skript: options: prefix: &c&nCOOL SERVER &6▪ noperm: &f&nCOOL SERVER &6▪ &cYou do not have permission to execute this! #GRANT COMMAND command /grant [<offline player>] [<text>]: trigger: if executor is console: if arg-1 is not set: send "{@prefix} &cUsage: /grant (PLAYER) (RANK)" else if arg-2 is not set: send "{@prefix} &9Ranks&7: &7DEFAULT&9, &eDONATOR&9, &6DONATOR+&9, &dYOUTUBE&9, &2MOD&9, &cADMIN&9, &cOWNER" else if arg-2 = "default": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &7DEFAULT" set {%arg-1's uuid%.rank} to 1 send "{@prefix} &9Your rank has been changed to &7DEFAULT" to arg-1 else if arg-2 = "donator": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &eDONATOR" set {%arg-1's uuid%.rank} to 2 send "{@prefix} &9Your rank has been changed to &eDONATOR" to arg-1 else if arg-2 = "DONATOR+": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &6DONATOR+" set {%arg-1's uuid%.rank} to 3 send "{@prefix} &9Your rank has been changed to &6DONATOR+" to arg-1 else if arg-2 = "YOUTUBE": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &dYOUTUBE" set {%arg-1's uuid%.rank} to 4 send "{@prefix} &9Your rank has been changed to &dYOUTUBE" to arg-1 else if arg-2 = "MOD": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &2MOD" set {%arg-1's uuid%.rank} to 5 send "{@prefix} &9Your rank has been changed to &2MOD" to arg-1 else if arg-2 = "ADMIN": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &cADMIN" set {%arg-1's uuid%.rank} to 6 send "{@prefix} &9Your rank has been changed to &cADMIN" to arg-1 else if arg-2 = "OWNER": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &cOWNER" set {%arg-1's uuid%.rank} to 7 send "{@prefix} &9Your rank has been changed to &cOWNER" to arg-1 else if {%player's uuid%.rank} = 7: if arg-1 is not set: send "{@prefix} &cUsage: /grant (PLAYER) (RANK)" else if arg-2 is not set: send "{@prefix} &9Ranks&7: &7DEFAULT&9, &eDONATOR&9, &6DONATOR+&9, &dYOUTUBE&9, &2MOD&9, &cADMIN&9, &cOWNER" else if arg-2 = "default": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &7DEFAULT" set {%arg-1's uuid%.rank} to 1 send "{@prefix} &9Your rank has been changed to &7DEFAULT" to arg-1 else if arg-2 = "donator": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &eDONATOR" set {%arg-1's uuid%.rank} to 2 send "{@prefix} &9Your rank has been changed to &eDONATOR" to arg-1 else if arg-2 = "DONATOR+": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &6DONATOR+" set {%arg-1's uuid%.rank} to 3 send "{@prefix} &9Your rank has been changed to &6DONATOR+" to arg-1 else if arg-2 = "YOUTUBE": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &dYOUTUBE" set {%arg-1's uuid%.rank} to 4 send "{@prefix} &9Your rank has been changed to &dYOUTUBE" to arg-1 else if arg-2 = "MOD": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &2MOD" set {%arg-1's uuid%.rank} to 5 send "{@prefix} &9Your rank has been changed to &2MOD" to arg-1 else if arg-2 = "ADMIN": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &cADMIN" set {%arg-1's uuid%.rank} to 6 send "{@prefix} &9Your rank has been changed to &cADMIN" to arg-1 else if arg-2 = "OWNER": send "{@prefix} &9Set &c%arg-1%&c's &9rank to &cOWNER" set {%arg-1's uuid%.rank} to 7 send "{@prefix} &9Your rank has been changed to &cOWNER" to arg-1 else: send "{@noperm}" This was my tutorial, see you guys later  1 1 I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
XePup Posted February 27, 2021 Share Posted February 27, 2021 yes good skript i made  Link to comment Share on other sites More sharing options...
skPnguin Posted February 27, 2021 Author Share Posted February 27, 2021 Yes thanks for giving me it lol I used to play Minehut I guess? Yeah, I still watch the forums for some reason. (15/5/2023) Link to comment Share on other sites More sharing options...
_omga Posted February 27, 2021 Share Posted February 27, 2021 (edited) Cool skript! I would suggest using list variables over nest variables. List: {_p::*} Nest: {_p.1}  Edited February 27, 2021 by _omga If I helped you at all, leave a like! IGN: _omga Discord: omega#1000  Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now