diff --git a/VotingPlugin/pom.xml b/VotingPlugin/pom.xml index f2e257703..b3aaeefd2 100644 --- a/VotingPlugin/pom.xml +++ b/VotingPlugin/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.bencodez ${version.art} - 6.17.1 + 6.17.2 jar VotingPlugin @@ -196,7 +196,7 @@ copy-resources - ${user.home}/Documents/Test Server/plugins + ${user.home}/Documents/Test_Server/plugins ${basedir}/target 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 831f0ae11..fd1ca6c65 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/commands/gui/player/VoteURL.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/commands/gui/player/VoteURL.java @@ -157,8 +157,8 @@ public void onBook(Player player) { for (VoteSite site : plugin.getVoteSitesEnabled()) { if (!site.isHidden()) { if (site.getPermissionToView().isEmpty() || player.hasPermission(site.getPermissionToView())) { - Layout layout = new Layout(plugin.getGui().getBookVoteURLBookGUILayout()).addPlaceholder("sitename", - site.getDisplayName()); + Layout layout = new Layout(plugin.getGui().getBookVoteURLBookGUILayout()) + .addPlaceholder("sitename", site.getDisplayName()).addPlaceholder("num", "" + i); String text = plugin.getGui().getBookVoteURLBookGUIAlreadyVotedText(); ChatColor color = ChatColor.valueOf(plugin.getGui().getBookVoteURLBookGUIAlreadyVotedColor()); if (user.canVoteSite(site)) { @@ -167,7 +167,6 @@ public void onBook(Player player) { } String url = PlaceholderUtils.replacePlaceHolder(PlaceholderUtils.replacePlaceHolder( site.getVoteURLJsonStrip(), "player", user.getPlayerName()), "num", "" + i); - layout.replaceTextComponent("[num]", BookUtil.TextBuilder.of("" + i).build()); layout.replaceTextComponent("[UrlText]", BookUtil.TextBuilder.of(text).color(color).onClick(BookUtil.ClickAction.openUrl(url)) .onHover(BookUtil.HoverAction.showText(url)).build());