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

@ -141,7 +141,6 @@ public class Commandkit extends EssentialsCommand
}
try
{
charge(user);
charge.charge(user);
}
catch (Exception ex)