Preventively save the player to the database when creating a new island

Related to 68873e033f
This commit is contained in:
Florian CUNY 2018-11-11 10:46:43 +01:00
parent c3ca82e12a
commit 343ee51647

View File

@ -122,7 +122,8 @@ public class NewIsland {
plugin.logError("Failed to make island! Island could not be added to the grid.");
return;
}
// TODO: Save the player so that if the server is reset weird things won't happen?
// Save the player so that if the server crashes weird things won't happen
plugin.getPlayers().save(user.getUniqueId());
// Clear any old home locations (they should be clear, but just in case)
plugin.getPlayers().clearHomeLocations(world, user.getUniqueId());