Plugin category: SEC/INFO Suggested name: Command Alerter A bit about me: Iv just signed up to the forums and have been running a half whitelisted server for about a year now. What I want: A simple lightweight plugin which shows the commands that players are typing in the chat to anyone with the permission node. I have been using the ALERTER Plugin (Link) for this but it has alot of other features which i dont use. I have searched around for a small plugin to do this and have only come across ones that log to a file and/or display in the console. Ideas for commands: /CA For toggling the Display of ALL Command Alerts /CA [Playername] For toggling the display of the Players typed commands (to stop spam) Ideas for permissions: CA.Alert ---Players that alert their commands (Default:True) CA.View ---for viewing the alerts CA.pl ---For toggling Players alerts When I'd like it by: When ever you can Devs who might be interested in this: I have no idea as im new here Thank you For taking a look at my thread
I have not really made any plugins in the past but I will see if I can make it, it looks pretty handy and I would love to see if I would be able to do it .
I can kind of understand not wanting to use a large plugin with many features that you don't need, but can't you just go into the configuration on the Alerter plugin and disable anything but commands? http://www.consolepk.altervista.org/page.php?19#dat If you still want it done, and Aronnn doesn't do it, I'd be able to do it pretty quickly.
I am not really able to figure out the new Event system. As I said I just got into java coding, so if you know how to do it, this is what I currently have: http://pastebin.com/7tjis2jb The problem is an error in registerEvent, and I suppose that is because of the new Event system. Aronnn
You didn't specify a priority within the @EventHandler, but I'll go ahead and modify that and for Brightspark Brightspark This is currently what I have done: http://pastebin.com/t2AaAYHq I'm getting some errors so it's not ready to be compiled, but I'm just workin on it when I get a chance here. I'll pick up on it some more in a bit. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I read that an hour or so after I posted that, but really, you're not changing the outcome of the event so it should only be set to MONITOR.
To be honest I haven't had much time to work on it, I can provide the source if anyone wants to pick up on it though.
I could pick it up and see if I could finish it. Was already working on your old source, so if you could send me your's I could see if I could use it.
Aronnn I'm working on it right now, if you have Skype or anything you can message me on there if you want to work together on some things or find out the progress.
You could add me on skype: Aronnns, although I am going to get some sleep right now. So maybe I could do something tomorrow.
One thing I was working on but I wasn't sure if you wanted it: If players are manually added to the "watch-list" but they don't have the permission node, they're going to be removed upon quitting and have to be re-added next time. However, I could make it so it's persitent between logins. I might find it easier just to give them the permission node for "ca.alert" though, which should I implement? Also, should all OPs be exempt from the "watch-list", even if they have the permission node? EDIT: I've finished it for now without knowing the above, so as per version v0.1 here's what it would look like if I posted this as a topic (if you'd like) as well as the download for the plugin: Topic Preview (Move your mouse to reveal the content) Topic Preview (open) Topic Preview (close) Title: [ADMN/CHAT] CommandAlerter v0.1 - Monitor users' commands! [1.1-R1] CommandAlerter - Monitor users' commands! (Request: http://forums.bukkit.org/threads/sec-info-command-alerter.55648) Version: v0.1 Description: CommandAlerter is a plugin that easily allows you to keep track of exactly which users are executing which commands, allowing for easier administration and eye-sight of your users and whether they're abusing their powers! Permissions: Code: CA.* - All CommandAlerter permissions EXCEPT 'ca.view'. CA.toggle - Toggle CA on/off as well as adding or removing certain users from the 'watch-list'. CA.view - You must have this permission node to view any messages from this plugin. CA.alert - Assigned to groups and/or users who will have their commands displayed. Commands: Code: /CA - Toggles notifications. /CA <Player> - Toggles player notifications. If watched already, player is disabled. * NOTE: If player has the permission node "ca.alert" they will be re-enabled on next join. Also, if the player doesn't have the permission node, they're only enabled for that current session. Features: Monitor users' command usage for administration and/or statistical purposes![/b] Makes it easier to distinguish who's doing what without having to ask around! Download The Plugin Now! Changelog: v0.1 - Initial Release Upcoming Plans: N/A (Currently!)[/b] BukkitDev: (Coming Soon!)
The Toggle Option is mainly to stop players typing loads of /commands to annoy OPs so really it functions more as a mute. How about ,If the Player has the Ca.alert permission there commands are displayed but can be *toggled IE muted for that session? And if Ops have the Ca.alert permission node they will be on the Watch list Thanks
Well as it stands right now even if the player has "CA.Alert" they can be muted for that session by doing /CA <Player> which would disable them, and they would be re-added to the list upon re-joining. If you want to remove them permanently you would of course just remove the permission node. I'll modify the code so OPs are not exempt from the watch-list, however, this means that every OP will be watched unless disabled for that session. There'd be no way to permanently disable them, unless you want something like: ca.mute which would mute them despite having ca.alert or being an OP. Let me know!
I already made this plugin Link here Edit; Give me feedback so I can improve it, it's just the basic thing ATM, but free ;D
I made some modifications when I had time earlier and put it up on Pastebin, will share later. It was mostly adding the public void onCommand to fit what the author of this request wanted. If you had a Github I could submit a pull request.