BentoBox icon indicating copy to clipboard operation
BentoBox copied to clipboard

Spawn in the last location

Open BONNe opened this issue 3 years ago • 0 comments

Description

Is your feature request related to a problem?

Currently, BentoBox GameModes acts weirdly with the go command. It is very noticeable when you are switching between gamemodes, or visiting other islands, where the player always appears in the spawn point after switching.

Describe the solution you'd like us to implement.

A config (or flag) option for go command without parameters (default location), that will move the player to the last location where he was before leaving gamemode (or his island). It should include dimensions.

Example: Player A is on his BSkyBlock island in the nether. Then he switches to Boxed gamemode, and returns back with /island go command. The player should be in the last known location from BSkyBlock -> in the nether.

Player A is on his BSkyBlock island in the end. Then he visits (or warps to) another player island in BSkyBlock. Going back to his island with a default /island go (no parameters) should spawn the player in the end where he was.

Player A leaves his island protection range, and then switches gamemode (or moves to other islands), then go command should return him to the island spawn point location in the dimension.

Additional context

This cannot be implemented via InvSwitcher addon because of visiting (and warping to) other islands in the same gamemode.

It could be a separate addon if you do not want this feature inside the core plugin.

BONNe avatar Mar 24 '21 11:03 BONNe