Correctly charge for the use of commands.

We now first test, if the user could pay it, do the stuff and then charge him. If the command throws an exception, the user will not be charged.
This commit is contained in:
snowleo 2011-08-27 23:14:49 +02:00
parent 610a713997
commit 6427a93d14
66 changed files with 40 additions and 347 deletions

View file

@ -17,7 +17,6 @@ public class Commandantioch extends EssentialsCommand
@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
{
charge(user);
ess.broadcastMessage(user.getName(), "...lobbest thou thy Holy Hand Grenade of Antioch towards thy foe,");
ess.broadcastMessage(user.getName(), "who being naughty in My sight, shall snuff it.");