AgentGamerPro Posted March 8, 2021 Share Posted March 8, 2021 Admin Build Prevention command /BuildMode: permission: SW.Build permission message: &cInsufficent Permission trigger: if {BuildMode.%player%} is not set: set {BuildMode.%player%} to true send "&aYou have enabled build mode! You can now interact with your surroundings. &2Type /BuildMode again to disable!" to player else if {BuildMode.%player%} is false: set {BuildMode.%player%} to true send "&aYou have enabled build mode! You can now interact with your surroundings. &2Type /BuildMode again to disable!" to player else if {BuildMode.%player%} is true: set {BuildMode.%player%} to false send "&cYou have disabled Build Mode! You can no longer build or break blocks. &4Type /BuildMode again to enable!" to player on break: if {BuildMode.%player%} is false: if player has permission "SW.Build": cancel event send "&cYou cannot break anything! Type /BuildMode to enable breaking/placing blocks!" to player on place: if {BuildMode.%player%} is false: if player has permission "SW.Build": cancel event send "&cYou cannot place anything! Type /BuildMode to enable breaking/placing blocks!" to player Ever accidently break stuff while playing a gamemode? Type /Buildmode to enable/disable building for you and you only! Lifestealed | Minecraft Servers [VIP] 12/26/20 - 10/27/2021[PRO] 12/27/21 - Present Link to comment Share on other sites More sharing options...
Echology Posted March 8, 2021 Share Posted March 8, 2021 (edited) Just a skript tip: try to use list variables {variable::%input%} as they are far better for storage also try to use uuid instead of player something like: {player::%player's uuid%::something} You can also make your code more organized by doing negative checks, like checking the opposite of what you want first, then stopping there so you either can choose not to do a else or you can. example: on join: if player has not played before: send "Welcome to the server! Thanks for joining!" stop send "Welcome back to the server" instead of on join: if player has played before: send "Welcome back to the server!" else if player has not played before: #or just else send "Welcome to the server! Thanks for joining!" This is apparent in the later part of the skript with the place and break event: on place: if {BuildMode.%player%} is not false: stop if player does not have permission "SW.Build": stop cancel event send "&cYou cannot place anything! Type /buildmode to enable breaking/placing blocks!" stop Edited March 8, 2021 by Bluberriess [PATRON] Echology Link to comment Share on other sites More sharing options...
AHelpingCandy Posted March 11, 2021 Share Posted March 11, 2021 Good work Keep it up 2 IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) 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