Skip to content

Add SimpleEconomy transistor integration#5

Open
NhanAZ wants to merge 1 commit into
Kris-Driv:masterfrom
NhanAZ-Contributions:master
Open

Add SimpleEconomy transistor integration#5
NhanAZ wants to merge 1 commit into
Kris-Driv:masterfrom
NhanAZ-Contributions:master

Conversation

@NhanAZ

@NhanAZ NhanAZ commented Feb 12, 2026

Copy link
Copy Markdown

Register and implement a SimpleEconomy transistor adapter. Added src/economizer/transistor/SimpleEconomy.php which integrates with NhanAZ\SimpleEconomy, providing balance, setMoney, addMoney, takeMoney, ready, and getMoneyUnit methods (uses SimpleEconomyPlugin::getInstance()). Updated src/economizer/Economizer.php to import SimpleEconomy, add a SIMPLE_ECONOMY constant and include the adapter in the API map so the plugin can use SimpleEconomy as an economy provider. Returns sensible defaults when the economy plugin is unavailable.

Register and implement a SimpleEconomy transistor adapter. Added src/economizer/transistor/SimpleEconomy.php which integrates with NhanAZ\SimpleEconomy, providing balance, setMoney, addMoney, takeMoney, ready, and getMoneyUnit methods (uses SimpleEconomyPlugin::getInstance()). Updated src/economizer/Economizer.php to import SimpleEconomy, add a SIMPLE_ECONOMY constant and include the adapter in the API map so the plugin can use SimpleEconomy as an economy provider. Returns sensible defaults when the economy plugin is unavailable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant