SkyMining Posted September 6, 2021 Share Posted September 6, 2021 command /sc [<text>]: trigger: if arg-1 is set: make player execute command "/staffchat %arg-1%" if arg-1 is not set: cancel event make player execute command "/staffchat" im getting this error Link to comment Share on other sites More sharing options...
_Tarna_ Posted September 6, 2021 Share Posted September 6, 2021 That isn't an event. So you can't cancel it. If you want it to do nothing if arg-1 isn't set, just don't have that if statement. It will automatically do nothing since you have a previous if statement checking if arg-1 is set. Or make arg-1 required so the player has to specify arg-1 in order for the command to run. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- 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