Skip to content

Commit

Permalink
Reformat code to align with code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Sep 28, 2024
1 parent 0a20388 commit dfd6715
Show file tree
Hide file tree
Showing 343 changed files with 5,625 additions and 2,970 deletions.
85 changes: 48 additions & 37 deletions .changelog/0.1.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

## Summary

With TNE Beta 1.2, TNE is going back to its roots. This means providing you, the server owner, with the economy
experience that you deserve, and the features and ease-of-use that you expect. The TNE experience has been slacking, and
for that I apologize, but it's time to kick TNE back into shape and get your economy solution back to Platinum Standard.
With this release I have implemented the majority of the ease-of-use features that you, the owners and users, have
With TNE Beta 1.2, TNE is going back to its roots. This means providing you, the server owner, with
the economy
experience that you deserve, and the features and ease-of-use that you expect. The TNE experience
has been slacking, and
for that I apologize, but it's time to kick TNE back into shape and get your economy solution back
to Platinum Standard.
With this release I have implemented the majority of the ease-of-use features that you, the owners
and users, have
requested. Start experiencing the ultimate economy experience!

## Features
Expand All @@ -14,57 +18,64 @@ With Beta 1.2 comes some feature additions.

- Added support for Geyser players.
- Added support for MiniMessage
- The good news for TNE users is this was already the general format being used for message configurations, but now it
has additional functionality. https://docs.adventure.kyori.net/minimessage/format.html
- The good news for TNE users is this was already the general format being used for message
configurations, but now it
has additional functionality. https://docs.adventure.kyori.net/minimessage/format.html
- Menus Galore!
- Added a currency editor menu
- Added a MyBAL menu
- Users may do everything from convert their currency, to make notes, to pay other players from this menu!
- Added a MySERVER menu, to help admins modify TNE settings
- Added a currency editor menu
- Added a MyBAL menu
- Users may do everything from convert their currency, to make notes, to pay other players
from this menu!
- Added a MySERVER menu, to help admins modify TNE settings
- Currency System changes
- Added a new "Mixed" currency type.
- This allows your users to have a virtual currency, but also be able to withdraw it into items
- We now support offline payment using ender chests for item currencies!
- Currencies are no longer case-sensitive(not sure why they were in the first place.)
- Completely revamped the currency conversion system.
- Say goodbye to tiers, say hello to denominations!
- Denominations don't require a major/minor notation. This means you can make any form
of denomination from 0.05 to 1.05 to 50!
- Added a new "Mixed" currency type.
- This allows your users to have a virtual currency, but also be able to withdraw it into
items
- We now support offline payment using ender chests for item currencies!
- Currencies are no longer case-sensitive(not sure why they were in the first place.)
- Completely revamped the currency conversion system.
- Say goodbye to tiers, say hello to denominations!
- Denominations don't require a major/minor notation. This means you can make any form
of denomination from 0.05 to 1.05 to 50!
- Added GroupRealms configuration setting to config.yml
- Setting this to true would make world, world_nether and world_the_end share balances automatically.
- Setting this to true would make world, world_nether and world_the_end share balances
automatically.

## Internal

In Beta 1.2 a lot of the TNE internals have been rewritten from the ground up. This will help facilitate future updates
In Beta 1.2 a lot of the TNE internals have been rewritten from the ground up. This will help
facilitate future updates
and help with making TNE even more efficient.

Specific Internal Changes:

