options: notifaction : true #Notifaction to player if player moved a new group. messageformatNOGROUP: true #True = Disable Vanilla Chat, If False, Everyone, who isn't in a group. has other chat format (Minecraft Vanilla) messageformat: "%{_p}%%player%%{_s}% &8>> &r%message%" #For symbols please use ingame code! If you edit here code. this will too displayed for group, who doesn'T has prefix/Suffix function group(p: player) :: text: if {Group::%{_p}%} is set: return "%{Group::%{_p}%}%" else: return "false" function haspermission(p: player, t: text) :: boolean: if {Group::%{_p}%} is set: if {PermissionG::%{Group::%{_p}%}%::%{_t}%} is set: return true stop if {PermissionP::%{_p}%::%{_t}%} is set: return true else: return false command /rest: trigger: delete {PermissionG::*} delete {PermissionP::*} delete {PermissionGP::*} command /psk [] [] []: trigger: if arg-1 is "help": if arg-2 is not set: send "&8&n[&e&nPSK&8&n]&r &8Help Site" send "&e/psk add &8- &6Add permission to player" send "&e/psk rem &8- &6Rem permission from player" send "&e/psk list &8- &6List all aviable Permission of player" send "&e/psk gadd &8- &6Add permission to group" send "&e/psk grem &8- &6Rem permission from player" send "&e/psk glist &8- &6List all aviable permissino of Group" send "&e/psk set [] &8- &6Set Player to a group" send "&8For making player again default group, just empty the " else if arg-2 is "1": make player execute command "/psk help" else if arg-2 is "2": send "&e/psk gpset &8- &6Set prefix of Group to text." send "&e/psk gsset &8- &6Set suffix of Group to text." send "&e/psk ppset &8- &6Set prefix of player to text." send "&e/psk psset &8- &6Set suffix of player to text." send "&8Player Prefix/Suffix will override group prefix/suffix if exist." send "&8To delete Prefix/Suffix just let empty the " else if arg-1 is "add": if arg-2 is set: if arg-3 is set: if {PermissionP::%arg-2%::%arg-3%} is set: send "&8&n[&e&nPSK&8&n]&r &a%arg-2%&6 got the permission &a%arg-3% &6already!" else: set {PermissionP::%arg-2%::%arg-3%} to true send "&8&n[&e&nPSK&8&n]&r &6Sucessfull permission added to &a%arg-2% &6with permission: &a%arg-3%&6!" else: send "&8&n[&e&nPSK&8&n]&r &cEnter please the permission, that you want add." else: send "&8&n[&e&nPSK&8&n]&r &cPlayer name missed?" else if arg-1 is "remove" or "rem" or "del": if arg-2 is set: if arg-3 is set: if {PermissionP::%arg-2%::%arg-3%} is not set: send "&8&n[&e&nPSK&8&n]&r &a%arg-3% &6permission cannot found on &a%arg-2% &6player." else: delete {PermissionP::%arg-2%::%arg-3%} send "&8&n[&e&nPSK&8&n]&r &6Sucessfull removed permission &a%arg-3% &6from &a%arg-2%&6." else: send "&8&n[&e&nPSK&8&n]&r &cEnter please the permission, that you want remove." else: send "&8&n[&e&nPSK&8&n]&r &cPlayer name missed?" else if arg-1 is "list": if arg-2 is set: if {PermissionP::%arg-2%::*} is not set: send "&8&n[&e&nPSK&8&n]&r &cThis player doesn't have any permission!" else: set {_s} to 0 set {_p} to 1 loop {PermissionP::%arg-2%::*}: add loop-index to {_P::%{_p}%::*} add 1 to {_s} if {_s} is 6: set {_s} to 0 add 1 to {_p} if arg-3 is set: set {_n} to "%arg-3%" parsed as number if {_n} is not set: send "&8&n[&e&nPSK&8&n]&r &cPlease enter only number." stop else: set {_n} to 1 if {_n} is more than {_p}: send "&8&n[&e&nPSK&8&n]&r &cThis number doesn't exist, there only &a%{_p}% &cPage." stop send "&7&m==================" if {Group::%player%} is set: send "&6Groups: &e%{Group::%player%}%" send "&6Page: &e%{_n}%&8/&e%{_p}% &8- &e%arg-2%" loop {_P::%{_n}%::*}: send "&e%loop-value%" send "&7&m==================" else: send "&8&n[&e&nPSK&8&n]&r &cPlayer name missed?" else if arg-1 is "gadd": if arg-2 is set: if arg-3 is set: if {PermissionG::%arg-2%::%arg-3%} is set: send "&8&n[&e&nPSK&8&n]&r &6Group &a%arg-2%&6 got the permission &a%arg-3% &6already!" else: set {PermissionG::%arg-2%::%arg-3%} to true set {PermissionG::%arg-2%} to true send "&8&n[&e&nPSK&8&n]&r &6Sucessfull permission added to group &a%arg-2% &6with permission: &a%arg-3%&6!" else: send "&8&n[&e&nPSK&8&n]&r &cEnter please the permission, that you want add." else: send "&8&n[&e&nPSK&8&n]&r &cGroup name missed?" else if arg-1 is "grem" or "gremove" or "gdel": if arg-2 is set: if arg-3 is set: if {PermissionG::%arg-2%::%arg-3%} is not set: send "&8&n[&e&nPSK&8&n]&r &a%arg-3% &6permission cannot found on &a%arg-2% &6group." else: delete {PermissionG::%arg-2%::%arg-3%} if size of {PermissionG::%arg-2%::*} is 0: delete {PermissionG::%arg-2%} send "&8&n[&e&nPSK&8&n]&r &6Sucessfull removed permission &a%arg-3% &6from &a%arg-2%&6 group." else: send "&8&n[&e&nPSK&8&n]&r &cEnter please the permission, that you want remove." else: send "&8&n[&e&nPSK&8&n]&r &cGroup name missed?" else if arg-1 is "glist": if arg-2 is set: if {PermissionG::%arg-2%::*} is not set: send "&8&n[&e&nPSK&8&n]&r &cThis groups doesn't have any permission!" else: set {_s} to 0 set {_p} to 1 loop {PermissionG::%arg-2%::*}: add loop-index to {_P::%{_p}%::*} add 1 to {_s} if {_s} is 6: set {_s} to 0 add 1 to {_p} if arg-3 is set: set {_n} to "%arg-3%" parsed as number if {_n} is not set: send "&8&n[&e&nPSK&8&n]&r &cPlease enter only number." stop else: set {_n} to 1 if {_n} is more than {_p}: send "&8&n[&e&nPSK&8&n]&r &cThis number doesn't exist, there only &a%{_p}% &cPage." stop send "&7&m==================" send "&6Page: &e%{_n}%&8/&e%{_p}% &8- &e%arg-2%" loop {_P::%{_n}%::*}: send "&e%loop-value%" send "&7&m==================" else: send "&8&n[&e&nPSK&8&n]&r &cGroup name missed?" else if arg-1 is "set": if arg-2 is set: if arg-3 is set: if {PermissionG::%arg-3%::*} is set: set {Group::%arg-2%} to arg-3 send "&8&n[&e&nPSK&8&n]&r &a%arg-2% &6is now in a group &a%arg-3%" if {@notifaction} is true: if arg-2 is not player: send "&8&n[&e&nPSK&8&n]&r &6Youre now in a group &a%arg-3%!" to arg-2 else: send "&8&n[&e&nPSK&8&n]&r &cGroup &a%arg-3% &cdoesn't exist." else: if {Group::%arg-2%} is set: delete {Group::%arg-2%} send "&8&n[&e&nPSK&8&n]&r &a%arg-2% &ais now Default!" if {@notifaction} is true: if arg-2 is not player: send "&8&n[&e&nPSK&8&n]&r &6Youre now Default!" to arg-2 else: send "&8&n[&e&nPSK&8&n]&r &cThis player &a%arg-2% &cis already default!" else: send "&8&n[&e&nPSK&8&n]&r &cWhich player do you wanna move in a group?" else if arg-1 is "gpset": if arg-2 is set: if arg-3 is set: if {PermissionG::%arg-2%} is set: set {PermissionGP::%arg-2%} to "%arg-3%&r" send "&8&n[&e&nPSK&8&n]&r &a%arg-2% &6has now prefix as &a%arg-3%&6." else: send "&8&n[&e&nPSK&8&n]&r &cThis Group doesn't exist." else: delete {PermissionGP::%arg-2%} send "&8&n[&e&nPSK&8&n]&r &6Sucessfull prefix of group &a%arg-2% &6deleted." else: send "&8&n[&e&nPSK&8&n]&r &cWhich Group do you want change prefix?" else if arg-1 is "gsset": if arg-2 is set: if arg-3 is set: if {PermissionG::%arg-2%} is set: set {PermissionGS::%arg-2%} to "%arg-3%&r" send "&8&n[&e&nPSK&8&n]&r &a%arg-2% &6has now suffix as &a%arg-3%&6." else: send "&8&n[&e&nPSK&8&n]&r &cThis Group doesn't exist." else: delete {PermissionGS::%arg-2%} send "&8&n[&e&nPSK&8&n]&r &6Sucessfull suffix of group &a%arg-2% &6deleted." else: send "&8&n[&e&nPSK&8&n]&r &cWhich Group do you want change suffix?" else if arg-1 is "ppset": if arg-2 is set: set {_p} to "%arg-2%" parsed as offline player if {_p} has played on this server before: if arg-3 is set: set {PermissionPP::%{_p}%} to "%arg-3%" send "&8&n[&e&nPSK&8&n]&r &a%arg-2% &6has now prefix as &a%arg-3%&6." else: send "&8&n[&e&nPSK&8&n]&r &6Sucessfull prefix of player &a%arg-2% &6deleted." delete {PermissionPP::%player%} else: send "&8&n[&e&nPSK&8&n]&r &cThis player &a%arg-2% &chasn't played before on the server." else: send "&8&n[&e&nPSK&8&n]&r &cWhich player do you want set prefix?" else if arg-1 is "psset": if arg-2 is set: set {_p} to "%arg-2%" parsed as offline player if {_p} has played on this server before: if arg-3 is set: set {PermissionPS::%{_p}%} to "%arg-3%" send "&8&n[&e&nPSK&8&n]&r &a%arg-2% &6has now suffix as &a%arg-3%&6." else: send "&8&n[&e&nPSK&8&n]&r &6Sucessfull suffix of player &a%arg-2% &6deleted." delete {PermissionPS::%player%} else: send "&8&n[&e&nPSK&8&n]&r &cThis player &a%arg-2% &chasn't played before on the server." else: send "&8&n[&e&nPSK&8&n]&r &cWhich player do you want set suffix?" else: make player execute command "/psk help" on chat: if {PermissionGP::%{Group::%player%}%} or {PermissionGS::%{Group::%player%}%} or {PermissionPP::%player%} or {PermissionPS::%player%} is set: cancel event if {PermissionPP::%player%} is set: set {_p} to "%colored {PermissionPP::%player%}%" else if {PermissionGP::%{Group::%player%}%} is set: set {_P} to "%colored {PermissionGP::%{Group::%player%}%}%" else: set {_p} to "" if {PermissionPS::%player%} is set: set {_s} to "%colored {PermissionPS::%player%}%" else if {PermissionGS::%{Group::%player%}%} is set: set {_s} to "%colored {PermissionGS::%{Group::%player%}%}%" else: set {_s} to "" broadcast {@messageformat} else if {@messageformatNOGROUP} is true: cancel event if {PermissionPP::%player%} is set: set {_p} to "%colored {PermissionPP::%player%}%" else if {PermissionGP::%{Group::%player%}%} is set: set {_P} to "%colored {PermissionGP::%{Group::%player%}%}%" else: set {_p} to "" if {PermissionPS::%player%} is set: set {_s} to "%colored {PermissionPS::%player%}%" else if {PermissionGS::%{Group::%player%}%} is set: set {_s} to "%colored {PermissionGS::%{Group::%player%}%}%" else: set {_s} to "" broadcast {@messageformat} command /example: trigger: if haspermission(player, "Mod.Helper") is true: send "Yey" else: send "Nooo!" if haspermission(player, "manage.permission") is true: send "YEY" else: send "SAD" if group(player) is "Owner": send "He is owner" if group(player) is "Admin": send "He is Admin"