Clear the player's home locations when resetting.

This commit is contained in:
Florian CUNY 2019-11-17 17:44:10 +01:00
parent dfb67db13f
commit 9782ea1ef9

View File

@ -126,6 +126,10 @@ public class IslandResetCommand extends ConfirmableCommand {
// Add a reset
getPlayers().addReset(getWorld(), user.getUniqueId());
// Reset the homes of the player
getPlayers().clearHomeLocations(getWorld(), user.getUniqueId());
// Create new island and then delete the old one
try {
Builder builder = NewIsland.builder()