Fixed infinitely claiming quests

This commit is contained in:
Teriuihi 2022-06-05 03:46:50 +02:00
parent e074d939a8
commit 96512d8907

View File

@ -41,6 +41,7 @@ public class CommandGetReward extends SubCommand {
}
for (String command : dailyQuest.getRewardCommand())
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), command.replaceAll("<player>", commandSender.getName()));
dailyQuest.setRewardReceived(true);
player.sendMiniMessage(MessagesConfig.REWARD_SENT, null);
return true;
}