mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
remove debug message
This commit is contained in:
1 parent
4e738f94c6
commit
d166e7c6ab
1 file changed
+1
-1
@@ -103,7 +103,6 @@ public class JSONUserManager implements UserManager<CarbonPlayerCommon> {
|
|||||||
@Override
|
@Override
|
||||||
public CompletableFuture<ComponentPlayerResult<CarbonPlayerCommon>> savePlayer(final CarbonPlayerCommon player) {
|
public CompletableFuture<ComponentPlayerResult<CarbonPlayerCommon>> savePlayer(final CarbonPlayerCommon player) {
|
||||||
return CompletableFuture.supplyAsync(() -> {
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
this.logger.info("Saving player data for [{}], [{}]", player.username(), player.uuid());
|
|
||||||
final Path userFile = this.userDirectory.resolve(player.uuid() + ".json");
|
final Path userFile = this.userDirectory.resolve(player.uuid() + ".json");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -124,6 +123,7 @@ public class JSONUserManager implements UserManager<CarbonPlayerCommon> {
|
|||||||
return new ComponentPlayerResult<>(player, text(String.format("Saving player data for [%s], [%s]",
|
return new ComponentPlayerResult<>(player, text(String.format("Saving player data for [%s], [%s]",
|
||||||
player.username(), player.uuid())));
|
player.username(), player.uuid())));
|
||||||
} catch (final IOException exception) {
|
} catch (final IOException exception) {
|
||||||
|
this.logger.error("Exception caught while saving data for player [{}]", player.username());
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
return new ComponentPlayerResult<>(null, text(exception.getMessage()));
|
return new ComponentPlayerResult<>(null, text(exception.getMessage()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user