- Rewrote TNE entirely from scratch
- This rewrite was done to allow for easily added support to other platforms such as
Sponge and Minestom
- This rewrite was done to allow for easily added support to other platforms such as
Sponge and Minestom
- Transaction System changes
- The transaction system now has support for taxation built-in. This will allow
modules/third-party plugins to utilize it.
- The transaction system now has support for taxation built-in. This will allow
modules/third-party plugins to utilize it.
- Command System has been switched to Lamp
- TNE now uses "Regions" instead of "Worlds."
- This is for future changes as the term "worlds" is too restrictive, in my opinion.
- This is for future changes as the term "worlds" is too restrictive, in my opinion.
- Made all data-storable objects able to be serialized into JSON
- This was done for the RESTAPI for TNE that is currently in progress.
- This will allow for third-party applications to interact with TNE such as web-based
and mobile device applications.
- This was done for the RESTAPI for TNE that is currently in progress.
- This will allow for third-party applications to interact with TNE such as web-based
and mobile device applications.
- Account Types
- TNE Accounts have now been separated into different types.
- Towny Types
- Town
- Nation
- Faction Type
- NonPlayer
- Shared Accounts
- Allows the ability to add members to an account.
- TNE Accounts have now been separated into different types.
- Towny Types
- Town
- Nation
- Faction Type
- NonPlayer
- Shared Accounts
- Allows the ability to add members to an account.

## Removed

Some TNE features have been removed in this release in order to help keep TNE innovating and evolving.
Some TNE features have been removed in this release in order to help keep TNE innovating and
evolving.

- Removed commands.yml
- Removed the UUID configuration from config.yml. Use online mode or a proxy.
Expand Down
9 changes: 6 additions & 3 deletions .changelog/0.1.2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

- Fixed issue where percent tax wasn't applied to payer for /pay(courtesy of pauloantoniassi)
- Fixed issue where velocity wasn't correctly handling syncing(reported by batatinha)
- Fixed issue where item currencies wouldn't send sync message to bungee/velocity if the player was offline
- Fixed issue where item currencies wouldn't send sync message to bungee/velocity if the player was
offline
- Added /balance, /bal, /balo and /balanceother shorthands
- Clarified parameters for /money balance in messages.yml.
- Added feature to create account on other servers if doesn't exist when getting sync calls through Bungee/Velocity.(requested by DonJone)
- Added feature to create account on other servers if doesn't exist when getting sync calls through
Bungee/Velocity.(requested by DonJone)
- Added xConomy Converter for conversion module(requested by AdrianIsEpic24)
- Internal changes
- Exposed some variables of the SQLConnector for modules to use SQL connections easier with different credentials.
- Exposed some variables of the SQLConnector for modules to use SQL connections easier with
different credentials.
- Fixed critical dupe glitch(reported by Wextra)
34 changes: 19 additions & 15 deletions .changelog/0.1.2.2.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# 0.1.2.2

- Added Core.Commands.LimitCurrency config to config.yml
- This allows server owners to limit currency interactions using commands such as /money pay, /money give based on permission nodes when set to true.
- This allows server owners to limit currency interactions using commands such as /money pay,
/money give based on permission nodes when set to true.
- Added permission nodes to block actions for players for specific currencies.
- tne.money.balance.insert currency identifier here - controls usage of /money balance
- tne.money.convert.to.insert currency identifier here - controls usage of /money convert's to parameter
- tne.money.convert.from.insert currency identifier here - controls usage of /money convert's from parameter
- tne.money.deposit.insert currency identifier here - controls usage of /money deposit
- tne.money.give.insert currency identifier here - controls usage of /money give
- tne.money.note.insert currency identifier here - controls usage of /money note
- tne.money.other.insert currency identifier here - controls usage of /money other
- tne.money.pay.insert currency identifier here - controls usage of /money pay
- tne.money.request.insert currency identifier here - controls usage of /money request
- tne.money.set.insert currency identifier here - controls usage of /money set
- tne.money.setall.insert currency identifier here - controls usage of /money setall
- tne.money.take.insert currency identifier here - controls usage of /money take
- tne.money.top.insert currency identifier here - controls usage of /money top
- tne.money.withdraw.insert currency identifier here - controls usage of /money withdraw
- tne.money.balance.insert currency identifier here - controls usage of /money balance
- tne.money.convert.to.insert currency identifier here - controls usage of /money convert's to
parameter
- tne.money.convert.from.insert currency identifier here - controls usage of /money convert's
from parameter
- tne.money.deposit.insert currency identifier here - controls usage of /money deposit
- tne.money.give.insert currency identifier here - controls usage of /money give
- tne.money.note.insert currency identifier here - controls usage of /money note
- tne.money.other.insert currency identifier here - controls usage of /money other
- tne.money.pay.insert currency identifier here - controls usage of /money pay
- tne.money.request.insert currency identifier here - controls usage of /money request
- tne.money.set.insert currency identifier here - controls usage of /money set
- tne.money.setall.insert currency identifier here - controls usage of /money setall
- tne.money.take.insert currency identifier here - controls usage of /money take
- tne.money.top.insert currency identifier here - controls usage of /money top
- tne.money.withdraw.insert currency identifier here - controls usage of /money withdraw

