diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/User.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/User.java b/Essentials/src/com/earth2me/essentials/User.java index f1641406d..66a452541 100644 --- a/Essentials/src/com/earth2me/essentials/User.java +++ b/Essentials/src/com/earth2me/essentials/User.java @@ -7,7 +7,6 @@ import org.bukkit.*; import com.earth2me.essentials.commands.IEssentialsCommand; import net.minecraft.server.EntityHuman; import org.bukkit.command.CommandSender; -import org.bukkit.craftbukkit.inventory.CraftItemStack; import org.bukkit.entity.*; import org.bukkit.inventory.ItemStack; import org.yaml.snakeyaml.Yaml; @@ -337,6 +336,10 @@ public class User extends PlayerExtension implements Comparable<User>, IReplyTo public void charge(String cmd) throws Exception { + if (isAuthorized("essentials.nocommandcost.all") || + isAuthorized("essentials.nocommandcost."+cmd)) { + return; + } double mon = getMoney(); double cost = Essentials.getSettings().getCommandCost(cmd.startsWith("/") ? cmd.substring(1) : cmd); if (mon < cost && !isOp()) |