Closed killme closed 6 years ago
Additionally, it should probably go on to the next location, as there can be multiple locations in the history.
Is there no better way to ensure a world is loaded? Not that I am aware of. The world object does not expose anything like
Entity#isValid
.Additionally, it should probably go on to the next location, as there can be multiple locations in the history. Will do.
This change seems to work just fine on my staging server. (Apart from the requested change)
I originally said not to just go to the next one, as that’s probably not what’s wanted.
Eg, if a player dies and uses it to go back, they don’t want it to take them to the prior location if the world is now unloaded.
Would you want it to report a special message in the case the world is unloaded? Because than I will need to make a few more changes.
Made it non-looping.
If there is no location, just make it say the location is unavailable etc. What does it currently do?
It just says something along the lines of "no more locations available". I could modify the command to peek if the next location will be valid.
Is there no better way to ensure a world is loaded? And has this been tested?