9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

prevent warnings

This commit is contained in:
XiaoMoMi
2024-11-29 16:21:54 +08:00
parent 17e0806ad9
commit 9b192df037
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ public class GetItemCommand extends BukkitCommandFeature<CommandSender> {
} }
} }
handleFeedback(context, MessageConstants.COMMAND_ITEM_GET_SUCCESS, Component.text(amount), Component.text(id)); handleFeedback(context, MessageConstants.COMMAND_ITEM_GET_SUCCESS, Component.text(amount), Component.text(id));
} catch (NullPointerException e) { } catch (Exception e) {
handleFeedback(context, MessageConstants.COMMAND_ITEM_FAILURE_NOT_EXIST, Component.text(id)); handleFeedback(context, MessageConstants.COMMAND_ITEM_FAILURE_NOT_EXIST, Component.text(id));
} }
}); });

View File

@@ -86,7 +86,7 @@ public class GiveItemCommand extends BukkitCommandFeature<CommandSender> {
} }
} }
handleFeedback(context, MessageConstants.COMMAND_ITEM_GIVE_SUCCESS, Component.text(player.getName()), Component.text(amount), Component.text(id)); handleFeedback(context, MessageConstants.COMMAND_ITEM_GIVE_SUCCESS, Component.text(player.getName()), Component.text(amount), Component.text(id));
} catch (NullPointerException e) { } catch (Exception e) {
handleFeedback(context, MessageConstants.COMMAND_ITEM_FAILURE_NOT_EXIST, Component.text(id)); handleFeedback(context, MessageConstants.COMMAND_ITEM_FAILURE_NOT_EXIST, Component.text(id));
} }
}); });