[INFO] LoginMessage v0.8.1 - Custom messages for login, command, death events and more! [1.2.5-R2.0]

Discussion in 'Plugin Releases' started by Tahkeh, Jan 8, 2011.

     
  1. Offline

    Tahkeh

    LoginMessage - version 0.8.1 - CraftBukkit build #1.2.5-R2.0
    Thank you LoginMessage users!

    LoginMessage is not just an MOTD plugin, as the name might suggest. It allows you to personalize your server with custom messages, with many different "message events" to choose from; like a player logging in (recurring or newcomer), a player quitting or being kicked, a player dying, a player typing a command, and a message to automatically go off at a given interval!

    Features:
    • Infinite amount of messages
    • Customize who receives and triggers your message
      • Specifically include/exclude: users, Permissions groups, ops, users with a given permission
    • Message events for logging in (recurring or newcomer), logging out, being kicked, typing a command, dying, and an automatic message that will go off at a given interval
    • Use "codes" to display dynamic values; i.e. the player's name, the online list, server time, etc.
    • Compatible with all 16 Minecraft colors
    • iConomy/BOSEconomy and Permissions/SuperPerms support (see readme)
    • Thorough documentation and reference
    [IMG]
    LoginMessage is now (more officially) on DevBukkit! Click the above icon to go to its page.
    [IMG]
    LoginMessage now has a wiki! Click the above image to go to it, hosted by the generous @RTRD. ;)

    READ: You must reload the server after LoginMessage downloads the BukkitPluginUtilities dependency for it to work! If you get an "Unable to install" message, download BPU here and place it in your "lib" directory. Then, rename it to "BukkitPluginUtilities".

    Download LoginMessage v0.8.1
    Download previous versions (from 0.7.1)
    Source

    To use locating features, download the GeoIP City database and extract it to your LoginMessage folder.

    Changelog:
    • [0.8.1] - From now on, changes can be viewed here.
      • Added: New groups config field for permissions-based groups for the %group code, new item/block IDs for latest Minecraft versions
      • Updated: Default death messages for magic death cause, greatly improved death handling system to be much less bug prone
      • Fixed: The slash in the usage for the LoginMessage command has been moved ("lmsg/" to "/lmsg")
      • Removed: priority config field (could not be kept in new Bukkit event system transition)
    • [0.8] - Many changes in this update. Please read here.
    • [0.7.2.2] - Updated to BukkitPluginUtilities 1.2.1, added file size to the download log, added a check to create the lib folder if it's not already there, and removed exception when BPU is not found.
    • [0.7.2.1] - Added more detailed I/O exception log and removed unnecessary file loading.
    • [0.7.2]
      • Added: BOSEconomy support, SuperPerms support, negative node option, permissions node, persistence support, %laston code, %an% special code, random messages, default %ol code, firstlogin event, BukkitPluginUtilities library, config.yml GeoIP "fail" fields
      • Changed: useico and useper to new plugins node, documentation
      • Removed: local fields in config.yml
      • Fixed: NPE for SuperPerms users, quit event being triggered by kick
    • [v0.7.1] - Fixed a ton of bugs. Added op group. Removed Message.txt. Rewrote documentation.
    • [v0.7] - Added new command and kick events, added two files for creating messages, changed Settings.properties to config.yml, added the ability to configure what to show for %time, added the ability to give messages cooldown and delay timers, and fixed various bugs.
    • [v0.6.61] - Fixed a problem causing lag to anyone logging in.
    • [v0.6.6] - Added in new server time code, added Use-iConomy and Use-Permissions fields in Settings.properties, local fields now auto-fill, and added the QuitMessage.
    • [v0.6.5] - Fixed bug where the login/broadcast message wouldn't show the display name. Also added in a few more codes.
    • [v0.6.4] - Updated to latest iConomy and Permissions versions, also got rid of the now-unnecessary %cur code.
    • [v0.6.3] - Added two new codes (%sp and %dpol) and new Settings.properties field allowing you to get rid of the default login message (i.e. "Player has joined the game.").
    • [v0.6.2] - Fixed command issues. Also added new code called "%dpnm".
    • [v0.6.1] - Updated to support CraftBukkit build #617, also fixed Permissions errors.
    • [v0.6] - Now uses the GeoIP database instead of InetAddressLocator. Added new codes and new fields in Settings.properties.
    • [v0.5.4] - Updated to work with the new PLAYER_COMMAND_PREPROCESS event.
    • [v0.5.3] - Updated iConomy API to version 4.0, Permissions API to 2.5. If you have a lower version of either of these plugins, you have to update!
    • [v0.5.2] - Updated iConomy API to version 3.0. If you have iConomy and LoginMessage, make sure you update your iConomy to 3.0!
    • [v0.5.1] - Updated the external jars, might have helped a bit in the whole Permissions bug.
    • [v0.5] - Added /motd option and new codes! Look below for details.
    • [v0.4.3] - Quick update; just recompiling to possibly fix a problem someone had.
    • [v0.4.2] - This time, I did fix the iConomy bug.
    • [v0.4.1] - Fixed a bug that forced you to have iConomy.
    • [v0.4] - Now using iConomy API. Also removed Money-Name in Settings.properties.
    • [v0.3.1] - Fixed duplicate broadcast message bug. Also re-added support for %max!
    • [v0.3] - LoginMessage folder is now relocated to /plugins/LoginMessage; LoginMessage creates separate files for the login message, broadcast message, and settings. This also means you can update each file without having to restart or even reload your server.
    • [v0.2] - Added in the broadcast message and %locale and %country codes.
    • [v0.1] - LoginMesage's release.
    LoginMessage Team:
    v0.9 features (subject to change):
    • SpoutCraft GUIs
    • Uptime code
    • RSS event
    • World change event
    • User-defined methods
    • Ability to download/update/remove GeoIP via commands
    • Message editing via commands
    • Message logging
    Thank you to...
    • tkelly for helping me previously with LoginMessage and other programming in general!
    • Lance, xZise, and jwideman for helping me and other LoginMessage users!
    • NateLogan for giving me the method to find the IP of the server!
    • xZise again for all the great help he has given me with this plugin in general!
    • mathmaniac43 for testing, fixing problems I was stuck on, and overall being a big help! Check out his awesome plugin!
    • GameFreakDude, khamseen_air, Sorken, xZise, an0x, and mathmaniac43 for testing LoginMessage 0.7.1 and LoginMessage Interface!

    This post has been edited 46 times. It was last edited by Tahkeh May 18, 2012 at 8:52 PM.
  2.  
  3. Offline

    ChadTheDJ

    Could you add something like a IP lookup to say: Welcome [Username] from the UK or USA? I could use that.
  4. Offline

    Tahkeh

    I would add that, but unfortunately Bukkit doesn't have a getIP() method yet. But I see what you're saying.
    ChadTheDJ likes this.
  5. Offline

    ChadTheDJ

    Great, hopefully when they add it, I will love to see that feature with your plugin!
  6. Offline

    Purre

    As they added the method getIP(), will it be added to this plugin? :)
  7. Offline

    toi

    I believe it hasen't been added to bukkit yet only craftbukkit
  8. Offline

    rmb938

    They just added some sort of getIP thing
  9. Offline

    Purre

    @toi Yeah, I just saw that.. It's just a question of time when they add it to Bukkit though..
  10. Offline

    Tahkeh

    Yes, unfortunately it has not been implemented yet... However, the next update will have iConomy support, the location thingy, and a new, separate message to be broadcasted when someone logs in (otherwise the country thing won't be of much use, because the player knows what country they're in :p).
  11. Offline

    dark navi

    Any way I could get the source for this? I have never coded a plugin, but I would like to try.
  12. Offline

    Tahkeh

    Heh, I don't know if you should use my code as a role-model (kind of messy in there)... :p But I too look at source code on github and decompile .jar's for reference. I've learned a lot from it. I don't have a github account, but I use a program called jd-gui to take apart .jar files.

    Also, you should probably read this to get started. ;)
  13. Offline

    Tahkeh

    Phew, that scared me. I thought all our plugins were gone, but they just got moved. ^_^;

    It appears we have getAddress(a.k.a. getIP) implemented into Bukkit now, so I'm working on the latest version of LoginMessage. I'm really at a loss though. Can anyone more experienced give me some advice here? Is there some kind of Java class I'm looking for that can convert an IP address into its country?

    As for everything else... Well, I think the broadcast message is near completion. I still haven't tried iConomy yet. If you guys want, I'll put out a quick update by tonight, but it won't yet have the IP thing.
  14. Offline

    Reil

    dev.bukkit.org profile:
    Reilaos
    My Plugins
    I actually looked into adding IP-to-country as a feature in rMotD back on HMod. There's a java package floating around on the internet that'll do it, but I decided against it, since it would add so much size to the package for a niche feature. I'll look it up later. Maybe you could use it. :3

    *goes to re implement IP for rTriggers now*
  15. Offline

    Tahkeh

    I just did. Is it "InetAddressLocator"? I would use it, too, but like you said, it adds size. Still would appreciate help, as I am clueless. D:
  16. Offline

    thegleek

    Concerning the IP/Country location --- what's wrong with the hMod plugin, GeoJoin , that ryan9104 made? He just has to convert it over to bukkit...
  17. Offline

    Tahkeh

    I see... Well, GeoJoin uses MaxMind. But if there is already a plugin out there that does that, I don't want to steal the author's work (not literally steal; I don't want take his idea).
  18. Offline

    Reil

    dev.bukkit.org profile:
    Reilaos
    My Plugins
    Yeah, it was InetAddressLocator. The other (actually more important) reason I didn't do it was because I had no reliable way of going from HMod's string version of IP to the InetAddress class (I didn't feel like checking how the constructor worked). Fortunately, Bukkit just hands you the InetSocketAddress, which contains the InetAddress.

    I'm also not restricted by the guilt of 'stealing,' quite as much, as this specific feature was requested waaay back when. :3 *implements*
  19. Offline

    Tahkeh

    :'(:mad::oops: <-- That's how sad I am. :(

    Anyways. I think (emphasis on think) everything in the plugin is working, it just doesn't have the IP thing... I'll add it in, but I'll try not to be too much like GeoJoin. GeoJoin also has cities and states, zip codes, latitude and longitude, etc., and I'll just keep it at countries. Sounds good? ^_^
  20. Offline

    Reil

    dev.bukkit.org profile:
    Reilaos
    My Plugins
    I don't mean that I have no qualms of stealing an idea. :c *clarifies* Someone (Scribbles2) actually requested that I add this feature to rMotD last month back when I first added IP address support, so I'm not taking cues/stealing ideas so much as fulfilling a feature request. :3

    GeoJoin's certainly a lot more detailed than what InetAddressLocator allows me/us, though. =p Going with Locales and Countries, here.
  21. Offline

    Tahkeh

    You filthy little... :p

    Anyways, yeah, I should probably get working on that update... It's almost done. If anyone sees this before I get the IP thingy working, can anyone tell me what they'd like better with the broadcast message? Either:
    A. Everyone but the person who just logged in gets the broadcast message, or...
    B. Everyone gets the broadcast message when someone logs in, including the person who triggered the message.

    I personally prefer B, but I'd like to see what you guys think. ;) Edit: I'm just going to give you an option. :D

    Edit: @Reil: BTW, the previous post was meant as a joke. :p I knew what you meant. ;)
  22. Offline

    ledhead900

    Iconomy 2.0b is out you should be able to build in iconomy support for the lmsg now.
  23. Offline

    Rallerbabz

    Code:
    C:\Users\Rallerbabz\Desktop\Bukkit>java -Xms1024M -Xmx1024M -jar craftbukkit-0.0
    .1-SNAPSHOT.jar
    2011-01-15 13:28:22 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-15 13:28:22 [INFO] Loading properties
    2011-01-15 13:28:22 [INFO] Starting Minecraft server on *:25565
    2011-01-15 13:28:22 [INFO] Preparing level "world"
    2011-01-15 13:28:22 [INFO] Preparing start region
    Preparing spawn area: 32%
    Preparing spawn area: 61%
    2011-01-15 13:28:25 [INFO] [General] version [1.4] (Demi) loaded
    2011-01-15 13:28:25 [INFO] [Guardian] version [1.2] (Helmet) loaded
    15-01-2011 13:28:25 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\LoginMessage.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:82)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:115)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:80)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:37)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.tahkeh.bukkit.loginmessage.Login
    Message.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.bukkit.plu
    gin.PluginDescriptionFile, java.io.File, java.io.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:78)
            ... 8 more
    2011-01-15 13:28:25 [INFO] Done! For help, type "help" or "?"
    
  24. Offline

    fffizzz

    they changed the constructor for plugins, he will have to update
  25. Offline

    Tahkeh

    Oh, right, sorry. I'll fix that today, and come out with those shiny features I was talking about, except maybe the country and locale features. I can't get that to work, but today I'll see if I can.
  26. Offline

    DaBari

    Is there plans to bring this to bukkit?
  27. Offline

    Tahkeh

    It is in Bukkit, silly! :p

    It just doesn't work yet, because of the recent Bukkit update (plugin constructor changed), but I will have an update later today.

    I think I have the country and locale working, but the country just shows up as "**" right now. I don't know if it's because I'm the server host, or what... My brother got the same message, but we are on the same network, after all.
  28. Offline

    DaBari

    Oops, sorry, haha. I know close to nothing. I run a server just for me and five friends. I have no idea what I'm doing but I did manage to get a few plugins running.
  29. Offline

    Tahkeh

    Updated to v0.2, working with latest Craftbukkit. Has the broadcast message function now, and iConomy balance. It does have the country variable, but it doesn't work yet. It just shows two asterisks like I posted above. I will fix that as soon as me and Reil can figure it out.
  30. Offline

    Jasin

    Thanks for updating Tahkeh. Could you put it on your todo to put the LoginMessage.properties under /plugins/loginmessage to go with the new standards. Makes everything nice and clean.
  31. Offline

    Tahkeh

    You mean yourserverfoldernamehere/LoginMessage/LoginMessage.properties? I hope that's the case, because I just made a little miniature update for that. It seemed to work fine, but tell me if there are any errors as usual.

    Edit for clarification: LoginMessage now creates a new folder.

Share This Page