[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

    Tahkeh

    Your version of iConomy is outdated, please upgrade to 5. ;)
  4. Offline

    ark3typ3

    It is 5, I said so in my post
  5. Offline

    Tahkeh

    Oh, you edited it after I started writing my reply.

    Anyways, let me try to give you some insight into this problem. LoginMessage is looking for the iConomy methods (so it can grab the balance) in the package com.iConomy. The package declaration changed in 5.0, so if the iConomy.jar file's package is com.nijiko.etc.etc, it's going to throw an error because it isn't looking in com.nijiko.etc.etc.

    First and foremost, please stop your server when possible, delete both the LoginMessage and iConomy .jar files, redownload, and then try again.
  6. Offline

    Nitnelave

    dev.bukkit.org profile:
    nitnelave
    My Plugins
    here it is:
    plugin:
    permissions:
    system: default
    copies: null
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance: null
    permissions:
    - lwc.blockinventory
    - worldguard.slay
    - admincmd.player.list
    - petition
    - '-modifyworld.entity.mobtarget'
    - '-modifyworld.items.pickup.*'
    - '-modifyworld.vehicle.destroy'
    - modifyworld.*
    Moderators:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - 'Initiates'
    permissions:
    - nocheat.notify
    - lwc.mod
    - assignpermissions.add.group.Initiates
    - assignpermissions.del.group.Initiates
    - assignpermissions.list.group.Initiates
    - elevators.operator
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - '-LightningEvent.onMove'
    - '-LightningEvent.onQuit'
    - '-LightningEvent.onDeath'
    - '-LightningEvent.onRespawn'
    - '-iConomyDeath.use'
    - '-modifyworld.entity.mobtarget'
    - '*'
    Initiates:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - 'Basic'
    permissions:
    - elevators.advancedbuilder
    - tombstone.large
    - tombstone.freesign
    - tombstone.cmd.tombfind
    Basic:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - elevators.builder
    - realshop.shop
    - realshop.help
    - realshop.info
    - realshop.create
    - realshop.delete
    - realshop.give
    - realshop.open
    - realshop.close
    - realshop.buy
    - realshop.sell
    - realshop.xbuy
    - realshop.xsell
    - realshop.damageditems
    - realshop.price.*
    - lwc.protect
    - worldguard.slay
    - BedRespawn.*
    - joerep.user.*
    - admincmd.player.list
    - nSpleef.member.*
    - tombstone.use
    - tombstone.lwc
    - tombstone.sign
    - tombstone.quickloot
    - iConomyDeath.use
    - petition
    - monsterhunt.usercmd.*
    - monsterhunt.rewardeverytime
    - LightningEvent.onJoin
    - modifyworld.*
    - gastronomic.player.*
    - pvptoggle.use
    - pvptoggle.command.*
    users:
    nitnelave:
    group: Admins
    sean:
    group: Admins
    Smaug:
    group: Basic
    totolafouine:
    group: Basic
    nitnelave1:
    group: Initiates
    whiterabbit:
    group: Initiates
    nitnelav:
    group: Basic
    gonan31:
    group: Basic
  7. Offline

    Tahkeh

    Ohhhh, it all makes sense now. You're going to feel real silly about this, but you didn't properly space the config file!

    From the Permissions FAQ:

  8. Offline

    Nitnelave

    dev.bukkit.org profile:
    nitnelave
    My Plugins
    No, actually, it IS spaced out correctly, all the permissions are working as expected, it's just the bukkit embedded web editor that deletes the extra spaces in the post. Try posting your first word after a bunch of spaces, you'll see what I mean. I'm not sure it has anything to do with Permissions, as it does the error for every group (I didn't check default, but...). You're sure it can't come from somewhere else?
  9. Offline

    Tahkeh

    Okay, now I feel silly! :p

    Try moving your groups around. For example, Moderators inherit Initiates, but the Initiates group is further down the page. If a group is inheriting another, make sure that group has already been defined. I think that's what might have been the problem after all, because I ended up just deleting all groups but Default and Admins when I tested with your config.

    Edit: Thought of another possible problem. Instead of the inheritance being "null", just leave it blank.

    Also, although doubtful this will fix anything, remove all the other permission nodes on the "Admins" group. Just make it -"*" because that asterisk means Admins have permission to do anything.
  10. Offline

    Nitnelave

    dev.bukkit.org profile:
    nitnelave
    My Plugins
    Yeah, but the other nodes are restrictions. I'll try what you said tomorrow and report.
  11. Offline

    Tahkeh

    Oh, I wasn't even paying attention. I see the little hyphen at the beginning. (didn't even know Permissions did restrictions, though. Better keep that in mind)
  12. Offline

    Tahkeh

    Progress update
    I added in the QuitMessage, but I'm not sure if it works yet because I have yet to ask someone to get in my server to test it. I'm pretty sure it does. There shouldn't be any reason for it not to.

    I am currently working on the GroupMessage, which—as you might know—I've had great, great trouble with. However, I finally figured out what I was doing wrong and I'm on the right track. Right now line breaks don't work, but I guess that's about the only problem... *ahem* No, it works. Plain and simple. Also would like to note that since I know how to do this now, a lot more will be easy to do.

    I also tried working out the local fields auto-fill using information given to me from @NateLogan on page 16, but it didn't work. I'm pretty sure I'm doing something wrong, but it's not my main focus here for v0.7 so I'll set that aside for now.

    Finally, you might have noticed by now that the future feature list has updated, including a list of planned features for v0.7. Hopefully now you'll have a little more understanding of what to expect in the coming updates, so get excited! Also, this list greatly helps me to review what I need to be working on.

    After I roll out v0.7, I'll finally be able to take a breather, maybe start work on another plugin, only to get right back on the saddle again. Soon that list will be empty though, so remember, I'm still taking suggestions!
  13. Offline

    PlanetOfGames

    Code:
    11:06:38 [SEVERE] Could not pass event PLAYER_JOIN to LoginMessage
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
            at com.tahkeh.loginmessage.LoginMessage.process(LoginMessage.java:192)
            at com.tahkeh.loginmessage.LoginMessage.sendMultiMessage(LoginMessage.java:321)
            at com.tahkeh.loginmessage.LoginMessagePlayerListener.onPlayerJoin(LoginMessagePlayerListener.java:71)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:232)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:94)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:95)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
            at net.minecraft.server.Packet1Login.a(SourceFile:43)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            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.ClassNotFoundException: com.iConomy.iConomy
            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:319)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
            ... 16 more
    
    keep getting this tried re-installing iConomy and Login Message.
    just keeps throwing out this error i'm using IConomy 5
    i updated 4minutes ago so i know i have the latest version of both of these
  14. Offline

    Tahkeh

    Another iConomy 5 NoClassDefFoundError... *investigates*

    Seriously don't know why this is happening though. Works with my iConomy.
  15. Offline

    PlanetOfGames

    i've got it working with a older build of iConomy but it dosent want to seem to work with my new version.
    Let me try on a fresh install with just IConomy and LoginMessage and see if i can narrow down to a plugin in case something else is causing this
  16. Offline

    NateLogan

    Original script changed its behavior (I was afraid it could happen).
    Here is updated script with alternative site to check the IP:

    Code:
    package org.petricek.utils.net;
    
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.net.Inet4Address;
    import java.net.InetAddress;
    import java.net.URL;
    import java.net.UnknownHostException;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    
    public class MyExternalIp {
    
        public static void main(String[] args) {
            System.out.println(getExternalIp().getHostAddress());
        }
    
        public static InetAddress getExternalIp() {
            InetAddress ip = null;
    
            //Primary site:
            ip = parseExternalIP("http://automation.whatismyip.com/n09230945.asp");
            //Alternative site:
            if(ip == null) ip = parseExternalIP("http://checkip.dyndns.com/");
            //local IP:
            if(ip == null){
                try {
                    ip = Inet4Address.getLocalHost();
                } catch (UnknownHostException ex) {
                    //Unknown exception, will return null;
                }
            }
    
            return ip;
        }
    
        private static InetAddress parseExternalIP(String url) {
            InputStream inputStream = null;
            BufferedReader bufferedReader = null;
            InetAddress ip = null;
    
            try {
                Pattern pattern = Pattern.compile("(([\\d]{1}){1,3}\\.){3}([\\d]{1}){1,3}");    //IP address regex
                inputStream = (new URL(url)).openStream();
                bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
                Matcher matcher = pattern.matcher(bufferedReader.readLine());
    
                if (matcher.find()) {   //finds first IP address in first line of url stream
                    ip = Inet4Address.getByName(matcher.group());
                    //System.out.println(matcher.group());  //(TEST) print raw address
                }
            } catch (Exception ex) {
                //Something bad happened, return null
            } finally {
                try {
                    inputStream.close();
                } catch (Exception ex) {}
                try {
                    bufferedReader.close();
                } catch (Exception ex) {}
            }
    
            return ip;
        }
    }
    
  17. Offline

    Tahkeh

    v0.7 Progress:
    [IMG]
    Yes, I know how I said that the GroupMessage worked, but right now (assuming the target group is "Admin") the formatting is like this:
    Code:
    (AdminWelcome to the server!Admin)
    (AdminPlayers online: %olAdmin)
    (AdminAnd so forth on and on like this...Admin)
    As you can see, linebreaks are still a little tedious. I also want to use colons (as in ":") to separate parameters because I find it easier than commas (no confusion over whether you need to use a space or not, etc.). So it would be like "(Admin:.public" (added in period after "Admin" so it wouldn't automatically use the :p emote) with "public" meaning that the text within those parenthesis will be broadcasted to all players when a player of the group "Admin" logged in.
    Alright, so how did that go?
    Thanks a bunch, it works great!
  18. Offline

    Tahkeh

    Moar progress!
    [IMG]
    I am getting very close to releasing v0.6_6, and v0.7 for that matter. However, I'm going to save the first three non-struck-out items on the list for v0.7 and release v0.6_6 when the orange item is complete (which has a good chance of being today).

    So stay tuned guys!

    P.S. You might want to brush up on your date formats so you can have LoginMessage display the server time the way you want it to. There will be a new field in Settings.properties for this.

    Edit: I'm going to leave out that last one for v0.7. That is because the way I check to see if LoginMessage should show the player the MOTD (MOTD being any message privately shown to them) will change since any of the four message types (Login, Quit, Group, User) could be an MOTD instead of just the LoginMessage.

    That also means I'm preparing to release v0.6_6 now!
  19. Offline

    Tahkeh

    Updated!
    And there you have it! The final release before the great v0.7! :p Read the OP (original post) to find out how to use the new server time code %srtime!
  20. Offline

    Rocky

    Doesn't Work at all if you reload plugins. That's quite the bug you have there.

    Btw cb - 815.
  21. Offline

    jbMurdock

    CB815 is NOT a recommended build and Minecraft 1.6.4 is buggy as hell! Just wait for a RB and DON'T use stuff on a live server thats reported not to be working...
    That's the best tip I can give ;)
  22. Offline

    frog

    Apologises if this has already been covered in this thread.

    I'm getting the following error on server start with 803.

    EDIT: This was fixed by opening the file /plugins/LoginMessage/Settings.properties and making sure that there was a value for each setting that starts with Local-
    Code:
    12:52:26 [INFO] [LoginMessage] 0.6.6 enabled
    12:52:26 [INFO] [LoginMessage] Attempting to fill in local fields...
    12:52:27 [SEVERE] java.lang.NullPointerException
    12:52:27 [SEVERE]       at java.util.Hashtable.put(Hashtable.java:411)
    12:52:27 [SEVERE]       at com.tahkeh.loginmessage.PropertiesFile.setString(PropertiesFile.java:94)
    12:52:27 [SEVERE]       at com.tahkeh.loginmessage.LoginMessage.fillLocalFields(LoginMessage.java:142)
    12:52:27 [SEVERE]       at com.tahkeh.loginmessage.LoginMessage.onEnable(LoginMessage.java:113)
    12:52:27 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    12:52:27 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
    12:52:27 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    12:52:27 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:132)
    12:52:27 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:110)
    12:52:27 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    12:52:27 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    12:52:27 [SEVERE]       at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    12:52:27 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
    12:52:27 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    12:52:27 [INFO] [LoginMessage] Unable to fill in local fields.
    
  23. Offline

    Rocky

    Just because its not recommended doesn't mean it doesn't work, Recommended is just what the developers feel is a more stable plugin in terms of everything pertaining to the common plugins available at the time and performance they check.

    This plugin advertises 815 as a supported build, so... Yeah, nice advice.
    but i appreciate the effort.

    And 815 works just fine, every plugin i used before 1.6 works perfectly on my server. Thats why i went ahead and let him know about that bug, because i was adding this, as i didn't have it before.
    dark1256 likes this.
  24. Offline

    dark1256

    I got the same error....
  25. Offline

    frog

    Open the file /plugins/LoginMessage/Settings.properties and make sure that there is a value for each setting that starts with Local-
  26. Offline

    dark1256

    thx now its working
  27. Offline

    Nitnelave

    dev.bukkit.org profile:
    nitnelave
    My Plugins
    I did some testing, and for some reason the Illegal group reference happens only when I have the iConomy feature turned on, and using %bal in the loginmessage. Here's the error again :
    [SEVERE] Could not pass event PLAYER_JOIN to LoginMessage
    java.lang.IllegalArgumentException: Illegal group reference
    at java.util.regex.Matcher.appendReplacement(Matcher.java:725)
    at java.util.regex.Matcher.replaceAll(Matcher.java:823)
    at java.lang.String.replaceAll(String.java:2201)
    at com.tahkeh.loginmessage.LoginMessage.process(LoginMessage.java:301)
    at com.tahkeh.loginmessage.LoginMessage.sendMultiMessage(LoginMessage.java:496)
    at com.tahkeh.loginmessage.LoginMessagePlayerListener.onPlayerJoin(LoginMessagePlayerListener.java:85)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:243)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:94)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:96)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    at net.minecraft.server.Packet1Login.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    And I just want to add that I'm running iCO 5.01 on CB803 (loginMessage 0.6.6)

    Oh, and I just checked the iconomy database trace file, and each time I connect and it throws the error I get :
    Code:
    05-30 00:40:24 jdbc[2]: exception
    org.h2.jdbc.JdbcSQLException: Table "ICONOMY_BANKRELATIONS" already exists; SQL statement:
    CREATE TABLE iConomy_BankRelations(id INT auto_increment PRIMARY KEY,account_name VARCHAR(32),bank_id INT(10),holdings DECIMAL(64,2),main BOOLEAN DEFAULT '0',hidden BOOLEAN DEFAULT '0'); [42101-153]
  28. Offline

    Tahkeh

    @Rocky Do you have GeoIP? If not, then that's why. You're having the same problem as everyone else.
    @frog and @dark1256 If you don't have the GeoIP database, then that is why. I forgot to check if you have the GeoIP database in the whole "Attempting to fill local fields" thing.
    @Nitnelave So this happens only when you have iConomy installed? You don't need Permissions to have that error?

    To @Rocky @frog and @dark1256 :

    I will release a "secret" update (probably today if the testing works out good) that won't change the version number, and will fix the problem you guys are having WITHOUT needing GeoIP.

    What happens is, when I attempt to fill the local fields, I'm using GeoIP methods to do so. If you don't have the GeoIP database though, it can't find the list of countries, zip codes, etc. That's why I need to check not only if the local fields aren't filled out, but also if the GeoIP database is found.
  29. Offline

    frog

    I did have the GeoIP city binary in place. It filled out the Local-Country and Local-Country-Code correctly, but the other Local- settings were left blank.

    I think it is because the free GeoIP database is not fully comprehensive and does not have fine granularity for all IP addresses.

    Another example of this is if I create a Broadcast message that includes the City-Code, this is sometimes blank when people join.

    I am in the UK btw.

    Thanks for a great plugin. :)
  30. Offline

    Tahkeh

    Thanks for the info.

    If I'm correct, the message still works, it just spits out that annoying error message. If you can confirm as well that it still works even if not all of the fields are filled out, then I'll simply remove the code
    Code:
    e.printStackTrace();
    where "e" is the exception and the exception is NPE.
  31. Offline

    Nitnelave

    dev.bukkit.org profile:
    nitnelave
    My Plugins
    Nope, no need for permissions. I had everything in the config set to false, except iConomy. IF I had the %bal variable, it spat the error message, otherwise, not. And if I had the iConomy set to false, no error, displays the welcome message. If you want to I can include my iConomy config, but I think the only possible problem is that I use £ and $ in my currency name (I saw the error was a string processing one?). Otherwise, nothing fancy.
  32. Offline

    Tahkeh

    Did a little "secret" update. Redownload LoginMessage if you had the GeoIP problem and tell me if it is fixed.
    Okay, I think I have an idea of what might be the problem. Could you post not only your iConomy config, but also your LoginMessage.txt file (PM it to me if you don't want anyone else to see)?

Share This Page