Skip to content

Commit b0e2a8f

Browse files
committed
Improve debug logs for SingleShareWriter
1 parent 307251f commit b0e2a8f

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/main/java/org/mvplugins/multiverse/inventories/handleshare/SingleShareWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ private void writeNewValueToProfile(PlayerProfile profile, T value, boolean save
7070
if (Objects.equals(profile.get(sharable), value)) {
7171
return;
7272
}
73+
Logging.finest("Writing %s value: %s for profile %s", sharable, value, profile);
7374
profile.set(sharable, value);
7475
if (save) {
7576
profileDataSource.updatePlayerData(profile);

src/main/java/org/mvplugins/multiverse/inventories/handleshare/SpawnChangeListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public SpawnChangeListener(MultiverseInventories inventories) {
3232
@EventHandler(priority = EventPriority.MONITOR)
3333
void onSpawnChange(PlayerSpawnChangeEvent event) {
3434
Player player = event.getPlayer();
35-
36-
Logging.fine("Respawn cause: %s", event.getCause());
37-
3835
if (event.getCause() == Cause.BED) {
3936
updatePlayerSpawn(player, findBedFromRespawnLocation(event.getNewSpawn()));
4037
return;

src/main/java/org/mvplugins/multiverse/inventories/profile/PlayerProfile.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,14 @@ public PlayerProfile clone() {
9393
public Map<Sharable, Object> getData() {
9494
return data;
9595
}
96+
97+
@Override
98+
public String toString() {
99+
return "PlayerProfile{" +
100+
"player=" + player.getName() +
101+
", containerType=" + containerType +
102+
", containerName='" + containerName + '\'' +
103+
", profileType=" + profileType +
104+
'}';
105+
}
96106
}

0 commit comments

Comments
 (0)