Skip to content

Commit 224e705

Browse files
committed
Fix /wild command
1 parent e67686f commit 224e705

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/systems/kscott/randomspawnplus/commands/CommandWild.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public void wild(CommandSender sender) {
6363
return;
6464

6565
}
66-
if (plugin.getEconomy() != null && config.getInt("wild-cost") != 0) {
66+
if (RandomSpawnPlus.getEconomy() != null && plugin.getConfig().getInt("wild-cost") != 0) {
6767
if (!player.hasPermission("randomspawnplus.wild.bypasscost")) {
68-
if (plugin.getEconomy().has(player, config.getInt("wild-cost"))) {
69-
plugin.getEconomy().withdrawPlayer(player, config.getInt("wild-cost"));
68+
if (RandomSpawnPlus.getEconomy().has(player, config.getInt("wild-cost"))) {
69+
RandomSpawnPlus.getEconomy().withdrawPlayer(player, config.getInt("wild-cost"));
7070
} else {
7171
Chat.msg(player, plugin.getLang().getString("wild-no-money"));
7272
return;

0 commit comments

Comments
 (0)