iiFlameYT Posted March 23, 2021 Share Posted March 23, 2021 Variables: {playerrank.%player%} = "default" command /promote [<player>]: permission: op trigger: if arg-1 is not set: send "&cSpecify a player..." else: set {playerrank. %arg-1%} to "mod" send "&aYou have been promoted to &eMod" to arg-1 send "&aYou have Promoted &6%arg-1%" to player command /demote [<player>] [<text>]: permission: op trigger: if arg-2 is not set: send "&cYou have been demoted by &6%player%" to arg-1 send "&6%arg-1%&a Was successfuly demoted." to player if arg-1 is not set: send "&cSpecify a player..." else: set {playerrank. %arg-1%} to "default" else: set {playerrank. %arg-1%} to "default" send "&cYou have been demoted by &6%player% &cfor &7&l%arg-2%" to arg-1 send "&6%arg-1%&a Was successfuly demoted for &7&l%arg-2%" to player on chat: if {playerrank. %player%} = "Mod": set the chat format to "&0[&eMod&0]&f %player%: %message%" on chat: if {playerrank. %player%} = "default": set the chat format to "&0[&7Default&0]&f %player%: %message%" Hey, please thank me on the post dw it works perfectly 2 1 Link to comment Share on other sites More sharing options...
Weeeoooooo Posted March 23, 2021 Share Posted March 23, 2021 (edited) Bad! Why is there 2 on chat: Edited March 23, 2021 by Weeeoooooo 1 Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 23, 2021 Author Share Posted March 23, 2021 Just now, Weeeoooooo said: Bad! Link to comment Share on other sites More sharing options...
_Tarna_ Posted March 23, 2021 Share Posted March 23, 2021 Nested variables bad 1 Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 23, 2021 Author Share Posted March 23, 2021 1 minute ago, _Tarna_ said: Nested variables bad nuu tarna didnt like it Link to comment Share on other sites More sharing options...
_omga Posted March 23, 2021 Share Posted March 23, 2021 Nested variables bad, 2 events when you can else if, if arg-2 is not set: send "&cYou have been demoted by &6%player%" to arg-1 send "&6%arg-1%&a Was successfuly demoted." to player if arg-1 is not set: send "&cSpecify a player..." else: set {playerrank. %arg-1%} to "default" When you're checking if arg 2 is not set, arg 1 has to be set. You can remove the arg 1 is not set check. You can also make each argument required. If I helped you at all, leave a like! IGN: _omga Discord: omega#1000 Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 23, 2021 Author Share Posted March 23, 2021 Just now, _omga said: Nested variables bad, 2 events when you can else if, if arg-2 is not set: send "&cYou have been demoted by &6%player%" to arg-1 send "&6%arg-1%&a Was successfuly demoted." to player if arg-1 is not set: send "&cSpecify a player..." else: set {playerrank. %arg-1%} to "default" When you're checking if arg 2 is not set, arg 1 has to be set. You can remove the arg 1 is not set check. You can also make each argument required. im making it easier Link to comment Share on other sites More sharing options...
_omga Posted March 23, 2021 Share Posted March 23, 2021 How exactly is using 2 events easier... If I helped you at all, leave a like! IGN: _omga Discord: omega#1000 Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 23, 2021 Author Share Posted March 23, 2021 6 minutes ago, _omga said: How exactly is using 2 events easier... i found it easier for me Link to comment Share on other sites More sharing options...
_Tarna_ Posted March 23, 2021 Share Posted March 23, 2021 1 hour ago, iiFlameYT said: i found it easier for me There are times using 2 events can cause issues. Maybe not in this skript but in others it can. It can also help easier for Skript to handle since it only has to register one chat event instead of having 2. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 23, 2021 Author Share Posted March 23, 2021 2 minutes ago, _Tarna_ said: There are times using 2 events can cause issues. Maybe not in this skript but in others it can. It can also help easier for Skript to handle since it only has to register one chat event instead of having 2. i just appealed for unmute Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 23, 2021 Author Share Posted March 23, 2021 this is uncoolth 1 Link to comment Share on other sites More sharing options...
pnguin Posted March 24, 2021 Share Posted March 24, 2021 Damn 8 hours ago, iiFlameYT said: this is uncoolth 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...
pnguin Posted March 24, 2021 Share Posted March 24, 2021 Well i think you can appeal it? 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...
snow_bear1 Posted March 24, 2021 Share Posted March 24, 2021 12 hours ago, iiFlameYT said: Variables: {playerrank.%player%} = "default" command /promote [<player>]: permission: op trigger: if arg-1 is not set: send "&cSpecify a player..." else: set {playerrank. %arg-1%} to "mod" send "&aYou have been promoted to &eMod" to arg-1 send "&aYou have Promoted &6%arg-1%" to player command /demote [<player>] [<text>]: permission: op trigger: if arg-2 is not set: send "&cYou have been demoted by &6%player%" to arg-1 send "&6%arg-1%&a Was successfuly demoted." to player if arg-1 is not set: send "&cSpecify a player..." else: set {playerrank. %arg-1%} to "default" else: set {playerrank. %arg-1%} to "default" send "&cYou have been demoted by &6%player% &cfor &7&l%arg-2%" to arg-1 send "&6%arg-1%&a Was successfuly demoted for &7&l%arg-2%" to player on chat: if {playerrank. %player%} = "Mod": set the chat format to "&0[&eMod&0]&f %player%: %message%" on chat: if {playerrank. %player%} = "default": set the chat format to "&0[&7Default&0]&f %player%: %message%" Hey, please thank me on the post dw it works perfectly Its really but really good im a skripter and i see it very good who say its poop he poop hem self 1 Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 24, 2021 Author Share Posted March 24, 2021 6 hours ago, pizzaschut said: Well i think you can appeal it? i did, im still waiting for a reply Link to comment Share on other sites More sharing options...
iiFlameYT Posted March 24, 2021 Author Share Posted March 24, 2021 5 hours ago, snow_bear1 said: Its really but really good im a skripter and i see it very good who say its poop he poop hem self yay Link to comment Share on other sites More sharing options...
Weeeoooooo Posted March 24, 2021 Share Posted March 24, 2021 Im the best ok Link to comment Share on other sites More sharing options...
CoolProgrammer Posted March 25, 2021 Share Posted March 25, 2021 what in the world is going on here Hello there! If you're reading this, hope you're having a wonderful day! Feel free to contact me via Discord (CoolProgrammer#1920) for any help. My DMs are always open for help. You can also message via. forum messages for help. Also, don't hesitate to leave a like on my post if I helped you in any way. Link to comment Share on other sites More sharing options...
pnguin Posted March 25, 2021 Share Posted March 25, 2021 Idk coolprogrammer 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...
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