From c9d2589c2c06f4fd81ff36a974b078d8d0d8a32c Mon Sep 17 00:00:00 2001 From: Sven Arends Date: Tue, 30 Nov 2021 09:21:39 +0100 Subject: [PATCH] Fixed changing subrank field resulting in an error while succeeding --- src/main/java/nl/svenar/PowerRanks/Data/Users.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/nl/svenar/PowerRanks/Data/Users.java b/src/main/java/nl/svenar/PowerRanks/Data/Users.java index 5e34d84a..867f0f48 100644 --- a/src/main/java/nl/svenar/PowerRanks/Data/Users.java +++ b/src/main/java/nl/svenar/PowerRanks/Data/Users.java @@ -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); } @@ -1383,7 +1382,7 @@ public boolean changeSubrankField(String playername, String subrankname, String targetSubrank.setUsingPermissions(value); } - return false; + return true; } public List getPlayerPermissions(String playername) {