[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

    Michael314

    Haven't stopped throwing up since I saw the ! command syntax to try using it.
     
  3. Offline

    Juze

    Please update to latest RB for releases.
     
  4. Offline

    jor956

    Code:
    14:56:43 [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.informant.informant.resolvePercents(informant.java:
    579)
    at com.markusnemesis.informant.informantPlayerListener.onPlayerJoin(info
    rmantPlayerListener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:204)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.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)
     
  5. Offline

    jor956


    Fixed, but when people join for the first time they get this:

    -
    blablabla

    Instead of:

    Welcome blablabla from blablabla to the server!

    Help please!?[/CODE]
    [/COLOR][/FONT][/SIZE][/quote]
     
  6. Offline

    68x

    Are you blind? No really are you blind? Can you not see that the author hasn't updated it for latest CB build ...
    Use LoginMessgae or WelcomeMe.
     
  7. Offline

    jor956

    Yeah I see that; doesn't mean you can't use your brain and help me-.-
     
  8. Offline

    68x

  9. Offline

    Reil

    Or you could use rTriggers. =o
     
  10. Offline

    jor956

    rTriggers?
     
  11. Offline

    Zarius

    Version 1.6 works fine for me with CB716 - I'm only using it for the MOTD and the player joined announcements with countries (GeoIP). No errors except the usual "nag auther about onPlayerQuit" messages.

    I'm running rTriggers too, but didn't think rTriggers did GeoIP.
     
  12. Offline

    fugue2005

    how can i make this so it doesn't show logins for a particular group
     
  13. Offline

    Padrino

    Downloadlink down =(
    Please upload on dropbox or something like that
     

Share This Page