hullo all. is there a way to force a plugin to load last? it looks like theres: STARTUP POSTWORLD but is there a LAST? i guess i could just add a timer but thats not a very clean way to do it...thx in advanced!
hammale Not that I know of, my server seems to do it in size order. I just leave mine as postworld, why do you need a plugin to load last by the way?
hmmm well im writing a plugin that hooks into citizens and when the plugin enables i want to do somthing with them. in my onEnable i call this method: Code:text public void fixNpc(){ for (World world : getServer().getWorlds()) { for(Entity e : world.getEntities()){ if(CitizensManager.isNPC(e)){ System.out.println("debug"); } } } } but its never printing debug i think the reason is that this: Code: [INFO] Fetching addPacket for removed entity: CraftPlayer{name=test} is displayed long after my plugin enables... im going to try delaying the method w/ a delayed task...lets see if that even wrks EDIT by Moderator: merged posts, please use the edit button instead of double posting.
hammale I'm afraid I can't help you there. I had a look in the API and nothing seemed to stand out. Not experienced enough to know if this is even possible. EDIT: Just saw what you posted and it's worth a try.
One of the staff posted somewhere that if you set a one tick delayed timer it will run after all the plugins have loaded.
hammale Yes that's correct. Whatever code you want to run after all plugins have loaded just schedule a task using Bukkits scheduler.