Skip to content

Commit 2143369

Browse files
committed
Log world change sharehandle time taken
1 parent 55b9325 commit 2143369

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,10 @@ void playerChangedWorld(PlayerChangedWorldEvent event) {
258258
Logging.fine("The from or to world is not managed by Multiverse-Core!");
259259
}
260260

261+
long startTime = System.nanoTime();
261262
new WorldChangeShareHandler(this.inventories, player, fromWorld.getName(), toWorld.getName()).handleSharing();
262263
profileDataSource.updateLastWorld(player.getUniqueId(), toWorld.getName());
264+
Logging.finest("WorldChangeShareHandler took " + (System.nanoTime() - startTime) / 1000000 + " ms.");
263265
}
264266

265267
/**

0 commit comments

Comments
 (0)