Yodamaster Posted November 28, 2020 Share Posted November 28, 2020 (edited) requires skript on join: if player has permission "helper.chat": add player to {helperchat::*} on quit: if player has permission "helper.chat": remove player from {helperchat::*} command /helperchat <text>: trigger: if {%player%::helperchatres} is arg-1: send "&e&lHelperChat:&r&bdon't repeat your message" to player else: if {%player%::helperchattoggle} is true: send "&e&lHelperChat:&b%player%:&f%arg-1%" to {helperchat::*} set {%player%::helperchatres} to arg-1 else if {%player%::helperchattoggle} is false: send "&e&lHelperChat:&r&bDo /helperchattoggle or /hctoggle to send and recive &e&lHelperChat" to player command /hc <text>: trigger: if {%player%::helperchatres} is arg-1: send "&e&lHelperChat:&r&bdon't repeat your message" to player else: if {%player%::helperchattoggle} is false: send "&e&lHelperChat:&r&bDo /helperchattoggle or /hctoggle to send and recive &e&lHelperChat" to player else if {%player%::helperchattoggle} is true: send "&e&lHelperChat:&b%player%:&f%arg-1%" to {helperchat::*} set {%player%::helperchatres} to arg-1 command /helperchattoggle: trigger: if {%player%::warnedhelperchat} is true: send "&e&lHelperChat:&r&byou don't have access to &e&lHelperChat" to player else if {%player%::warnedhelperchat} is false: if player has permission "helper.chat": if {%player%::helperchattoggle} is false: send "&e&lHelperChat:&r&byou will &a&lNOW &r&bbe able to send and recive &e&lHelperChat" to player add player to {helperchat::*} set {%player%::helperchattoggle} to true else: send "&e&lHelperChat:&r&byou will &4&lNO &r&blonger be able to send and recive &e&lHelperChat" to player set {%player%::helperchattoggle} to false remove player from {helperchat::*} command /hctoggle: trigger: if {%player%::warnedhelperchat} is true: send "&e&lHelperChat:&r&byou don't have access to &e&lHelperChat" to player else if {%player%::warnedhelperchat} is false: if player has permission "helper.chat": if {%player%::helperchattoggle} is false: send "&e&lHelperChat:&r&byou will &a&lNOW &r&bbe able to send and recive &e&lHelperChat" to player add player to {helperchat::*} set {%player%::helperchattoggle} to true else: send "&e&lHelperChat:&r&byou will &4&lNO &r&blonger be able to send and recive &e&lHelperChat" to player set {%player%::helperchattoggle} to false remove player from {helperchat::*} command /helperchatwarn <player>: trigger: if player has permission "helperchat.warn": if {%arg-1%::helperchatwarns} is 2: add 1 to {%arg-1%::helperchatwarns} send "&e&lHelperChat:&r&b%arg-1% &4&lNO &r&blonger have access to &e&lHelperChat" to player send "&e&lHelperChat:&r&byou have 3 warns you will &4&lNo &r&blonger have access to &e&lHelperChat" to arg-1 set {%arg-1%::warnedhelperchat} to true remove arg-1 from {helperchat::*} else if {%arg-1%::helperchatwarns} is 3: send "&e&lHelperChat:&r&bthat player already has 3 warns" to player else: add 1 to {%arg-1%::helperchatwarns} if {%arg-1%::helperchatwarns} is 1: send "&e&lHelerChat:&r&byou have added 1 warn to %arg-1% &bthey now have a total of %{%arg-1%::helperchatwarns}% &bwarn" to player send "&e&lHelperChat:&r&b you have %{%arg-1%::helperchatwarns}% &bwarn" to arg-1 else: send "&e&lHelerChat:&r&byou have added 1 warn to %arg-1% &bthey now have a total of %{%arg-1%::helperchatwarns}% &bwarn" to player send "&e&lHelperChat:&r&b you have %{%arg-1%::helperchatwarns}% &bwarns" to arg-1 command /hcwarn <player>: trigger: if player has permission "helperchat.warn": if {%arg-1%::helperchatwarns} is 2: add 1 to {%arg-1%::helperchatwarns} send "&e&lHelperChat:&r&b%arg-1% &4&lNO &r&blonger have access to &e&lHelperChat" to player send "&e&lHelperChat:&r&byou have 3 warns you will &4&lNo &r&blonger have access to &e&lHelperChat" to arg-1 set {%arg-1%::warnedhelperchat} to true remove arg-1 from {helperchat::*} else if {%arg-1%::helperchatwarns} is 3: send "&e&lHelperChat:&r&bthat player already has 3 warns" to player else: add 1 to {%arg-1%::helperchatwarns} if {%arg-1%::helperchatwarns} is 1: send "&e&lHelerChat:&r&byou have added 1 warn to %arg-1% &bthey now have a total of %{%arg-1%::helperchatwarns}% &bwarn" to player send "&e&lHelperChat:&r&b you have %{%arg-1%::helperchatwarns}% &bwarn" to arg-1 else: send "&e&lHelerChat:&r&byou have added 1 warn to %arg-1% &bthey now have a total of %{%arg-1%::helperchatwarns}% &bwarn" to player send "&e&lHelperChat:&r&b you have %{%arg-1%::helperchatwarns}% &bwarns" to arg-1 command /helperchatwarnremove <player>: trigger: if player has permission "helperchat.warn": if {%arg-1%::helperchatwarns} is 1: remove 1 from {%arg-1%::helperchatwarns} set {%arg-1%::warnedhelperchat} to false send "&e&lHelerChat:&r&byou removed 1 warn from %arg-1% &bthey have no more warns" to player send "&e&lHelperChat:&r&b1 warn has been removed from you and you now have none left" to arg-1 else if {%arg-1%::helperchatwarns} is 2 or 3: remove 1 from {%arg-1%::helperchatwarns} send "&e&lHelperChat:&r&byou remove 1 warn from %arg-1% &bthey have %{%arg-1%::helperchatwarns}% &bwarns left" to player send "&e&lHelperChat:&r&b1 warn has been removed from you and you now have %{%arg-1%::helperchatwarns}% &bleft" to arg-1 else if {%arg-1%::helperchatwarms} is 0: send "&e&lHelperChat:&r&b%arg-1% &bhas no warns" command /hcwarnremove <player>: trigger: if player has permission "helperchat.warn": if {%arg-1%::helperchatwarns} is 1: remove 1 from {%arg-1%::helperchatwarns} set {%arg-1%::warnedhelperchat} to false send "&e&lHelerChat:&r&byou removed 1 warn from %arg-1% &bthey have no more warns" to player send "&e&lHelperChat:&r&b1 warn has been removed from you and you now have none left" to arg-1 else if {%arg-1%::helperchatwarns} is 2 or 3: remove 1 from {%arg-1%::helperchatwarns} send "&e&lHelperChat:&r&byou remove 1 warn from %arg-1% &bthey have %{%arg-1%::helperchatwarns}% &bwarns left" to player send "&e&lHelperChat:&r&b1 warn has been removed from you and you now have %{%arg-1%::helperchatwarns}% &bleft" to arg-1 else if {%arg-1%::helperchatwarms} is 0: send "&e&lHelperChat:&r&b%arg-1% &bhas no warns" Edited November 29, 2020 by Yodamaster 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