## Internal Changes

- Added a BaseProcessor variable to prevent initializing useless objects over and over.
1 change: 1 addition & 0 deletions .changelog/0.1.2.3.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 0.1.2.3

- Added support for shulker box balances.
- Removed debug messages that were in the console from 0.1.2.2
4 changes: 3 additions & 1 deletion .changelog/0.1.2.4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 0.1.2.4

- Fixed issue where using item currencies with QuickShop-Hikari caused an error.
- Moved essentials converter back to using the YAML files instead of the Essentials API since they reset balances to other economy plugins'
- Moved essentials converter back to using the YAML files instead of the Essentials API since they
reset balances to other economy plugins'
- Added maria-outdated as a DB option for those who are using outdated maria/mysql databases.
- Fixed issue with Redis not working.
- Fixed issue with offline servers not saving balances.
3 changes: 2 additions & 1 deletion .changelog/0.1.2.5.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 0.1.2.5

- Added config option for Geyser player prefixes
- Added more debug logging for player account creation.
- Added more data saving.
- Balances will now save more frequently. After every transaction.
- Balances will now save more frequently. After every transaction.
82 changes: 48 additions & 34 deletions .changelog/0.1.2.6.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,72 @@
# 0.1.2.6

## Additions

- Added replacements for /money for each balance type.
- $inventory
- $ender
- $virtual
- $inventory
- $ender
- $virtual
- Added placeholders for each balance type:
- %tne_balance:inventory%
- %tne_balance:ender%
- %tne_balance:virtual%
- %tne_balance:inventory%
- %tne_balance:ender%
- %tne_balance:virtual%
- Added support for placeholders in messages.yml translations
- Added parsing support for custom decimals in command parameters.
- Added extensive messaging for currency loading
- This should show the end-user when they have misconfigured a currency.
- This will also show a message when the folder associated isn't found.
- This should show the end-user when they have misconfigured a currency.
- This will also show a message when the folder associated isn't found.
- Updated TNML to 1.5.0.0 in order to start work on the menu system for TNE.

## Internals
- Added more serialization classes for various TNE objects. These will provide an interface for converting TNE objects to JSON strings and back to the object from JSON
- This will allow for some cool additions in the future for official modules, as well as, allowing for third-party plugins to take advantage for their own use.
- Current supported types:
- Currency
- Denomination
- Note
- TaxEntry
- Account
- Member
- HoldingsEntry

- Added more serialization classes for various TNE objects. These will provide an interface for
converting TNE objects to JSON strings and back to the object from JSON
- This will allow for some cool additions in the future for official modules, as well as, allowing
for third-party plugins to take advantage for their own use.
- Current supported types:
- Currency
- Denomination
- Note
- TaxEntry
- Account
- Member
- HoldingsEntry
- Updated to the latest version of TNML.
- The latest version of TNML gives stability and will allow for menus to be added into TNE now.
- Code is now shared between the Bukkit Core and the Bukkit-fork based cores such as Folia and Paper.
- This removed 67 files of duplicate code
- The latest version of TNML gives stability and will allow for menus to be added into TNE now.
- Code is now shared between the Bukkit Core and the Bukkit-fork based cores such as Folia and
Paper.
- This removed 67 files of duplicate code

