summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandbalance.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbalance.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
new file mode 100644
index 000000000..6789af570
--- /dev/null
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbalance.java
@@ -0,0 +1,23 @@
+package com.earth2me.essentials.commands;
+
+import org.bukkit.Server;
+import com.earth2me.essentials.Essentials;
+import com.earth2me.essentials.User;
+import com.earth2me.essentials.commands.EssentialsCommand;
+
+
+public class Commandbalance extends EssentialsCommand
+{
+ public Commandbalance()
+ {
+ super("balance");
+ }
+
+ @Override
+ public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception
+ {
+ user.sendMessage("ยง7Balance: $" + (args.length < 1 || !user.isAuthorized("essentials.balance.other")
+ ? user
+ : getPlayer(server, args, 0)).getMoney());
+ }
+}