1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script CommandSpy 2.0

Be notified in-game of commands used by users

  1. Sitieno14
    Supported Minecraft Versions:
    • 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15
    CommandSpy_icon.png CommandSpy
    * this resource, his description and images below were made by Sitieno14 and licensed Creative Commons by-nc-sa 4.0 International License
    Be notified in-game of commands used by users

    Skripts compatible with this resource:
    MSG : If option "spyMSG" is set to true
    Vanish : If option "hideVanishedPlayers" is set to true

    Features.png

    Commands.png

    CommandSpy_Sitieno14.png

    CommandSpy_Notch.png

    CommandSpy.png

    Code (Text):
    1.  
    2. #-----------------------------------------------------------General Settings-----------------------------------------------------------#
    3.  
    4. #Prefix for almost all messages sent by this skript
    5. prefix: &3Command&bSpy &9»
    6.  
    7. #Format of notification about the commands executed by users for players with CommandSpy enabled
    8. format: &f%player% &7- &a%world% &7- /&6%full command%
    9.  
    10. onquit-disablecommandspy: true #If this option is "true", CommandSpy will be disabled on quit
    11. #Leave it to true if you have an Auth Plugin, otherwise not logged players will be able to see other players' commands before logging in
    12.  
    13. #Message to be sent to players who try to execute CommandSpy commands without having the required permissions [No {@prefix} by default]
    14. nopermission-error: Unknown command. Type ""/help"" for help.
    15.  
    16. #------------------------------------------------Other Skripts Compatibility-------------------------------------------------#
    17.  
    18. spyMSG: true #If this option is set to "false", it will not be granted to spy on private messages exchanged by users
    19. #You can use https://www.spigotmc.org/resources/msg-fully-customizable.52824/ as MSG skript, it is compatible with this option
    20.  
    21. hideVanishedPlayers: true #If this option isn't set to "true", this skript will not hide in-vanish players in his functions
    22. #You should use https://www.spigotmc.org/resources/vanish.52005/ to make sure this option works properly
    23.  
    24. #----------------------------------------/commandspy & /commandspy <playername>-------------------------------------------------------#
    25.  
    26. #Change this option if you don't want players to be able to toggle CommandSpy with the /commandspy command
    27. commandspy: true
    28.  
    29. #Error message to be sent to the console when trying to execute the /commandspy command (because it must be executable only by players)
    30. commandspy-error-console: &cYou can use this command only in-game, &8use &7/&fforcecommandspy &7instead
    31.  
    32. #---------------------------------------------/commandspy-----------------------------------------------#
    33.  
    34. #Message to be sent to players who enable CommandSpy for themselves by executing the /commandspy command
    35. commandspy-self-enable: &7You &acan now &7see the commands other players will execute!
    36.  
    37. #Message to be sent to players who disable CommandSpy for themselves by executing the /commandspy command
    38. commandspy-self-disable: &7You &ccan no longer &7see the commands other players will execute!
    39.  
    40. #-------------------------------------------------/commandspy <playername>-------------------------------------------------#
    41.  
    42. #Change this option if you don't want players to be able to toggle CommandSpy for others by using the /commandspy command
    43. commandspy-others: true
    44.  
    45. #Message sent to players who enable Command Spy for another player with /commandspy command
    46. commandspy-others-enable: &f%arg 1% &acan now &7see the commands other players will execute!
    47.  
    48. #Message sent to players who disable Command Spy for another player with /commandspy command
    49. commandspy-others-disable: &f%arg 1% &ccan no longer &7see the commands other players will execute!
    50.  
    51. #Message sent to players who get Command Spy enabled from /commandspy commands
    52. commandspy-others-enabled: &7Thanks of &f%player%&7, you &acan now &7see the commands other players will execute!
    53.  
    54. #Message sent to players who get Command Spy disabled from /commandspy commands
    55. commandspy-others-disabled: &7You &ccan no longer &7see the commands other players will execute!
    56.  
    57. #Message to send when players try to enable/disable Command Spy with /commandspy commands for a non online/inexistent player
    58. commandspy-error-404: &cNo online players called '&n%arg 1%&c'
    59.  
    60. #---------------------------------------------------------------------/forcecommandspy---------------------------------------------------------------------#
    61.  
    62. #Change this option if you want to disable the console's /forcecommandspy command
    63. forcecommandspy: true
    64.  
    65. #The confirm message the console receives from enabling CommandSpy for a player with /forcecommandspy commands
    66. forcecommandspy-console-enable: &f%arg 1% &acan now &7see the commands other players will execute!
    67.  
    68. #The confirm message the console receives from disabling CommandSpy for a player with /forcecommandspy commands
    69. forcecommandspy-console-disable: &f%arg 1% &ccan no longer &7see the commands other players will execute!
    70.  
    71. #Message to be sent to players who get CommandSpy enabled by console through the /forcecommandspy command
    72. forcecommandspy-player-enabled: &7Thanks of &8console&7, you &acan now &7see the commands other players will execute!
    73.  
    74. #Message to be sent to players who get CommandSpy disabled by console through the /forcecommandspy command
    75. forcecommandspy-player-disabled: &7You &ccan no longer &7see the commands other players will execute!
    76.  
    77. #Error message to be sent to players who try to run the /forcecommandspy command because it must be executable only by console)
    78. forcecommandspy-error-player: Unknown command. Type ""/help"" for help.
    79.  
    80. #Usage message to be sent to the console when a player is not specified as an argument for the /forcecomandspy command
    81. forcecommandspy-error-usage: &8Usage: &7/&fforcecommandspy &c<player>
    82.  
    83. #Error message to be sent to console when specifying an offline or non-existent player for the /forcecommandspy command
    84. forcecommandspy-error-404: &cNo online players called '&n%arg 1%&c'
    85.  
    86. #------------------------------/commandspylist-------------------------------#
    87.  
    88. #Change this option if you want to disable the /commandspylist command
    89. commandspylist: true
    90.  
    91. #First line that will be sent after the /commmandspylist command execution
    92. commandspylist-format-1:&7Players with &3Command&bSpy &aenabled &8↓
    93.  
    94. #One line for each player (Placeholder: %loop-player%) with CommandSpy enabled
    95. commandspylist-format-2: &8- &f%loop-player%
    96.  

    [​IMG] [​IMG]
    [​IMG] [​IMG]
    [​IMG] [​IMG]
    [​IMG]