Skip to content

Commit

Permalink
Fix gotten milestones not resetting if per server milestones enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Dec 12, 2023
1 parent 7001d0f commit 4a88b10
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,14 @@ public void resetMilestoneCount() {
}

public void resetGottenMilestones() {
plugin.getUserManager().removeAllKeyValues("GottenMileStones", DataType.STRING);
plugin.getUserManager().removeAllKeyValues(getGottenMilestonesPath(), DataType.STRING);
}

public String getGottenMilestonesPath() {
if (plugin.getBungeeSettings().isPerServerMilestones()) {
return plugin.getBungeeSettings().getServerNameStorage() + "_" + "GottenMilestones";
}
return "GottenMileStones";
}

public void resetVoteShopLimit(String shopIdent) {
Expand Down

0 comments on commit 4a88b10

Please sign in to comment.