Inactive [ADMIN/FIX] ForeverALoad v1.1 - Keep your chunks forever a loaded [1.2.3-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by Piedo_bear, Jul 29, 2011.

  1. Offline


    ForeverALoad - Keep your chunks forever a loaded
    Version: v1.1

    This plugin enables you to select individual chunks or entire areas and stop them from unloading. You can add, remove and check chunks, and also get information on how this may impact on your server.

    You use this, obviously, to keep chunks unloaded. This is useful for long redstone constructions, so the connection continues. Crops wont grow - see side note below.

    Crops wont grow in loaded chunks, this is one thing I noticed with my testing. However, redstone charges DO carry over very long distances (it will be greater than the view-distance specified in the but you need to make sure those chunks load first. This plugin stops chunks unloading, if you are in doubt use the logging mode and get the confirmation, I cancel the event of unloading quite accurately so if things aren't working it could be Bukkit, in-game mechanics or something else interfering - if not then its me XD

    • Allow/Stop chunks from unloading
    • Check if a chunk can unload
    • Stats on how it may impact your server
    • Supports in-game adding or config based areas
    • Supports Permissions 3.x and SuperPerms (otherwise defaults to op)
    • Optionally load chunks into memory from the start
    Future features:

    • Suggestions?
    Configuration file:

    Debug - tells you in console each time a chunk is prevented from unloading, or any errors encountered. Also tells you the percentage of loading rectangles on startup
    Rectangles - Used to stop areas unloading
        Use - If rectangles in config are being used to stop chunks unloading
        Quantity - Number of rectangles in use
        LoadFromStart - Loads defined rectangles from the start, if they are active
    Format of rectangles:
      world: world - world of the chunks
      points: -50,-50,50,50 - coords in the form of (x1,z1  x2,xz)
    (Note: will need ForeverALoad.usage in permissions or must have op status)

    Show Spoiler
    /chunk - Tells you how many chunks you will have (at a maximum) remaining from unloading, and give stats about it

    /chunk add - Adds the chunk you're on to the Do-Not-Unload list

    /chunk remove - Removes the chunk from the list

    /chunk check - Checks whether the chunk can unload

    /chunk addRect - After you have defined two blocks with a bone(ID: 352) by left and right clicking this will add the rectangle of chunks to your config file for you. You must have Use rectangles set as true in the config.

    Show Spoiler

    1. Place ForeverALoad.jar into your plugins directory and start the server to generate the config.yml
    2. Go to the folder plugins/ForeverALoad and edit the config.yml to your needs (see above for an explanation) The config generates weird, be aware of putting the co-ord information in the right places!
    3. Restart the server for the new configuration to take effect!
    4. Go add chunks and enjoy!

    Show Spoiler

    Version 1.1
    • Updated config handling - BREAKS YOUR CONFIG - so you will need to regeneate and edit, sorry. You can probably copy, paste,edit for your rectangles though.
    • Added the option to load chunks from the start
    Version 1.02
    • Fixed a sneaky typo
    • Hopefully corrected a calculation for area.
    Version 1.01

    • Updated to RB 1337
    • Added specific support for PermissionsEx
    • Fixed a null pointer with items
    Version 1.0

    • Updated to RB 1317
    • Changed config for Bukkits new API - requires a newly generated config
    • Completely recoded and organised to be prettier
    • Debug mode should help narrow down issues better now
    Version 0.5

    • Removed auto-protect of chests/furnaces since wiping bug is fixed
    • Ditched over-complicated part of protecting specific blocks
    • Added /chunk addRect to add rectangles ingame, using a bone as the selection tool.
    • Updated config NOTE: no longer uses ' around numbers so change '50' to just 50
    • Added support for SuperPerms
    • Updated to 1240 at last :p
    Version 0.4

    • Fixed an issue where /permissions would list chunk data, my bad
    • Added an option to load chunks straight into memory from the start. WARNING: this may take a while depending on the amount of chunks, it will load, and if the chunk does not exist it will be generated, but this might end up without flowers etc. So just use this for areas that already exist, or use a pre-rendering plugin/program first.
    • Updated the calculation of ram being used, to match experimental data opposed to theoretical
    Version 0.3

    • /chunk check now includes rectangles
    • /chunk [add/remove/check] will also tell you the coordinates of that chunk
    • AutoChestProtect now includes furnaces
    Version 0.2

    • Added auto chest protection option in configuration, stop all chests being unloaded.
    Version 0.1

    • Initial release

    Please post bugs, suggestions or anything related here and I will get looking :)

    Also, please include as much detail as possible, CraftBukkit build, stack traces, other conditions that may cause things.
    NOTE: Requires Vault installed
    Lancezh likes this.
  2. Offline


    To load chunks at start if you're using the rectangles (not sure if this is relevant for just single chunks) go to /plugins/ForeverALoad/config.yml and:
        LoadFromStart: true
    You should see some blurb go through the bukkit log on server start, too.

    As for the minecarts stopping... remember they travel less distance when empty than with a player in. So if you've optimized your track for full carts they won't reach the boosters when empty.
  3. Offline


    i have created a server wide redstone network and would like to use this plugin to keep the chunks loaded but ive tried to use it and it does not seem to work, problems like, current going into repeater but no current coming out and redtone touches wont respond to the input signal

    ive tried adding single chunks and selected area chunks

    any help would be great thanks
  4. Offline


    Piedo_bear any plans on keeping this mod updated?
  5. Offline


    Probably not, I don't have as much free time, and I dont have a use for this plugin anymore myself.
    For future note, if anybody wants to do something similar to this then the basic code is:
    public void onChunkUnload(ChunkUnloadEvent e)
    //Get relevant data from the event
    String w e.getWorld().getName();
    Chunk c e.getChunk();
    int x c.getX();
    int z c.getZ();
    //check if chunk can unload via rectangles or a chunk list
    //cancel the unload event if it's not supposed to unload
    if (checkChunk(xzw)) {
    System.out.println("Stopped unloading of chunk at: " ", " z);
    Kane likes this.
  6. Offline


    This is cool plug-in, but i am sad if you're not updating it :(. Can't run my server anymore :( shit happens some times!
  7. Offline


    Too bad no update :/
  8. Offline


    Perhaps Ill update it to work with 1.2 but from then on I wont keep it up to date.
    Phil3004 likes this.
  9. Offline


    That would be greatly appreciated. In fact, I registered an account here rather than lurking, purely to tell you that it would be appreciated. That's how much :)
    Phil3004 likes this.
  10. Offline


    Would be really happy if this plugin was updated for 1.2 :)
  11. Offline


  12. Offline


    Thank you Piedo_bear this plug-in is awesome :D

    How i get that plug-in updated

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
  13. Offline


    Working great for the old version still since were stuck with that for the IndustrialCraft and such. Only thing it needed was Vault and it worked fine with the R4 Version.
  14. Offline


    Oh yea, derp, forgot to mention I switched to Vault; my bad, I did this long ago when I was messing with source code for all my plugins
  15. Offline


    Works perfectly, thanks :)
  16. Offline


    I have a problem. When I start my server the config.yml file doesn't load. What should I do?
  17. Offline


    Start my server and se this error then installed this plugin. (1.2.3R0.1 Beta Build).

    01:28:02 [ALLVARLIG] Could not load 'plugins\ForeverALoad.jar' in folder 'plugin
    org.bukkit.plugin.UnknownDependencyException: Vault
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.<init>(
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
            at net.minecraft.server.MinecraftServer.init(
  18. Offline


    You need the dependency Vault, the plugin which you can get at:
    It supports all permissions/economy plugins which is very useful for plugin developers, which is why I switched over to it instead of trying to manually support each plugin myself :)

    What do you mean it doesn't load?
    1- Are the any errors posted in the console, if so post them
    2- By 'doesn't load' are you referring to rectangles in the config?
    3- Does debug mode give any more info/insight; if so, how?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
  19. Offline


    The config.yml file doesn't apear - it isn't created :/
  20. Offline


    Works fine for me, I deleted the folder, and on a restart it created the folder, with a config and hashmap inside. Perhaps re-download and try again? Im not sure what to suggest, I can't replicate your issue.
  21. Offline


    Any idea how I can change the slash command word? I run this mod and orebfuscator which also uses the /chunk command and the orebfuscator mod is the one taking the command.
  22. Offline


    The config file doesn't load for me, either. Thats probably because I use 1.1 (tekkit ;) ). Can you possibly upload older versions of this plugin?
    Edit: Here is the error I get:
    [SEVERE] Could not load 'plugins\ForeverALoad.jar' in folder 'plugins':
    org.bukkit.plugin.UnknownDependencyException: Vault
  23. Offline


    I downloaded the mod twice, didn't work either time, i've tried with the beta builds of R0.1 and R0.2 and the latest (#2083) of R0.3. It doesn't generate a folder or anything, but i get this in the console:

    [SEVERE] Could not load 'plugins\ForeverALoad.jar' in folder 'plugins'
    org.bukkit.plugin.UnknownDependencyException: Vault
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(
            at org.bukkit.craftbukkit.CraftServer.<init>(
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
            at net.minecraft.server.MinecraftServer.init(
  24. Offline


    You can change the command by editing the plugin.yml inside the jar file

    People getting the error:
    org.bukkit.plugin.UnknownDependencyException: Vault
    It's about as simple as the error states. It depends on the Vault plugin, so you will need to get that too, it does say this in the op, but I made it red just in case. This was posted a few posts up ago.
  25. Offline


    Plugin doesn't work in 1.2.3-R0.2 :-( When I add the chunk it write "[ForeverALoad] Stopped unloading of chunk at: 10, 24". But after relogin my redstone-construction is freezed.
  26. Offline


    1.2.3 R0.3 , latest Vault (1.2.13) installed (although it's giving me event/player/PlayerListener)

    Show Spoiler

    2012-04-01 22:27:12 [SEVERE] Error occurred while enabling ForeverALoad v1.1 (Is it up to date?)
    at com.bukkit.piedo_bear.foreveraload.ForeverALoad.setupPermissions(
    at com.bukkit.piedo_bear.foreveraload.ForeverALoad.onEnable(
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(
    at net.minecraft.server.MinecraftServer.t(
    at net.minecraft.server.MinecraftServer.a(
    at net.minecraft.server.MinecraftServer.init(
  27. Offline


    were can i find the download for bukkit 1.1? (ancient version)
  28. Offline


    If I selected a chunk, will it keep growing pumpkins, sugard cane, wheat, cacti, etc?
  29. Offline


    Since Piedo_bear said he won't update this plugin anymore I wrote my own plugin reimplementing the basic functionality. (github / download page)
    It requires WorldEdit.

    Dyon: The OP says wheat won't grow, I assume the same is true for the other plants
  30. Offline


    Thanks Nidan!! Your plugin works great! I am using Bukkit 1.2.5-R1 with world edit.
  31. Offline


    Can you create an alias for the command, the /chunk conflicts with another plugin

Share This Page