1
mirror of https://github.com/carm-outsource/TimeReward.git synced 2026-06-04 15:28:16 +08:00

添加变量显示

This commit is contained in:
2022-02-28 18:08:14 +08:00
parent e7f2b91af3
commit 95251ce02d
5 changed files with 119 additions and 2 deletions
@@ -73,6 +73,10 @@ public class RewardManager {
return new HashMap<>(getRewardsMap());
}
public RewardContents getReward(String rewardID) {
return getRewardsMap().get(rewardID);
}
protected HashMap<String, RewardContents> getRewardsMap() {
return PluginConfig.REWARDS.getOptional().orElse(new HashMap<>());
}