mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 13:45:14 +01:00
Preventively save the player to the database when creating a new island
Related to 68873e033f
This commit is contained in:
parent
c3ca82e12a
commit
343ee51647
@ -122,7 +122,8 @@ public class NewIsland {
|
|||||||
plugin.logError("Failed to make island! Island could not be added to the grid.");
|
plugin.logError("Failed to make island! Island could not be added to the grid.");
|
||||||
return;
|
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)
|
// Clear any old home locations (they should be clear, but just in case)
|
||||||
plugin.getPlayers().clearHomeLocations(world, user.getUniqueId());
|
plugin.getPlayers().clearHomeLocations(world, user.getUniqueId());
|
||||||
|
Loading…
Reference in New Issue
Block a user