Skip to content

Commit

Permalink
Change click bypass to require shift on vote URL
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Jun 18, 2024
1 parent 5efd564 commit c781413
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ public void onChest(Player player) {
public void onClick(ClickEvent event) {
VotingPluginUser user = plugin.getVotingPluginUserManager().getVotingPluginUser(event.getPlayer());
json = true;
if (event.getClick().equals(ClickType.LEFT)) {
if (event.getClick().equals(ClickType.SHIFT_LEFT)
|| event.getClick().equals(ClickType.SHIFT_RIGHT)) {
user.sendMessage(getChat(player, true));
} else {
user.sendMessage(getChat(player, false));
Expand Down

0 comments on commit c781413

Please sign in to comment.