Solved Weird .jar activity (does not load updated files in .jar- loads previous version instead

Discussion in 'Plugin Development' started by Arrxzon, Feb 10, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Arrxzon

    posting this quickly inbetween battlfield 4 game :p so sorry if im unclear or anything.

    Right so im updating a plugin,
    code cleanup here and there, just releasing a 1.7 build.

    After i make any changes it still loads the previous version even do that version does not even exist anymore,

    i simply verified this by changing languages class and adding a comment line to the config.yml
    and opening up the .jar to make sure the changes were made i see my comment in the config and an english languages.class
    but it just loads non existing code/files from previous version

    ill get some source code here in a bit if that helps but there isn't anything in the plugin that would cause this the original author confirmed.

    The only thing i can think of is the way i downloaded the source code, simply decompiling the .class files with a handy site online. would that affect it ?
     
  2. Offline

    MrAwellstein

    Where is it loading it from?
    If its gravitys Updater, then the Curse site just may be being delayed a bit (it happens sadly).
     
  3. Offline

    Arrxzon

    im using eclipse to update this plugin, but once exported and test server starts everything is still at it's previous version state,
    even do all updated files exported correctly in the .jar
     
  4. Offline

    MrAwellstein

    Ah, umm... are you sure you are having the plugin name the same, when you export it? Also I'd check the location of where its saving to.

    Also!
    put on the onLoad something like this
    Code:
    System.out.println("\n\n\nThis is a Debug Test!\n\n\n");
    
    So that way you know if eclipse is acting up or if you are just going insane :p
     
  5. Offline

    Arrxzon

    MrAwellstein
    changes made to other plugins are fine, eclipse isn't acting up
    and i must have checked the file output about 20 times no spelling mistakes or duplicates.

    edit: right, i believe it to be just the .yml config files im able to get it to print out to console
    but i don't see were im wrong,

    for my config.yml i'd have something like this

    public void loadConfig(){
    if((new File("plugins/Warn/config.yml")).exists() {
    config = getConfig();
    config.options().copyDefaults(true);
    saveConfig();
    } else{
    saveDefaultConfig();
    config = getConfig();
    config.options().copyDefaults(true);
    }
    }
    public void onEnable()
    {
    loadConfig();
    }
     
  6. Offline

    MrAwellstein


    I'm not really sure, I don't really use the bukkit API for config creation.
     
  7. Offline

    Arrxzon

    figured it out was just missing
    public FileConfiguration config;
    public File configFile;

    i only had
    public FileConfiguration config;

    MrAwellstein
    thanks anyway
     
  8. Offline

    MrAwellstein


    No Problem? Haha.
     
Thread Status:
Not open for further replies.

Share This Page