ChunkUp - Chunkloader
ChunkUp - Keep those chunks up!
Overview
This plugin allows you to select chunks and keep them loaded, also when no player is near. This can be useful for e.g. large redstone circuits, minecart transportation systems or commandblocks. *Yay* :D
That means exactly?
There is still more! If you have a loooong railway, you could immagine how long it would take to mark every single chunk on the way by hand, wouldn't you? That's an absolutely no-go. And thats why there is a command to follow you while travelling around! So you could sit in your minecart, go all the way in minutes and relax. :) But there's not just the possibility to keep those marked chunks loaded. You will also own them, which means your chunks belong to you and nobody can unmark them (unless they've got the right permissions... :/). And when somebody else tries to own you chunk, don't be afraid. They will co-own this chunk, to guarantee it will be kept loaded. :)
Commands
/chunkup help - Gives a short overview to the available commands
/chunkup info - Shows you basic informations about the chunk you're in
/chunkup list - Shows you a list of all marked chunks
/chunkup mark [description] - Marks the chunk you're in and adds an optional description
/chunkup follow mark|unmark [description] - Follows the player and marks all chunks he travels through ("description" works only using "mark")
/chunkup escape - Stops chasing the player
/chunkup unmark - Unmarks the chunks you're in
/chunkup unmarkall [player] - Unmarks all chunks of the player using it or of the given player
/chunkup get|set ignoreInterval|refreshTime|altChunkLoader|owners|info [value] - Shows/changes the named plugin settings; Check out "Some further description" to get some hints on this settings
Alias for "/chunkup" is "/cu"
Some further description
The "description" argument is optional and gets used to group greater areas of chunks together. At the moment no features which use this value are implemented, it's just used to give the players a better overview. In a future release I'll add some management functions.
"ignoreInterval" is used to skip some PlayerMovementEvents, which are used to follow the player. This makes the processing of chunks faster, while the player is chased. It's standart value is 10, which should be enough to speed the plugin up a little, while maintaining full functionality. Greater values can speed up the plugin, but you risk to miss some chunks, if you travel through them fast.
"refreshTime" tells the server how many ticks can go by until the plugin reloads marked chunks. A server running on normal speed should have around 20 ticks per second, while the standart value of "refreshTime" is set to 50. This means chunks are reloaded every 2,5 seconds. The standart value is set this low, to guarantee full functionality with most the servers. It is highly recommended to fine tune this value by your own and post suggestions for other working values.
"altChunkLoader" is a setting to toggle event based chunk loading. This makes the plugin much more efficient. As long as you don't have dozens of players moving around while keeping up dozens of chunks, it is highly recommended to use this way to keep your chunks loaded. To toggle it, use the [value] argument with true/false. Since version 1.2.0 this feature is enabled by default.
"owners" is a setting to determine if the owner system is used or not. If it is enabled, only the player who marked a chunk or everyone with the "chunkup.unmarkall" permission can unmark it. If it is disabled, marked chunks will still have their owners, but everybody with the "chunkup.unmarkall.own" permission can remove all chunks. Owners are enabled by default.
Permission nodes
chunkup.*
chunkup.help
chunkup.info
chunkup.list
chunkup.mark
chunkup.follow
chunkup.escape
chunkup.unmark
chunkup.unmarkall
chunkup.unmarkall.own
chunkup.set
chunkup.get
Recent changes
- Added Tab completion support for all commands!
Current work in progress
- Adding max chunks limit for players
Latest update 07. April 2016
Compatibility
The plugin was tested with PaperSpigot and works also with Bukkit. It doesn't work with Spigot, because Spigot blocks any attempt to load chunks out of range from players.
Other
This plugin was compiled using Java 1.8.
Keep in mind, that this plugin might impact on your server performance, depending on how many chunks you want to stay loaded. :/
The source code of this plugin is available on Github (see repo link). Also any suggestions and feedback from the community are welcome! And one last thing: I'm a native german, so I apologize for my speaking/spelling errors.
If you like my work, feel free do donate :)
An Internal error occured while attepting to perform this command. How i can fix that ????
PLS Help :(
I'm really sorry about it, but I have to tell you that I don't have the time to follow this project anymore :/ Since the source is open and available on the linked github repo, feel free to create a fork or take some pieces of the code as inspiration for a newly written plugin (code might be a bit messy and latest 2 commits aren't working).
Again, I'm sorry I have to tell you this, but I have plenty of things to do in real life... :/
There are no errors, but i doesn't seems to be working in 1.10.2
uma bosta
I use your plugin in my End world to keep the Dragon loaded but sometimes the Dragon is freezed, we must walk 6-10 steps towards him to unfreeze him.
@harryisbeast
Which server and what version were you using?
I'm tying to load my command blocks when I'm outside the chunk but it's not working, even though I marked the chunks with the command blocks.
@skeddles
Yes, it means exactly that :) Why do you think that isn't clear? You mark the chunk to stay loaded.
@skeddles
As far as I know yes ;)
Does "mark" mean to have that chunk always loaded? It's not very clear.
@Lukas_the_Noob
Kein Problem :) Solange ich die Infos noch kriege, ist das ja kein Problem ;)
Also wenn du craftbukkit verwendest, sollte es eigentlich keine Probleme geben... Ich werde mir das, sobald ich kann, Mal ansehen! Leider fällt es mir in letzter Zeit etwas schwer, viel Aufmerksamkeit auf das Plugin zu richten, deswegen könnte es etwas dauern, bis ich einen Lösungsvorschlag habe :/ Die Arbeit lässt grüßen...
Vor nächstem Wochenende werde ich also eher nicht dazu kommen, mir groß was auszudenken :/
Inzwischen kann ich dir nur empfehlen, auf gut Glück Andere (bzw. neuere) builds auszuprobieren. Vielleicht ist es ja wirklich nur ein Bug in genau dieser Version... (Die Hoffnung stirbt eben zuletzt ;) ) Ansonsten könntest du auch Mal PaperSpigot ausprobieren, sofern die schon ein 1.9.4 build anbieten, das läuft bei mir eig immer recht stabil und zuverlässig (und macht nicht die selben Probleme wie Spigot ;) ).
Ich werde mich auf jeden Fall melden, sobald ich mehr weiß! :)
Und danke für das Kompliment ;)
Grüße, Ligachamp
@Ligachamp
Hallo und vielen Dank für die Antwort :)
Sorry dass ich die Information nicht hinzugefügt habe. Ich nutze die aktuellste Craftbukkit Version "craftbukkit-latest.jar", zu finden hier: https://tcpr.ca/downloads/craftbukkit
Aber die wird sowieso so gut wie jeden Tag aktualisiert, daher ist meine ca. eine Woche alt :P Jedenfalls basiert diese auf der Minecraftversion 1.9.4. Diese ist auch die einzige, auf welcher ich das Plugin probiert habe.
Ich hoffe mein Feedback hilft dir weiter, denn wie gesagt, ich finde die Handhabung eigentlich super ;)
Liebe Grüße, Lukas
PS: Respekt dass du dich an so ein Plugin heranwagst ;)
@Lukas_the_Noob
Hallo Lukas,
klar ist das kein Problem für mich, wenn du in Deutsch schreibst ;)
Es freut mich, dass dir das Plugin so gut gefällt! :) Deswegen bin ich auch bemüht dir so gut es geht zu helfen ;)
Du bist, wie du vielleicht in den vorherigen Kommentaren gelesen hast, leider nicht der erste mit diesem Problem. :/ Was für einen Minecraftserver verwendest du denn? Ich frage, weil bei den Anderen für die Probleme meistens Spigot verantwortlich war.
Sofern du nicht Spigot verwendest, dürfte das Problem wirklich am Plugin liegen... Es wäre auch möglich dass es seit 1.9.4 Kompatibilitätsprobleme gibt. Wobei letzteres mich wundern würde, da ich hoffe, dass Andere mit Problemen sich ebenfalls an mich wenden würden ;)
Hast du das Plugin auch schon mit Versionen vor 1.9.4 benutzt, bzw. funktionierte es da wie es sollte?
Grüße,
Ligachamp
@Ligachamp
Hi :)
Ich hoffe es macht nichts wenn ich in Deutsch schreibe, weil laut deiner Beschreibung ist deine Muttersprache Deutsch ;)
Ich versuche nun seit Tagen dein Plugin auszuprobieren, vergeblich. Ich habe eine Minecartstrecke welche über ca. 20 Chunks läuft. Das Minecart fährt alleine ohne "Fahrer" und sollte nach gut 90 Sekunden wieder zum Startpunkt zurückkehren. Das tut es aber nicht :( Hier mal eine kurze Beschreibung wie ich vorgehe:
1. In die ingame "Chatleiste" gebe ich ein: /chunkup follow mark Die Meldung "I'm following you now" erscheint. 2. Ich gehe alle meine Chunks, welche ich geladen haben will, ab. 3. In die ingame "Chatleise" gebe ich nun ein: /chunkup escape Die Meldung "xx chunks marked by me" und "I've lost your trace" 4. Zur Überprüfung gebe ich nun "/chunkup list" ein und bekomme die Liste meiner markierten Chunks.
Danach sollte das leere Minecart doch wieder zurückkommen, oder?
Auf der Strecke befinden sich zwar einige Red-Stone Schaltungen, welche Weichen etc. steuern, aber wenn diese ebenfalls mit dem Plugin markiert wurden, sollte dies kein Hindernis darstellen, oder?
Ich bin echt am verzweifeln, da ich die Bedienung des Plugins eigentlich sehr mag, würde es nur funktionieren bei mir :(
Wäre dir sehr dankbar über eine Antwort.
Meine Java Version: 1.8.0_91 64bit Minecraft: 1.9.4
Glg. Lukas
@nuggs121
This sounds really strange to me... Did you make sure all chunks on the railroad were marked? It could be that if you were travelling "too fast", the plugin didn't recognize all the chunks you went through. You can try to solve this by lowering the "ignoreInterval" value (try it with values below 10, which is the default value) and mark the whole railroad again (using follow mark). If you arrive at the and and the plugin tells you there were some newly marked chunks, this "error" should be fixed, otherwise I'd have to make some further tests ans look for possible solutions... :/
I hope this helped you! :)
EDIT: I just realized you are using plain spigot. If they didn't change their chunkload/unload mechanisms in the recent versions to work like those in bukkit, I'm afraid to tell you the plugin won't work as intended (look into the description) :/ You can try out PaperSpigot, which is basically Spigot, but fixes mechanics needed by some plugins. ATM I don't know if they already released a 1.9.2 build, but you should have a look at it anyways.
@Ligachamp I wait 5 to 10 minutes after launching a hoppercart and then i go to the other end of my track, and it still hasnt arrived. after a few seconds it show up on the track still traveling. It should have made it to the end of the track well within the 5 minutes i waited for it. The cart doesnt get to the end of the track unless i go there. Im using latest v1.5.1 on spigot 1.9.2
@nuggs121
Hi,
how do you mean, it doesn't make it to the other end without warping? Without you, warping yourself there, or the minecart, showing "warp behaviour"? Which version were you using?
I have a rail system 280 blocks long and the hoppercart doesn't make it to the other end without warping to the other end. I have all the 22 chunks loaded into CU.
@AJThomas123
I'm happy to hear you like this plugin! :D
Now looking at the problems you have encountered:
With craftbukkit there should be no problem using the default (efficient) chunk load algorithm. I believe that the minecart problem was referred to the missing event priority in my code, which caused the chunks to unload and instantly reload... Anyways, this should be fixed now. :)
The issue with using the commands is also fixed now. You were using tab complete, right? I messed something up with the case insensitive command checks... Now it should work just fine again :)
The possible values for "get" and "set" are explained in the plugin description, so you just have to scoll upwards till you reach this section ;) But as said before, you shouldn't need to change much there :)
I would be happy if you could tell me if the minecart issue still remains or if it's gone. :)
At last, thank you for your feedback! :)
@AJThomas123
I ask because /cu get refreshTime returns "I don't know that setting!"