From 5efd5646f25c41716ef93d7e9786dad7c6577d99 Mon Sep 17 00:00:00 2001
From: BenCodez <benbergen12@gmail.com>
Date: Mon, 17 Jun 2024 16:16:23 -0400
Subject: [PATCH] Changes to vote url GUI

---
 .../bencodez/votingplugin/commands/gui/player/VoteURL.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/VotingPlugin/src/com/bencodez/votingplugin/commands/gui/player/VoteURL.java b/VotingPlugin/src/com/bencodez/votingplugin/commands/gui/player/VoteURL.java
index ad76a46c4..6cbbfe56e 100644
--- a/VotingPlugin/src/com/bencodez/votingplugin/commands/gui/player/VoteURL.java
+++ b/VotingPlugin/src/com/bencodez/votingplugin/commands/gui/player/VoteURL.java
@@ -55,7 +55,7 @@ public ArrayList<String> getChat(CommandSender sender) {
 		return getChat(sender, false);
 	}
 
-	public ArrayList<String> getChat(CommandSender sender, boolean bypassPermissionCheck) {
+	public ArrayList<String> getChat(CommandSender sender, boolean bypassCanVote) {
 		ArrayList<String> sites = new ArrayList<String>();
 
 		List<String> title = plugin.getConfigFile().getFormatCommandsVoteText();
@@ -66,10 +66,10 @@ public ArrayList<String> getChat(CommandSender sender, boolean bypassPermissionC
 			int counter = 0;
 			for (VoteSite voteSite : plugin.getVoteSitesEnabled()) {
 				if (!voteSite.isHidden()) {
-					if (voteSite.getPermissionToView().isEmpty() || bypassPermissionCheck
+					if (voteSite.getPermissionToView().isEmpty()
 							|| sender.hasPermission(voteSite.getPermissionToView())) {
 						if (!plugin.getConfigFile().isFormatCommandsVoteOnlyShowSitesToVote()
-								|| user.canVoteSite(voteSite)) {
+								|| user.canVoteSite(voteSite) || bypassCanVote) {
 							counter++;
 							String voteURL = voteSite.getVoteURL(json);
 							MessageBuilder message = new MessageBuilder(