## API
- Added shorthand methods for ease-of-use for developers that don't need to utilize the transaction system.
- setHoldings
- getHoldings
- addHoldings
- removeHoldings
- hasHoldings

- Added shorthand methods for ease-of-use for developers that don't need to utilize the transaction
system.
- setHoldings
- getHoldings
- addHoldings
- removeHoldings
- hasHoldings
- Added methods for adding objects to the stand TNE ones
- addBalanceFormatRule - Adds a rule for the currency formatter, which may be used in the Format configuration
- addCurrency - Adds a new currency to use with TNE
- addCurrencyType - Adds a new currency type which may be used by the end user. This may also be used to override current ones such as virtual, item, etc
- addAccountStatus - Adds a new account status. This may be used to extend the current statuses for something such as a bank status.
- addAccountType - Adds a new SharedAccountType. This allows adding custom account types for things such as Factions, Lands, etc.
- addBalanceFormatRule - Adds a rule for the currency formatter, which may be used in the Format
configuration
- addCurrency - Adds a new currency to use with TNE
- addCurrencyType - Adds a new currency type which may be used by the end user. This may also be
used to override current ones such as virtual, item, etc
- addAccountStatus - Adds a new account status. This may be used to extend the current statuses
for something such as a bank status.
- addAccountType - Adds a new SharedAccountType. This allows adding custom account types for
things such as Factions, Lands, etc.

## Fixes
- Fixed issue where empty entries in the enchantments/flags fields for currency notes would cause issues.

- Fixed issue where empty entries in the enchantments/flags fields for currency notes would cause
issues.
- Fixed issue where Essentials would send an OfflinePlayer with a null name
- Removed module download functionality from Sponge as requested by Sponge staff
- Fixed issue where /money wasn't displaying for multi-currency correctly.
- Fixed issue where using /tne reset wouldn't clear the cache.
- Fixed issue where currency configs were creating extra file if currency identifier didn't match file name.
- Fixed issue where currency configs were creating extra file if currency identifier didn't match
file name.
- Fixed issue where account name wasn't being updated if user renamed themself
- Fixed issue where Folia Build wasn't working properly
- Fixed issue where MobDrop config wasn't working properly
1 change: 1 addition & 0 deletions .changelog/0.1.2.7.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 0.1.2.6

- Fixed issue where console commands didn't work properly when the server account was disabled.
- Fixed issue where Vault plugin wasn't loading properly.
12 changes: 8 additions & 4 deletions .changelog/0.1.2.8.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# 0.1.2.8

## Major Changes

- Reduce TNE-specific internals and started using TNPC.
- This plugin library separates TNE into economy stuff and a plugin base to use for my other plugins.
- This plugin library separates TNE into economy stuff and a plugin base to use for my other
plugins.

## Minor Changes

- Added toppos placeholders
- %tne_toppos_<currency name>%
- %tne_toppos_<currency name>_position_<pos>%
- Made currency search by name case-insensitive
- %tne_toppos_<currency name>%
- %tne_toppos_<currency name>_position_<pos>%
- Made currency search by name case-insensitive

## Fixes

- Fixed issue where invalid flag/attribute for item configurations caused error.
- Fixed incompatibility with factions
- Fixed incompatibility with EconomyShopGUI
Expand Down
6 changes: 5 additions & 1 deletion .changelog/0.1.2.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
## Major Changes

## Minor Changes

- Made messages in HoldingsResponse.java translatable from messages.yml
- Changed payment result for payment that would send account negative use insufficient versus less than minimum message.
- Changed payment result for payment that would send account negative use insufficient versus less
than minimum message.
- Added permission node to restrict transactions for accounts for specific currencies.

## Internals

- Added negative balance support to internals for possible future release.

## Fixes

- Empty line in messages.yml, don't send
- Fixed issue with calculating change in item currencies
Loading

0 comments on commit dfd6715

Please sign in to comment.