mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-28 02:00:10 +00:00
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:
parent
610a713997
commit
6427a93d14
66 changed files with 40 additions and 347 deletions
|
@ -141,7 +141,6 @@ public class Commandkit extends EssentialsCommand
|
|||
}
|
||||
try
|
||||
{
|
||||
charge(user);
|
||||
charge.charge(user);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue