AlexNotFounnd Posted October 1, 2022 Share Posted October 1, 2022 (edited) Needed plugin(s) / add-on(s):Skript Usage: /commandspy Aliases: /cspy This is a Command Spy skript that is fully customizable, If you have any suggestions please leave a comment. If you know basic coding you should be able to understand how to change any messages. If you need some help I will be more than happy to support you. ####################### # # Created By AlexNotFounnd#2534 # ####################### options: prefix: ServerName # Change to whatever you want permission: commandspy.use command /commandspy: permission: {@permission} permission message: &cNo perms. usage: &c/commandspy aliases: cspy trigger: if {cspy.%player%} is false: set {commandspy.%player%} to true send "{@prefix} &aCommand spy has been enabled." else: if {cspy.%player%} is true: set {cspy.%player%} to false send "{@prefix} &cCommand spy has been disabled." on command: loop all players: if {cspy.%loop-player%} is true: send "&7&o[%sender%: Executed command /%complete command%]" to loop-player Edited October 1, 2022 by AlexNotFounnd Link to comment Share on other sites More sharing options...
Synkrothicc Posted October 1, 2022 Share Posted October 1, 2022 Sheesh Alex using options for the first time! 1 Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 1, 2022 Share Posted October 1, 2022 Nice but to make it better, you should use list variables and player uuids rather than just their name. Since if someone with access to the command has it enabled and changes their name, someone else could change their name to the old name of the staff member and their command spy will now also be enabled. And instead of looping all players to send a message, you should use a filter. It still loops internally but just makes it look better. 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 - 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