PlayerActivity
[ > Features | Configuration | Commands | Permissions | Developer API ]
- Customizable broadcast messages for idle, active, away, and back
- Kick players for being idle too long
- /who command to see who is connected/idle/away
- /away and /back commands for players to manually indicate if they are present
- Developer API to add real-time, dynamic, configuration based activity and idle detection
Troubleshooting
If you are having trouble determining why something isn't working, set log-level: ALL
in the /plugins/PlayerActivity/config.yml file and restart your server. Wait for the problem to reoccur then paste the server.log file to somewhere like http://gist.github.com and post a comment here with a link to the paste.
Any chance you'll update this for 1.15 along with the sleep plugin?
@Kevdude0625
You can remove the playeractivity.track.idlekick permission from a player (or op) to prevent them from getting kicked if idle. By default all players are assigned this permission.
Can you make it so OPS cannot get kicked for idling and players can or let us customize it.
it seems the essentials who command is an alias for list. its fixed now..
@mmuziek
Have you tried to use it? Does it give you an error? Are you using the latest CraftBukkit Beta build?
there is no essentials:who command...
@mmuziek
You should not be editing the plugin.yml itself.
The latest CraftBukkit Beta build has some significant changes to how it handles commands. The most notable of which includes the new ultimate fallback feature. Basically, you can force your /back alias to either use /playeractivity:back or /essentials:back as you desire.
A news post describes the changes and has links to all the relevant wiki pages: http://forums.bukkit.org/threads/craftbukkit-1-7-2-r0-3-is-now-available.232215/
ths is so stupid. i dont wanna use /back /who and such from this plugin. i want it to use essentials /back and /who
when i try to remove it from the plugin.yml. the plugin crashes up on loading. but the yalm is ok. even after renaming the commands the plugin crashes on loading.
did u protect your plugin from editing?
what can i do to remove or rename all the commands without breaking the plugin
getting this error after nocheatplus bans a player.
https://gist.github.com/anonymous/9479411
@BlackFing85
Sure, my pleasure!
Also, last note, I just realized some of my documentation is out of date since the recent update last week. I'll try to get it all updated in the next week or so.
@EdGruberman
Yeah ok thanks for your great help!!
@BlackFing85
Do you mean the technical nature of the notation? Yeah, that's a challenge. Messages need to be able to accept parameters. They also accept formatting those parameters both natively in that MessageFormat style and with color codes. But yes, I can see how that seems almost like code if you are not familiar with it. I'm not sure there is an easier way without sacrificing a lot of features.
I can at least say you can get rid of all the complicated text for a message and set it to what you want and it should work.
For instance you could change:
to:
and it would display a simple message accordingly. But if you want the timestamp and colors, you have to add back in the other notations.
I know some plugin authors change the color code to accept a dollar sign. You can change that with the format-code option if you want. But I figure copy/pasting the section sign isn't too hard and you don't have to do it after you've setup your messages once.
@EdGruberman
Well when I looked at it it seemed hard for me to understand how to change the messages.
@BlackFing85
What specifically do you mean "easier"? The /plugins/PlayerActivity/language.yml file is designed for you to be able to change messages independently of configuration. I would think that is about as easy at it gets?
@EdGruberman
Sorry one more thing. can you make it so the messages are easier to change?
@BlackFing85
Oh, I think I see your concern now. You actually want them to come out of AFK when they move? You could simply add PlayerMoveBlockEvent or PlayerMoveEvent to the activity list for the away/back feature. All these plugin features are designed to allow you to define what events you want to trigger them.
So you could change your away-back configuration section to:
An option to remind someone that they are AFK is also an interesting idea. I'll open a ticket to remind myself to look into that eventually also.
@EdGruberman
Ok. Maybe if your not going to add a PlayerMoveEvent then send them a message saying your still afk or something else? So they know.
@BlackFing85
They are still considered afk.
@EdGruberman
Ok. So what happens when someone doesn't do the command? But they move.
@BlackFing85
No, by default movement will not automatically set a player as back from afk. That is controlled in the away/back settings at http://dev.bukkit.org/bukkit-plugins/playeractivity/pages/configuration/#w-away-back which by default are:
So basically, chat, entering or exiting bed, or issuing the back command.