[INACTIVE][INFO] Informant v1.6 - Basic Login message, MOTD and GeoIP [602]

Discussion in 'Inactive/Unsupported Plugins' started by MarkusNemesis, Jan 18, 2011.

  1. Offline

    MarkusNemesis

    [INFORMANT]

    tl;dr - a Plugin that displays an MOTD and the player list in a specified colour, as well as inform users of a new user. Can be set up to display user's name and country when joining

    Features:
    Config file can set MOTD (up to 5 lines) and the colour you want it to be exported as
    !infreload reloads the MOTD
    !motd displays MOTD again along with the playerlist (This Command can be edited in the informant.properties)
    !playerlist displays the playerlist (This Command can be edited in the informant.properties)
    Please note!:!motd and !playerlist will ONLY be set as the default, if you set them as active in your informant.properties file. e.g. to enable !motd, enter "motdcmd=" or "motdcmd=!motd". If you don't wish it to be !motd you can make it "motdcmd=!<anything you like>" and it will trigger the same as !motd. Same goes for !playerlist, you have to set it to use it. and you can set it to whatever you like.

    How-to:
    1. Install the informant.jar into your plugins directory and start and stop the server (creating the informant.properties file in the server root directory then /plugins/informant/<here>)
    2. Edit the informant.properties file to show "motd=Your MOTD Here"
    3. For multiple lines, line 2 would be "motd2=this is line 2" up to "motd5=this is line 5, the last line"
    4. Below that, type "colour=" and then 1 of 16 colours
    Code:
    black
    dark blue
    dark green
    dark aqua
    dark red
    dark purple
    gold
    gray
    dark gray
    blue
    aqua
    green
    red
    light purple
    yellow
    white
    
    5. the "!playerlist" command output can be customised using "playlistmsg=". e.g "playlistmsg=Current players are: " which will, when !playerlist is typed output "Current players are: MarkusNemesis"

    Inside your MOTD, you can have % codes:
    %p will display the connecting player's name. (e.g. "motd=Welcome %p!" will output "Welcome Markusnemesis!")
    %n displays the player count. (e.g. motd=Welcome %p, there are currently %n player(s) playing" will output "Welcome MarkusNemesis, there are currently 1 player(s) playing"
    %l resolves the user's IP address to a country. NEW!

    All of these outputs will be in the colour you chose.

    6. Server now informs others on the server of a user's first time when they join. This message is customised using "newusermsg=", e.g. "newusermsg=%p is new! say hi!"

    7. Player joining the server executes the new "playerjoined=" field in the properties file. playerjoined= uses the same %commands as all and displays to all players.

    How to disable features:
    Refer to the example informant.properties file below for an explanation as to how.

    EXAMPLE INFORMANT.PROPERTIES FILE

    WHEN UPGRADING VERSION, PLEASE RE-READ ALL OF THE ABOVE FOR CHANGES!

    DOWNLOAD Version 1.5
    Download Version 1.5.1 build #107
    Download Version 1.5.2 build #450 NOT BACKWARDS COMPATIBLE
    DOWNLOAD Version 1.6
    Download Version 1.6 build #470 !help now displays help
    Download Version 1.6.1 build #470 player list now displays on login if set to.
    Download Version 1.6.1 build #556 (Informant builds were based off bukkit builds, not craft bukkit builds... Has since been recompiled for craftbukkit #556)
    Download Version 1.6.1 build #602
    Download Version 1.6.2 build #602 (No new features, just bug fixes.)

    Any suggestions? please leave them below!

    Updated to CraftBukkit #81

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  2. Offline

    MarkusNemesis

    Just letting you folks know that Informant is not inactive....

    set "displayPlayerjoin=false" or remove any %l you have in your settings.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  3. Offline

    topcat5665

    I don't get a informant.properties...

    maybe I downloaded the wrong one, trying again...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  4. Invisible

    ViralNihility

    The %n value does not work for me. It appears as "%n" instead of showing the number of players.
     
  5. Offline

    MarkusNemesis

    You need to make it yourself...

    Post your informant.properties for me please.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  6. Offline

    ShaDooM

    Will it be updated for 602?
     
  7. Offline

    MarkusNemesis

    Sure, does it need to be done right away?
     
  8. Offline

    ShaDooM

    Naw I guess its not very urgent since other more important (not to offend you, I love informant <3 ) are not yet updated either.

    Thanks for the quick answer though ^^
     
  9. Offline

    MarkusNemesis

    updated, build 602 here
     
  10. Offline

    EthernetHub

    I'm not sure if I'm doing something wrong, but I'm getting this error when I try to load it up:

    Just downloaded Bukkit 602 a few minutes ago :/

    Code:
    Could not load plugins/informant.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:102)
    	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:62)
    	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:263)
    	at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:196)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:224)
    	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:380)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:366)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:98)
    	... 11 more
    Caused by: java.lang.VerifyError: class com.markusnemesis.informant.informantPlayerListener overrides final method onPlayerJoin.(Lorg/bukkit/event/player/PlayerEvent;)V
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	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:307)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	at com.markusnemesis.informant.informant.<init>(informant.java:30)
    	... 16 more
    
     
  11. Offline

    wears_Fedora

    Works great for me on 612
     
    minecraft13372011 likes this.
  12. Offline

    MarkusNemesis

    have you tried using a previous version?
     
  13. confirmed that
     
  14. Offline

    majorcyto

    The console told me to tell you this :3


    Nag author: 'Markus Davey' of 'Informant' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)
     
  15. Offline

    MarkusNemesis

    Fuuu! whyyyyy!
     
  16. Offline

    majorcyto

    I dunno but thats what it said D:!

    Im on latest bukkit build. #615
     
  17. Offline

    MarkusNemesis

    Fixed (should be at least), OP updated.
     
  18. Offline

    DerET

    2011-04-01 14:07:17 [SEVERE] Nag author: 'Markus Davey' of 'Informant' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)


    But it also seems to work without "nagging".
     
  19. Offline

    MarkusNemesis

    Which version is that? did you download 1.6.2?
     
  20. Offline

    monotonehell

    Yeah the nagging is happening with 1.6.2 on the RB612. I just notice that there's another RB617 that's been promoted today... weird.
     
  21. Offline

    MarkusNemesis

    Well, you'l have to put up with it, as I don't have access to a PC till next week. So, it works, at least.

    Irritates me how they keep changing shit over and over
     
  22. Offline

    monotonehell

    Doesn't bother me, I guess you just have to update before they take out that method.

    Great plugin by the way. The exclamation mark for the commands confuses some people, but I understand why you do it.
     
  23. Offline

    Raspberry

    Bukkit says I'm supposed to nag you...

    00:51:44 [SEVERE] Nag author: 'Markus Davey' of 'Informant' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)

    I downloaded... Version 1.6.2 build #602 (No new features, just bug fixes.)
     
  24. Offline

    RedFawkes215

    When using the plugin new players do not trigger the newuser message, and the playerlist file is not being written to anymore.
     
  25. Offline

    fneyret

    I'm nagging to !! :D
    Code:
    [SEVERE] Nag author: 'Markus Davey' of 'Informant' about the following: onPlayerQuit has been replaced with a new signature, (PlayerQuitEvent)
    EDIT : build 617, Informant 1.6.2
     
  26. Offline

    Ryan Groom

    Well this look's good. This is what i have been looking for and it sounds great ill be downloading this when i get home. Thanks
     
  27. Offline

    M0rti

    On CB670 i get this:
    Code:
    2011-04-08 18:56:37 [SEVERE] java.io.FileNotFoundException: ./plugins/informant/GeoIP.dat (No such file or directory)
    2011-04-08 18:56:37 [SEVERE]     at java.io.RandomAccessFile.open(Native Method)
    2011-04-08 18:56:37 [SEVERE]     at java.io.RandomAccessFile.<init>(Unknown Source)
    2011-04-08 18:56:37 [SEVERE]     at com.maxmind.geoip.LookupService.<init>(LookupService.java:303)
    2011-04-08 18:56:37 [SEVERE]     at com.maxmind.geoip.LookupService.<init>(LookupService.java:288)
    2011-04-08 18:56:37 [SEVERE]     at com.markusnemesis.informant.informant.findLocation(informant.java:418)
    2011-04-08 18:56:37 [SEVERE]     at com.markusnemesis.informant.informant.resolvePercents(informant.java:579)
    2011-04-08 18:56:37 [SEVERE]     at com.markusnemesis.informant.informantPlayerListener.onPlayerJoin(informantPlayerListener.java:41)
    2011-04-08 18:56:37 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:204)
    2011-04-08 18:56:37 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2011-04-08 18:56:37 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-08 18:56:37 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-08 18:56:37 [SEVERE] Could not pass event PLAYER_JOIN to Informant
    java.lang.NullPointerException
        at java.util.regex.Matcher.appendReplacement(Unknown Source)
        at java.util.regex.Matcher.replaceAll(Unknown Source)
        at java.lang.String.replaceAll(Unknown Source)
        at com.markusnemesis.informant.informant.resolvePercents(informant.java:579)
        at com.markusnemesis.informant.informantPlayerListener.onPlayerJoin(informantPlayerListener.java:41)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:204)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    I don't know why but it keeps deleting my geoip.dat.
    I copy it to the folder but same error after restart.
     
  28. Offline

    Raspberry

    Code:
    23:35:30 [INFO] While loading Informant (plugins/informant.jar) found old-data folder: plugins/informant next to the new one: plugins/Informant
    
    If I delete the "informant" directory then Informant plugin nags that it doesn't have a valid config... even though it has the "new one" (Informant) directory... It creates an "Informant" directory but still requires the "informant" directory...

    What's going on?
     
  29. Offline

    M0rti

    Looks like no updates here at the moment. Anyone know a plugin for online list? My users ask every day.
     
  30. Offline

    thefoxygranpa

    Any chance for an update to CB670?

    Also is there a way to completely disable player login/logout messages from being announced to clients?
     
  31. Offline

    wears_Fedora

    Works just fine on 670
     

Share This Page