Skip to content

Conversation

@YannicHock
Copy link

This is the first Version of the CMI Extension as requested in ISSUE #3735 it is, for now, a feature copy of Extention-EssentialsX

In theory the CMI-API should be available threw Jitpack though I think the author of the API made a mistake configuring Jitpack, I wasn't able to get it threw this repository and build it localy in order to make it available, maybe someone else can have a look at this, maybe I missunderstood something.

Copy link
Contributor

@AuroraLS3 AuroraLS3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I put some comments.

I would suggest against creating multiple Extensions for one plugin and using @TabInfo and @Tab annotations instead - Here's an example https://github.com/plan-player-analytics/Extension-LuckPerms/blob/master/src/main/java/net/playeranalytics/extension/luckperms/LuckPermsExtension.java

@YannicHock
Copy link
Author

With this commit 7923936, this now uses only one Extension and Tabs for the diffrent types of data. This now should be ready to be merged

This was implemented this way, as the Extension of EssentialsX also did it this way. If there aren't any reasons why I shouldn't I will also make a PR for EssentialsX with those changes to be coherent

*/

@EventHandler(priority = EventPriority.MONITOR)
public void onBalanceChange(CMIUserBalanceChangeEvent event) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This event has the potential to be fired 100s of times per second when combined with something like Jobs that pays out per block mined. Considering that I will add a time based limiter on this updating the Plan data, since currently each call to updatePlayerData would fire ~24 transactions in Plan

Copy link
Contributor

@AuroraLS3 AuroraLS3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. I will close this PR instead of merging in order to fork the repository instead.

@AuroraLS3 AuroraLS3 closed this Oct 20, 2024
@AuroraLS3
Copy link
Contributor

With this commit 7923936, this now uses only one Extension and Tabs for the diffrent types of data. This now should be ready to be merged

This was implemented this way, as the Extension of EssentialsX also did it this way. If there aren't any reasons why I shouldn't I will also make a PR for EssentialsX with those changes to be coherent

If I remember correctly the Essentials Eco portion of the extension is disabled, I might misremember though.

@AuroraLS3
Copy link
Contributor

In theory the CMI-API should be available threw Jitpack though I think the author of the API made a mistake configuring Jitpack, I wasn't able to get it threw this repository and build it localy in order to make it available, maybe someone else can have a look at this, maybe I missunderstood something.

Looks like CMI requires spigot artifact built by BuildTools which is not deployed in a maven repository anywhere, making jitpack pointless.

@AuroraLS3
Copy link
Contributor

CMI API also targets Java 21 so this will take some more effort to get merged. Changes in the other PR plan-player-analytics/Plan#3815 may be required in order to retain Java 11 support.

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