Skip to content

Commit

Permalink
fix - make changes according to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisVieira committed Feb 27, 2024
1 parent d311f04 commit e435704
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void runCommand(Player player, CommandArguments args) {
return;
}
// TODO Make Async
float dbReturnValue = DatabaseQueries.getSkillCategoryExperienceFloat(player, (Integer) args.get(0));
float dbReturnValue = DatabaseQueries.getSkillCategoryExperienceFloat(player, (Integer) args.get("skillCategoryID"));
String returnString =
"Player with ID " +
player.getUniqueId() +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ private void runCommand(Player player, CommandArguments args) {
return;
}
// TODO Make Async
DatabaseQueries.saveSkillCategoryExperience(player, (Integer) args.get(0), (float) args.get(1));
DatabaseQueries.saveSkillCategoryExperience(player, (Integer) args.get("skillCategoryID"), (float) args.get("Experience"));
String returnString =
"Player with ID " +
player.getUniqueId() +
" has had an experience value of " +
args.get(1) +
args.get("Experience") +
" set in skill category " +
args.get(0) +
args.get("skillCategoryID") +
".";
player.sendMessage(
ColorParser.of(returnString)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Database Settings
db:
type: "mariadb" # Available types: "hsqldb", "h2", "mysql", "mariadb"
type: "mariadb" # Available types: "mysql", "mariadb"
prefix: "alathra_skills_" # The table prefix
host: "127.0.0.1"
port: 3306
Expand Down

0 comments on commit e435704

Please sign in to comment.