Remove debug logging.
This commit is contained in:
parent
3c415c6e28
commit
d13ec37e3b
|
@ -4,7 +4,6 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import world.bentobox.bentobox.BentoBox;
|
||||
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
||||
import world.bentobox.bentobox.api.commands.ConfirmableCommand;
|
||||
import world.bentobox.bentobox.api.commands.island.team.Invite.Type;
|
||||
|
@ -147,7 +146,6 @@ public class IslandTeamInviteAcceptCommand extends ConfirmableCommand {
|
|||
itc.removeInvite(playerUUID);
|
||||
// Get the player's island - may be null if the player has no island
|
||||
Set<Island> islands = getIslands().getIslands(getWorld(), playerUUID);
|
||||
BentoBox.getInstance().logDebug("Player has " + islands.size() + " islands in this world");
|
||||
// Get the team's island
|
||||
Island teamIsland = invite.getIsland();
|
||||
if (teamIsland == null) {
|
||||
|
@ -160,7 +158,6 @@ public class IslandTeamInviteAcceptCommand extends ConfirmableCommand {
|
|||
return;
|
||||
}
|
||||
// Remove player as owner of the old island
|
||||
BentoBox.getInstance().logDebug("Remove player as owner of any islands in the world");
|
||||
getIslands().removePlayer(getWorld(), playerUUID);
|
||||
// Remove money inventory etc. for leaving
|
||||
cleanPlayer(user);
|
||||
|
|
|
@ -248,8 +248,6 @@ public class IslandsManager {
|
|||
* @param involvedPlayer - player related to the island deletion, if any
|
||||
*/
|
||||
public void deleteIsland(@NonNull Island island, boolean removeBlocks, @Nullable UUID involvedPlayer) {
|
||||
BentoBox.getInstance()
|
||||
.logDebug("Request to delete island " + island.getUniqueId() + " in " + island.getWorld().getName());
|
||||
// Fire event
|
||||
IslandBaseEvent event = IslandEvent.builder().island(island).involvedPlayer(involvedPlayer)
|
||||
.reason(Reason.DELETE).build();
|
||||
|
|
|
@ -325,7 +325,6 @@ public class IslandCache {
|
|||
* @return list of islands player had or empty if none
|
||||
*/
|
||||
public Set<Island> removePlayer(@NonNull World world, @NonNull UUID uuid) {
|
||||
BentoBox.getInstance().logDebug("Island cache - remove Player " + world.getName());
|
||||
World w = Util.getWorld(world);
|
||||
Set<Island> islandSet = islandsByUUID.get(uuid);
|
||||
if (w == null || islandSet == null) {
|
||||
|
@ -348,8 +347,6 @@ public class IslandCache {
|
|||
it.remove();
|
||||
}
|
||||
}
|
||||
islandSet.forEach(i -> BentoBox.getInstance()
|
||||
.logDebug("Remaining island " + i.getUniqueId() + " in " + i.getWorld().getName()));
|
||||
return islandSet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue