Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #---- Command Spy Options ----#
- cs-gui-mode: true #true = When executing the command without arguments, instead of appearing text in the chat, a GUI will appear. | False = Text will appear in the chat with the options.
- cs-gui-mode true-Gui Name: §8Command Spy options.# Only put anything here if you set the cs-gui-mode: true
- cs-command: cs
- cs-aliases: commandspy, cspy, commands
- cs-prefix: §8[§5§lMythic&d&lMC§8]
- cs-name-color: §d
- cs-doublepoints-color: §c
- cs-command-color: §b
- cs-no-send-command: "login" or "password"
- #---- Permissions Options ----#
- permission: commandspy.use
- per-mess: §cNo permission.
- #---- Help Command Message ----#
- line: §8§m---------------------------
- command /{@cs-command} [<text>]:
- aliases: {@cs-aliases}
- permission: {@permission}
- permission message: {@per-mess}
- trigger:
- if arg 1 is not set:
- if {@cs-gui-mode} = true:
- sender = player
- open chest with 3 rows named "{@cs-gui-mode true-Gui Name}" to player
- wait a tick
- set {_n} to 0
- loop 27 times:
- format a gui slot {_n} of player with air to do nothing
- add 1 to {_n}
- set {_yes} to LIGHT GREEN WOOL named "&a&lENABLE"
- set line 2 of lore of {_yes} to "&7Click here to set enable"
- set line 3 of lore of {_yes} to "&7your command spy mode."
- format a gui slot 11 of player with {_yes} to run:
- player command "/cs on"
- set {_no} to RED WOOL named "&c&lDISABLE"
- set line 2 of lore of {_no} to "&7Click here to set disable"
- set line 3 of lore of {_no} to "&7your command spy mode."
- format a gui slot 15 of player with {_no} to run:
- player command "/cs off"
- format a gui slot 22 of player with barrier named "&4Close." to close
- stop
- else if {@cs-gui-mode} = false:
- send "{@line}" to player
- send "&f" to player
- send "&b&l/cs on&f&o Set CommandSpy to Enable" to player
- send "&c&l/cs off&f&o Set CommandSpy to Disable" to player
- send "&f" to player
- send "{@line}" to player
- if arg 1 is set:
- if arg 1 is "on" or "enable":
- set {cs::%player%} to true
- send "{@cs-prefix}&f You have now put CommandSpy to &aEnable" to player
- if arg 1 is "off" or "disable":
- set {cs::%player%} to false
- send "{@cs-prefix}&f You have now put CommandSpy to &cDisable" to player
- if arg 1 is not "off" or "disable" or "enable" or "on":
- send "{@line}" to player
- send "&f" to player
- send "&b&l/cs on&f&o Set CommandSpy to Enable" to player
- send "&c&l/cs off&f&o Set CommandSpy to Disable" to player
- send "&f" to player
- send "{@line}" to player
- stop
- on command:
- if command is not {@cs-no-send-command}:
- loop all players:
- if {cs::%loop-player%} is true:
- send "{@cs-prefix} {@cs-name-color}%sender%{@cs-doublepoints-color}:{@cs-command-color} /%full command%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement