Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "String pluginName" parameter to display function #10

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

Fedjoyd
Copy link

@Fedjoyd Fedjoyd commented Oct 6, 2024

I added the "String pluginName" parameter to the function: fractionalDigits, format, getDefaultCurrency, defaultCurrencyNamePlural and defaultCurrencyNameSingular for the creation of an economy plugin that redirects the calls of these functions to different currencies depending on the plugin that calls them

(for example in my multi-currency economy plugin I created a possibility to define a currency on a plugin the modifications I made allow these plugins to display the amounts in the right currency (in case the calling plugin does not support multi-currency))

I added the "String pluginName" parameter to the function: fractionalDigits, format, getDefaultCurrency, defaultCurrencyNamePlural and defaultCurrencyNameSingular for the creation of an economy plugin that redirects the calls of these functions to different currencies depending on the plugin that calls them

(for example in my multi-currency economy plugin I created a possibility to define a currency on a plugin the modifications I made allow these plugins to display the amounts in the right currency (in case the calling plugin does not support multi-currency))
@Fedjoyd
Copy link
Author

Fedjoyd commented Oct 6, 2024

I forgot instead of removing the functions to deprecate them

@creatorfromhell
Copy link
Member

I forgot instead of removing the functions to deprecate them

Yeah, I noticed. Did you want to update that and just deprecate them before I review it?

@creatorfromhell
Copy link
Member

creatorfromhell commented Oct 6, 2024

I forgot instead of removing the functions to deprecate them

I'm actually going to accept as-is because I have some changes to make to format anyways.

Update: Added deprecation to methods, also included the new component aspect.

@creatorfromhell creatorfromhell merged commit f098820 into TheNewEconomy:master Oct 6, 2024
1 of 2 checks passed
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.

2 participants