|
|
@ -46,9 +46,10 @@ public class EnderChestCommand extends CommandBase implements TabCompletable {
|
|
|
|
"/enderchest <player> [version_uuid]").ifPresent(player::sendMessage);
|
|
|
|
"/enderchest <player> [version_uuid]").ifPresent(player::sendMessage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// View latest user data
|
|
|
|
// View (and edit) the latest user data
|
|
|
|
plugin.getDatabase().getCurrentUserData(user).thenAccept(optionalData -> optionalData.ifPresentOrElse(
|
|
|
|
plugin.getDatabase().getCurrentUserData(user).thenAccept(optionalData -> optionalData.ifPresentOrElse(
|
|
|
|
versionedUserData -> showEnderChestMenu(player, versionedUserData, user, true),
|
|
|
|
versionedUserData -> showEnderChestMenu(player, versionedUserData, user,
|
|
|
|
|
|
|
|
player.hasPermission(Permission.COMMAND_ENDER_CHEST_EDIT.node)),
|
|
|
|
() -> plugin.getLocales().getLocale("error_no_data_to_display")
|
|
|
|
() -> plugin.getLocales().getLocale("error_no_data_to_display")
|
|
|
|
.ifPresent(player::sendMessage)));
|
|
|
|
.ifPresent(player::sendMessage)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|