[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

    majorcyto

    This this compatible with 188 MarkusNemesis? I havent tested yet but since the command structure has changed some im going to assume it might not? :[
     
  3. Offline

    MarkusNemesis

    It would appear to work. I cannot currently test this in game but eclipse shows no new errors.
     
  4. Offline

    phondeux

    This isn't functioning at all. When I have any player type, /playerlist, nothing shows up. In addition players joining the server spam the following to the server console.
    Code:
    Feb 1, 2011 7:24:45 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_JOIN to Informant
    java.lang.NullPointerException
            at java.util.regex.Matcher.appendReplacement(Matcher.java:699)
            at java.util.regex.Matcher.replaceAll(Matcher.java:813)
            at java.lang.String.replaceAll(String.java:2189)
            at com.markusnemesis.bukkit.informant.informantPlayerListener.resolve
    cents(informantPlayerListener.java:563)
            at com.markusnemesis.bukkit.informant.informantPlayerListener.onPlaye
    in(informantPlayerListener.java:603)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader
    va:123)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManage
    ava:213)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurat
    Manager.java:80)
            at net.minecraft.server.NetLoginHandler.b(SourceFile:121)
            at net.minecraft.server.NetLoginHandler.a(SourceFile:47)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:278)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:204)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  5. Offline

    PanCakes

    Is there a way to disable the online players when you log in?
     
  6. Offline

    majorcyto

    Did you see what the above user posted?
     
  7. Offline

    MarkusNemesis

    ill get to work on a fix now
     
  8. Offline

    majorcyto

    Hey Markus, im on the latest build and informant is working for me still i do have a request though, can you make it so we can color the message that shows up before the who list.

    Also can you please color the who list, itll pull the group color from the permissions config then show there name as there group color! Would be a great addition. :]
    --- merged: Feb 4, 2011 5:35 AM ---
    Quoted you so it would alert you.
     
  9. Offline

    MarkusNemesis

    I thought that informant worked on the current version? That's what i understand from what you;ve told me.

    I cannot work on Informant until the 14th of this month when i go back to College as my PC has died. That, or my faithful users could help pitch in for a netbook :)
     
  10. Offline

    majorcyto

    It does work fine, but i was requesting features :p!
     
  11. Offline

    MarkusNemesis

    ah okay. well it'l have to wait till feb 14th :( sorry
     
  12. Offline

    majorcyto

    Awe ok, thanks for replying though! If i could afford to donate i would x.x
     
  13. Offline

    Foffy123

    Hey Markus, hopefully you can get to work on an update? I'd love to see this plugin back, It's better than anything else!

    (It's the 14th)
     
  14. Offline

    MarkusNemesis

    Hey guys, once this first week is settled then ill start slacking off the work and work on informant instead :) Have a little patience :D
     
  15. Offline

    Magnus Olsson

    Great plugin, can i suggest a Last login feature? where you can see when the users of the server was last seen online?
     
  16. Offline

    MarkusNemesis

    I am aware that Informant is throwing an error on start up but fear not, it is just a change in the plugin code structure and informant will still work. Give me time to update this, as College is somewhat more time consuming than I had imagined so very little to no work is being done on informant during my time there. If you wish for improvements on Informant to be done quicker, there is a donate link in my signature, all money going there goes towards me getting a netbook to replace my dead PC (which is why work on Informant has stopped).

    Thank you.
     
  17. can you please help me? i cant get my colours to work :\

    Mine looks like this :)

    motd=Hello %p!
    motd2=Welcome to Green Street Gaming's Minecraft Server!
    motd3=There are currently %n players playing
    newusermsg=%p Joined for the first time
    Colour=12

    what have i done wrong :\?
     
  18. Offline

    MarkusNemesis

    Capital C in "Colour", use all lower case.

    also, i use colour WORDS, not numbers. so you want to type "aqua" for aqua, etc. the list is in the OP
     
  19. Offline

    rasse

    Hey,

    Thank you for the plugin, it's awesome. Great work, dude.
    but... [​IMG]
    Newest craftbukkit version #450 doesnt support Informant. I got Severe error when tried load the plugin.
     
  20. Offline

    MarkusNemesis

    I will work on this on monday. Thanks for letting me know.
     
  21. Offline

    shane3x

    Download links are telling me the ID doesn't exist, whatever that means.
     
  22. Offline

    MarkusNemesis

    Links fixed.
     
  23. Offline

    shane3x

    My console is giving me some 'stupidly long constructor' message and it tells me to bother you about it. Whatever that means.
     
  24. Offline

    MarkusNemesis

    i'm aware of that and will be fixing it on monday
     
  25. Offline

    shane3x

    Okey doke. Is there any way you can make different parts of the text different colour or can you only set the entire text to one colour?

    Also this is my current info.props contents:

    Code:
    motd=Welcome to the Gen I Gaming RPG server %p
    motd2=Number of connected players: %n
    motd3=Please type /rules to read the rules and commands before
    motd4=playing, thank you.
    motd5=
    
    colour=aqua
    newusermsg=%p is new to the server! Please make them feel welcome
    
    playerlistcmd=/who
    motdcmd=/showmotd
    
    
    For some reason it still shows the names of all the players online. Also not sure what caused this but it used to colour the entire text, now it's just white even though it says to make the text aqua.
     
  26. Offline

    MarkusNemesis

    You can use the § character followed by a number ranging from 0 to 9 and letters a to e i believe.

    e.g. §e = cyan i believe. I cannot find the table that shows the actual values on my phone, sorry.

    p.s : i found the symbol by googling "sims 2 currency symbol" :p
     
  27. Offline

    MadManMarkAu

    Markus, great plugin, I await the "stupidly long constuctor" fix.

    I'd like up put in a feature request, if I may. Can you add a method to disable the player list that shows on login? Or at least a way to customize it. And a way to customize the player list accessible from /playerlist?

    I'm looking to recolor the player list shown on login and change the text slightly, as well as add "Player list:" before the text returned from /playerlist

    As others have said, importing prefixes and suffixes from Permissions/GroupUser is an awesome idea, but not one that I'm waiting on just yet :)

    Thanks for such an *awesome* plugin!
     
  28. Offline

    wolf hatake

    link dead :/
     
  29. Offline

    Jdbye

    Anyone got this and can mirror it somewhere?
     
  30. Offline

    MarkusNemesis

    Thanks for reporting the host being down. Currently working on getting it back, but only so much i can do with my phone :(
    --- merged: Mar 1, 2011 1:43 PM ---
    Downloads have been fixed. Was an ISP issue.
     
  31. Offline

    Master

    I would similarly like a way to disable to location broadcast on login. It does not seem to be that accurate and is just kind of annoying.
     

Share This Page