We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e67686f commit 224e705Copy full SHA for 224e705
1 file changed
src/main/java/systems/kscott/randomspawnplus/commands/CommandWild.java
@@ -63,10 +63,10 @@ public void wild(CommandSender sender) {
63
return;
64
65
}
66
- if (plugin.getEconomy() != null && config.getInt("wild-cost") != 0) {
+ if (RandomSpawnPlus.getEconomy() != null && plugin.getConfig().getInt("wild-cost") != 0) {
67
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"));
+ if (RandomSpawnPlus.getEconomy().has(player, config.getInt("wild-cost"))) {
+ RandomSpawnPlus.getEconomy().withdrawPlayer(player, config.getInt("wild-cost"));
70
} else {
71
Chat.msg(player, plugin.getLang().getString("wild-no-money"));
72
0 commit comments