Skip to content

Commit

Permalink
Fixed changing subrank field resulting in an error while succeeding
Browse files Browse the repository at this point in the history
  • Loading branch information
svenar-nl committed Nov 30, 2021
1 parent 9650b48 commit c9d2589
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/nl/svenar/PowerRanks/Data/Users.java
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,6 @@ public boolean changeSubrankField(String playername, String subrankname, String
return false;
}

// TODO: check if works
if (field.toLowerCase().contains("prefix")) {
targetSubrank.setUsingPrefix(value);
}
Expand All @@ -1383,7 +1382,7 @@ public boolean changeSubrankField(String playername, String subrankname, String
targetSubrank.setUsingPermissions(value);
}

return false;
return true;
}

public List<PRPermission> getPlayerPermissions(String playername) {
Expand Down

0 comments on commit c9d2589

Please sign in to comment.