PlayerInfo is used simply to locate where a player is based, e.g. PA, U.S., or Sweden. Version: 0.1a Download: Download .jar, Source Code Permissions Support: This plugin is a bit more of a invasion of privacy than anything, so this has been restricted to players with op, and players with the permission node "playerinfo.lookup" How to Install: Unfortunately, you need to do more than just download the .jar, so here it goes. You need to download the PlayerInfo.jar and place it in your plugins directory. Create a directory under plugins named "PlayerInfo" Download the geoip.dat file from my website: http://pwnage.me/download/geoip.dat Place geoip.dat in the PlayerInfo directory. Now, I do understand that the geoip.dat file is 30MB, so if you need a compressed version, you can download the zip here (18MB). Commands: /pinfo - Player Info (Main lookup command) ... more to come. This is what it looks like, both in-game and in console. Code: >pinfo gnftoxic 12:25:26 [INFO] Player: gnftoxic 12:25:26 [INFO] IP Address: 70.123.xx.xx 12:25:26 [INFO] Hostname: cpe-70-123-xx-xx.tx.res.rr.com 12:25:26 [INFO] Location: City, TX, United States, zipcode 12:25:26 [INFO] Lat/Longitude: 9001.1884, -9001.5858 Changelog: 0.1a Initial release
GeoIP Lite base? I don't know what that is - I simply downloaded the GeoIP Lite City "binary format" from MaxMind, since it seemed to be what I needed. That and it seemed to be the only thing I could find.
Is the command /lookup? If it is I suggest you change it, it would conflict with MCBans, if it isn't please tell me what the command is xD
I literally can't believe I forgot to mention that in the first post. It's /pinfo player-name, I've updated it.
very nice plugin! I think it would be great to use GeoIP for spawn points (on the Earth map for example...)
I have a problem with this mod, I added it to the plugins but I did not create the folder. Somebody tell me why it does not work, I use the version of 740 (bukkit). I will be grateful for your help.
Code: 00:07:30 [INFO] [PlayerInfo] You didn't download the GeoIP database file... shame on you! Disabling plugin. 00:07:30 [SEVERE] null loading PlayerInfo v0.1a (Is it up to date?) java.lang.NullPointerException at me.pwnage.bukkit.PlayerInfo.PlayerInfo.onDisable(PlayerInfo.java:58) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:129) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:646) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:230) at me.pwnage.bukkit.PlayerInfo.PlayerInfo.onEnable(PlayerInfo.java:38) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94) at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259) at net.minecraft.server.ThreadServerApplication.run(SourceFile:394) GeoIP is at the server.
Hello , Work good on cb#766 on console ! But in game i have this issue : Code: 2011-05-11 10:22:29 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'pinfo' in plugin PlayerInfo v0.1a at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32) at net.minecraft.server.NetworkManager.a(NetworkManager.java:196) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75) at net.minecraft.server.NetworkListenThread.a(SourceFile:100) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287) at net.minecraft.server.ThreadServerApplication.run(SourceFile:394) Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler at me.pwnage.bukkit.PlayerInfo.PlayerInfo.onCommand(PlayerInfo.java:69) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) ... 12 more Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 14 more
Anyone know where I could get the source to this as the link in the initial post doesn't work anymore :\
If any moderator wants to update the OP, the plugin works great. I'll host it for whoever wants it. www.andysminecraft.com/PlayerInfo.jar The database is located here: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz Gunzip it, rename it 'geoip.dat', and put it in the PlayerInfo folder. If you want to thank me, please click an ad on my website: www.andysminecraft.com