Skip to content

Commit

Permalink
fix - resolve remaining issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisVieira committed Feb 27, 2024
1 parent e435704 commit abf3b46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public TestGetExerienceCommand() {
}

private void runCommand(Player player, CommandArguments args) {
if (args.get(0) == null) {
if (args.get("skillCategoryID") == null) {
player.sendMessage(
ColorParser.of("Provide a value after the command to indicate skill category.")
.parseLegacy() // Parse legacy color codes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public TestSetExerienceCommand() {
}

private void runCommand(Player player, CommandArguments args) {
if (args.get(0) == null) {
if (args.get("skillCategoryID") == null) {
player.sendMessage(
ColorParser.of("Provide a value after the command to indicate skill category.")
.parseLegacy() // Parse legacy color codes
.build()
);
}
if (args.get(1) == null) {
if (args.get("Experience") == null) {
player.sendMessage(
ColorParser.of("Provide a value after the skill category to indicate experience amount.")
.parseLegacy() // Parse legacy color codes
Expand Down

0 comments on commit abf3b46

Please sign in to comment.