From e8bf487d746e63b1e705a78636dbf8f3ffb9c1dc Mon Sep 17 00:00:00 2001 From: BenCodez Date: Mon, 22 Jul 2024 20:26:30 -0400 Subject: [PATCH] Fix /voteshop (shop) not working --- .../src/com/bencodez/votingplugin/commands/CommandLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java b/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java index f0ccc8759..09a1bd027 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/commands/CommandLoader.java @@ -2251,7 +2251,7 @@ public void execute(CommandSender sender, String[] args) { placeholders.put("limit", "" + limit); if (user.removePoints(points, true)) { - plugin.getRewardHandler().giveReward(user, plugin.getGui().getData(), + plugin.getRewardHandler().giveReward(user, plugin.getShopFile().getData(), plugin.getShopFile().getShopIdentifierRewardsPath(identifier), new RewardOptions().setPlaceholders(placeholders));