Skip to content

Commit

Permalink
Preventively save the player to the database when creating a new island
Browse files Browse the repository at this point in the history
Related to 68873e0
  • Loading branch information
Poslovitch committed Nov 11, 2018
1 parent c3ca82e commit 343ee51
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public void 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());
Expand Down

0 comments on commit 343ee51

Please sign in to comment.