CommandSpy
Commandspy allows those with permission to see player and server commands and what people write on signs.
Documentation
For documentation, please see the spigot resource page. This project will continue to be updated with the latest versions.
Support
ircs://irc.esper.net:6697/#Commandspy
Licence and Source Code
Commandspy is licenced under version 3 of the GNU General Public licence. A copy of the source code is obtainable here.
Would it be possible to add an option to change the colors. All yellow is just to plain.
Also, why are some people blue and some aren't when they do commands.
use a perm check. if they dont have perms they can be logged. if they do it just stops. its how mine works.
Works, but could you post more info about the MySQL config? /commandspy tool always returns "Not connected to Database."
Also, a way to ignore only yourself would be cool. Even just an ignore-self: true option or something.. whatever is easiest for you.
Thanks for this plugin too :)
You should make it so that it will auto set the command next time you login!
just requires a if statement to not do that if that command is used i think. mayeb use a config list of commands not to log.
You need to be able to not see certain commands. I have a dilemma where whenever I do /commandspy set *, whenever a player does /login password, I see the value of password....(this is on an offline server) This is a much needed plugin however I can't use it when it risks so much for my players.....
Can you add the ability (via toggle) to log the signs to a database?
about the names. displayname will show nicks. name itself will just show true username.
Loading it up to compare, i noticed it requires worldedit to run. you might want to add a check for it and disable the functions of the worldedit commands if it isnt there and just say in logs that worldedit was not found and those parts were disabled. maybe some thing along the same lines when they are used anyways. Checked code, and that part is in but doesnt work correctly. it just errors about the UnknownDependacyException. It is the depends in the plugin.yml file causing the error. How you address that is up to you, good luck.
if you mean retrieving a list of what they said i think maybe a hashmap? log the playername and command and like /commandspy list would return all commands used and /commandspy sonarbeserk would return all commands under my name in the hashmap. if you wanna get creative make it save the commands to its own file with timestamps so you can review the commands without the server log spam feeling. i also recommend adding more perms for the commands as what if you want someone to see commands, say an mod but not see signs? needs a few more perms to be better controlled. and a perm to stop logging for some people you trust is also good.
you did work with the preprocessevent and get the command message right? String message = event.getPlayer().getDisplayName() + ": " + event.getMessage(); is a good format. outputs like SonarBeserk: /command used here, however getname() might work better depending on if you want to see the actual name vs seeing the names as nicks.
@simplimazing I just updated the plugin. And now whenever a command is done, it shows it as if I did the command. This defeats the whole point of spying, because I can't tell who did the command.
If I should make a bug, thats the one! lol
I just updated the plugin. And now whenever a command is done, it shows it as if I did the command. This defeats the whole point of spying, because I can't tell who did the command.
nice i like it works good :)