PlayerLogger
PlayerLogger
Version: 2.9.1
CraftBukkit Build 1.5.1-R0.1 [Not Tested]
Info
Info This plugin lets you store every block place, block break, chat msg, command, enchant, kill, sign text etc. So, if you need proof of something just look them up! You can turn on and off what you actually want or don't want to log, in the main configuration file! The main developer is Kuuichi. I am just continuing and adding stuff. I am obligated to continue this plugin. The forum is http://forums.bukkit.org/threads/admn-playerlogger-v0-7-logs-of-your-players-1-2-5-r0-1.58959/ and has been accepted.
Video
Great video made by Brandon Hopkins
Features:
- Chat Logging
- IP Logging ( Implemented by Mcluke300 )
- Join Logging
- Quit Logging ( Implemented by Mcluke300 )
- Command Logging
- Death Logging
- Console Logging ( Implemented by Mcluke300 )
- Blacklist Block Logging ( Implemented by Mcluke300 )
- Sign Text Logging ( Implemented by Mcluke300 )
- Pvp Logging ( Implemented by Mcluke300 )
- Enchantment Loggin ( Implemented by Mcluke300 )
- Commands not to log ( Implemented by Mcluke300 )
- Bucket Logging ( Implemented by Mcluke300 )
- Metrics
- MySQL support
Log Example
[World One]McLuke300 joined: 192.168.1.101 (-27 64 220) (06-26-2012 20:03:48)
[World One]McLuke300 Killed TestyWestie (-18 64 220) (06-26-2012 19:37:30)
[World One]McLuke300 said: Example chat (-21 64 220) (06-26-2012 20:02:06)
[World One]McLuke300 command: /home (-20 64 219) (06-26-2012 20:02:08)
[World One]McLuke300 Sign: [McLukes][Home][][] (-22 64 222) (06-26-2012 20:02:22)
[World One]McLuke300 command: /give McLuke300 46 1 (-22 64 223) (06-26-2012 20:02:26)
[World One]McLuke300 Placed: TNT (-26 64 218) (06-26-2012 20:02:28)
[World One]McLuke300 Placed: TNT (-26 64 219) (06-26-2012 20:02:29)
[World One]McLuke300 command: /god (-32 64 212) (06-26-2012 20:02:36)
[World One]McLuke300 command: /suicide (-26 64 216) (06-26-2012 20:02:39)
[World One]McLuke300 Died. (-26 64 216) (06-26-2012 20:02:40)
[World One]06-26-2012 20:03:21 [McLuke300]ItemStack{STONE_SWORD x 1} {Enchantment[16, DAMAGE_ALL]=1} Xp Cost:3
[World One]McLuke300 Emptied Bucket of Water (-26 63 224) (06-26-2012 20:08:53)
[World One]McLuke300 Emptied Bucket of Lava (-26 63 221) (06-26-2012 20:08:54)
[World One]McLuke300 quit: 06-26-2012 20:03:45)
[Console]kick McLuke300 05-27 03:46:42
Config
File: LogToFiles: true //False if you want to use just mysql Log: //Log Joins PlayerJoins: true // Log Player quitting PlayerQuit: true //Log Chat PlayerChat: true //Log all Player commands PlayerCommands: true //Log Player deaths PlayerDeaths: true //Log enchantments PlayerEnchants: true //Log Pvp Pvp: true //Log Buckets Placed PlayerBucketPlace: true //Log Console commands ConsoleCommands: true //Log Player sign text PlayerSignText: true //A reload of server is required for this to take effect http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html DateFormat: MM-dd-yyy HH:mm:ss //If this is true it will make the folder Playerlogger/Staff and all players with the Playerlogger.staff permission will be in there not Users SeparateFolderforStaff: true //False by default- Useful for offline servers where players can change capitalization in name and have a different file. All file names are in lowercase PlayerNamestoLowerCase: false //When true it will only log the players with the playerlogger.staff permissions LogOnlyStaff: false BlackList: LogBlackListedBlocks: true //Enables logging of blacklisted blocks Blocks: - '7' //Bedrock Block id - '46' - '57' - '*' //This will log all block place and breaks Commands: BlackListCommands: true //Enables Command Blacklisting (eg.wont log) BlackListCommandsForMySQL: true If this is true and blacklistcommands false it will blacklist commands for mysql and not files. CommandsToBlock: - /login //Wont log /login - /changepassword - /register MySQL: //More Information Below Enabled: true Server: 127.0.0.1:3306 Database: minecraft User: root Password: '0000'
MySQL
For a full guide on how to use MySQL with playerlogger look at the page for it. http://dev.bukkit.org/server-mods/playerlogger/pages/mys-ql/
When I add spawner eggs ID's into the blockedBlocks the config resets.
Update do 1.8 please
Hey, fix this plugin please. Metrics make crash my server.
UPDATE IT PLEASE
please, update to 1.7.2 :)
Please add anvil book logger
[20:52:40 WARN]: [Server] Probable Plugin cause: 'PlayerLogger' [20:52:40 WARN]: [Server] What follows is the stack trace of the main thread [20:52:40 WARN]: [Server] at java.net.SocketInputStream.socketRead0(Native Method) [20:52:40 WARN]: [Server] at java.net.SocketInputStream.read(SocketInputStream.java:150) [20:52:40 WARN]: [Server] at java.net.SocketInputStream.read(SocketInputStream.java:121) [20:52:40 WARN]: [Server] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) [20:52:40 WARN]: [Server] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) [20:52:40 WARN]: [Server] at java.io.BufferedInputStream.read(BufferedInputStream.java:334) [20:52:40 WARN]: [Server] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:643) [20:52:40 WARN]: [Server] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:589) [20:52:40 WARN]: [Server] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1319) [20:52:40 WARN]: [Server] at me.mcluke300.playerlogger.MetricsLite.postPlugin(MetricsLite.java:264) [20:52:40 WARN]: [Server] at me.mcluke300.playerlogger.MetricsLite.access$4(MetricsLite.java:225) [20:52:40 WARN]: [Server] at me.mcluke300.playerlogger.MetricsLite$1.run(MetricsLite.java:143) [20:52:40 WARN]: [Server] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:67) [20:52:40 WARN]: [Server] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [20:52:40 WARN]: [Server] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:583) [20:52:40 WARN]: [Server] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [20:52:40 WARN]: [Server] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:540) [20:52:40 WARN]: [Server] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:446) [20:52:40 WARN]: [Server] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [20:52:52 WARN]: [Server] The main thread is still stuck, current loop line is: [20:52:52 WARN]: [Server] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:589) [20:52:52 WARN]: [Server] This appears to be plugin 'PlayerLogger'!
@maxlehot1234
У меня ошибка. Здесь ответа нет!
Я стал использовать http://dev.bukkit.org/bukkit-plugins/kuuichis/
Works with 1.7.2?
Help! Crash server log file: 18.01 05:41:16 [Multicraft] Error loading server settings. 18.01 05:41:11 [Multicraft] Server stopped 18.01 05:41:11 [Multicraft] Server shut down 18.01 05:41:11 [Multicraft] Forcefully killing server 18.01 05:41:10 [Multicraft] Terminating server via signal 18.01 05:40:47 [Server] ERROR me.mcluke300.playerlogger.MetricsLite$1.run(MetricsLite.java:143) 18.01 05:40:47 [Server] ERROR me.mcluke300.playerlogger.MetricsLite.access$4(MetricsLite.java:225) 18.01 05:40:47 [Server] ERROR me.mcluke300.playerlogger.MetricsLite.postPlugin(MetricsLite.java:259) 18.01 05:40:47 [Server] ERROR sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.http.HttpClient.New(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.http.HttpClient.New(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.http.HttpClient.<init>(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.http.HttpClient.openServer(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.www.http.HttpClient.openServer(Unknown Source) 18.01 05:40:47 [Server] ERROR sun.net.NetworkClient.doConnect(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.Socket.connect(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.Socket.connect(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.SocksSocketImpl.connect(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.AbstractPlainSocketImpl.connect(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) 18.01 05:40:47 [Server] ERROR java.net.PlainSocketImpl.socketConnect(Native Method) 18.01 05:40:47 [Server] ERROR Stack: 18.01 05:40:47 [Server] ERROR PID: 13 | Suspended: false | Native: true | State: RUNNABLE 18.01 05:40:47 [Server] ERROR Current Thread: Server thread 18.01 05:40:47 [Server] ERROR
------18.01 05:40:47 [Server] ERROR Server thread dump (Look for plugins here before reporting to Spigot!): 18.01 05:40:47 [Server] ERROR------18.01 05:40:47 [Server] ERROR Spigot version: git-Spigot-1241 (MC: 1.7.2) 18.01 05:40:47 [Server] ERROR Be sure to include ALL relevant console errors and Minecraft crash reports 18.01 05:40:47 [Server] ERROR Please report this to http://www.spigotmc.org/ 18.01 05:40:47 [Server] ERROR The server has stopped responding! 18.01 05:40:38 [Multicraft] Stopping server! 18.01 05:40:38 [Multicraft] Ping timeout! Restarting server...If I delete PlayerLogger the server is operating normally
@dotapurex1
It can be, but it depends on the number of players online and how active they are. Unfortunately, everything is done synchronously so any slight delay on the DB can cause lag spikes and a slow DB can cause tick lag. I'm going to either create a whole new plugin which uses async tasks, or maybe just modify this one to be much more efficient.
Same question ass add5star. Is this plugin dead? It's an absolute must-have, it would be a shame.
@add5tar
Is this plugin performance intensive? Not sure if it'l make my server have TPS issues?
Hi, Is this plugin abandoned? The github code seems to be out of date (still v2.9). I was looking to convert it to use all async threads for DB writing, as any small DB delay locks up the main thread. I'd be happy to share the code as a PR if you can update github with the latest code? Thanks :D
@javoris767
Sorry for the late reply, player logger didn't have timings anymore, i don't know why... anyway now i am using spigot, it is much better :)
@KelvinKam
Do all of your plugins have high timings? Normally this doesn't happen unless theirs OS problems.
And sometimes this Event use may system resource...
15.05% 95.18% 104.741 s 47.5881 ms 2.20k PlayerCommandPreprocessEvent
@javoris767
You can copy the image link, then you can see it http://i371.photobucket.com/albums/oo153/kainamkxp/timings20130815_2_zpsbce78614.png
@KelvinKam
You cut out the events, could you show them? I'm working on an update.
Some times use many resource... why?