Skip to content

Add Baltop API#3702

Merged
mdcfe merged 23 commits intoEssentialsX:2.xfrom
JRoy:feature/improved-baltop-api
Feb 15, 2021
Merged

Add Baltop API#3702
mdcfe merged 23 commits intoEssentialsX:2.xfrom
JRoy:feature/improved-baltop-api

Conversation

@JRoy
Copy link
Member

@JRoy JRoy commented Oct 3, 2020

This moves storage of balances from the baltop command into the UserMap. This was needed by Glare to able to get a hold of all users balances without causing jvm hell on the usermap.

To access this API as an end user;

import net.essentialsx.api.v2.services.BalanceTop;
//...
BalanceTop api = Bukkit.getServer().getServicesManager().load(BalanceTop.class);

Closes #3100
Closes #3540

@JRoy JRoy added the type: enhancement Features and feature requests. label Oct 3, 2020
@JRoy JRoy added this to the 2.18.2 milestone Oct 3, 2020
@JRoy JRoy requested a review from darbyjack October 3, 2020 17:05
Octol1ttle
Octol1ttle previously approved these changes Oct 3, 2020
mbax
mbax previously approved these changes Oct 3, 2020
@JRoy JRoy dismissed stale reviews from mbax and Octol1ttle via 42d29b8 October 4, 2020 03:45
mbax
mbax previously approved these changes Oct 4, 2020
mbax
mbax previously approved these changes Oct 4, 2020
darbyjack
darbyjack previously approved these changes Oct 4, 2020
# Conflicts:
#	Essentials/src/com/earth2me/essentials/commands/Commandbalancetop.java
@JRoy JRoy dismissed stale reviews from darbyjack and mbax via a324c5b October 5, 2020 06:11
@JRoy JRoy requested review from darbyjack and mbax October 5, 2020 06:11
darbyjack
darbyjack previously approved these changes Oct 5, 2020
Copy link
Member

@darbyjack darbyjack left a comment

Choose a reason for hiding this comment

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

I've reviewed this PR and deem it to be worthy of merging. Thank you for taking the time to work with me and implementing this feature. This should be a big help to anyone who uses the Essentials api.

mbax
mbax previously approved these changes Oct 6, 2020
HexedHero
HexedHero previously approved these changes Oct 7, 2020
@JRoy JRoy requested a review from darbyjack October 10, 2020 02:59
darbyjack
darbyjack previously approved these changes Oct 17, 2020
@JRoy JRoy requested a review from mdcfe December 2, 2020 21:15
…andbalancetop.java

Co-authored-by: Mariell <proximyst@proximyst.com>
@JRoy JRoy requested review from darbyjack and pop4959 January 1, 2021 00:23
@JRoy JRoy requested a review from mdcfe January 19, 2021 23:26
@Hellcat45

This comment has been minimized.

@JRoy JRoy added the type: api Issue/Pull Request regards user-facing API label Jan 25, 2021
# Conflicts:
#	Essentials/src/main/java/net/essentialsx/api/v2/package-info.java
#	Essentials/src/main/java/net/essentialsx/api/v2/services/package-info.java
@mdcfe mdcfe changed the title Add Balance API Add Baltop API Feb 15, 2021
@mdcfe mdcfe self-requested a review February 15, 2021 11:59
JRoy and others added 2 commits February 15, 2021 07:14
@mdcfe mdcfe merged commit 36422ab into EssentialsX:2.x Feb 15, 2021
@mdcfe mdcfe deleted the feature/improved-baltop-api branch February 15, 2021 15:43
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
Co-authored-by: Mariell <proximyst@proximyst.com>
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>

This moves storage of balances from the baltop command into the UserMap. This was needed by Glare to able to get a hold of all users balances without causing jvm hell on the usermap.

To access this API as an end user;
```java
import net.essentialsx.api.v2.services.BalanceTop;
//...
BalanceTop api = Bukkit.getServer().getServicesManager().load(BalanceTop.class);
```

Closes EssentialsX#3100, closes EssentialsX#3540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: api Issue/Pull Request regards user-facing API type: enhancement Features and feature requests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

essentials.balancetop.exclude doesn't work when the player is offline Exempt players from balancetop, even if offline