diff --git a/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java b/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java index 9f13e194c..20e123132 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java @@ -2049,6 +2049,8 @@ public void execute(CommandSender sender, String[] args) { value = !plugin.getVoteReminding().getRemindersEnabled().get(p.getUniqueId()); } plugin.getVoteReminding().getRemindersEnabled().put(p.getUniqueId(), value); + plugin.getPlaceholders().onUpdate( + plugin.getVotingPluginUserManager().getVotingPluginUser(p.getUniqueId(), p.getName()), true); if (value) { sendMessage(sender, plugin.getConfigFile().getFormatCommandsVoteToggleRemindersEnabled()); diff --git a/VotingPlugin/src/com/bencodez/votingplugin/placeholders/PlaceHolders.java b/VotingPlugin/src/com/bencodez/votingplugin/placeholders/PlaceHolders.java index 72ff879db..65493324d 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/placeholders/PlaceHolders.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/placeholders/PlaceHolders.java @@ -286,6 +286,20 @@ public String placeholderRequest(VotingPluginUser user, String identifier) { } }.withDescription("Returns true/false if user has broadcast disabled").updateDataKey("DisableBroadcast")); + placeholders.add(new PlaceHolder("DisableReminders") { + + @Override + public String placeholderRequest(VotingPluginUser user, String identifier) { + if (plugin.getVoteReminding().getRemindersEnabled().containsKey(user.getJavaUUID())) { + if (!plugin.getVoteReminding().getRemindersEnabled().get(user.getJavaUUID()).booleanValue()) { + + return "True"; + } + } + return "False"; + } + }.withDescription("Returns true/false if user has reminders disabled")); + placeholders.add(new PlaceHolder("MilestoneCount") { @Override