Discussion in 'Plugin Development' started by william9518, Jan 20, 2013.
title i want to be able to send logs from the console to the player.
Why would you do that? That would just be spamming the player. Don't do that.
Have you noticed which sub forum you're in?
EDIT by Moderator: merged posts, please use the edit button instead of double posting.
For server admins that want to see any errors etc
So spam them with hundreds of messages? Server admins can just look at the logs themselves
Your not helping!
EDIT: and of course they will get a toggle command which I already made. I just need a way to get the log from the console.
I'm trying to dissuade you from doing this, as it is a bad idea
read my EDIT.
and its for ADMINS, not OWNERS! owners sure can look on the frickin console, but in a rented 24/7 server, admins wont have perms!
But why concern admins with server errors? Most won't be able to do anything with a stack trace
OMG...... Some will... at least they can REPORT the stupid error! If you're not gonna help me with this, stop posting here!
It'd be better off if you checked if you read the server.log to check for recent errors and tell the admin there are some error and he should ask someone to check... maybe
If you REALLY want to spam the hell out of the player... Look into 'BufferedReader'
Sorry, I'm on tapatalk. It lists all recent items...
It was also around 1 am..
william, register a handler on the logger that send its toward a players that registered on list, dont forgot to check if you talking inside the main server thread
Yes... Plugin developement! im making a plugin so admins can see logs!@
or scanner which can be easier.
pass the scanner a bufferedinputstream(if it exists)
Separate names with a comma.