-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Towny more resiliant to errors which come from having no Economy…
… present on the server. (#7127) * Make Towny more resiliant to errors which come from having no Economy present on the server. Alter ConfirmationTransaction to no longer take in an Account in the constructor, instead it takes in a TownyObject, which will resolve an account. This prevents errors when non-Economy-enabled servers attempt to create a Confirmation with a cost set on it. Make TownyEconomyHandler#getFormattedBalance able to handle returning a formatted balance when the Economy is not active. Add prettyMoney method to BaseCommand, use it throughout the command classes to make things look cleaner. * Swap TownyObject for EconomyHandler
- Loading branch information
Showing
10 changed files
with
138 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.