Update IslandsManager.java

Removes line that removes player from cache. 

They should remain in the cache.
This commit is contained in:
tastybento 2023-10-29 15:53:42 -07:00 committed by GitHub
parent 6f1cdca3b4
commit 1cf56606b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -1520,8 +1520,6 @@ public class IslandsManager {
*/
public void setOwner(User user, UUID targetUUID, Island island) {
islandCache.setOwner(island, targetUUID);
// Remove the old owner from the island to clear cache
plugin.getIslands().removePlayer(island, user.getUniqueId());
// Set old owner as sub-owner on island.
island.setRank(user, RanksManager.SUB_OWNER_RANK);