Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

AlphaChest update #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Redmancometh
Copy link

I fixed some stuff.

I fixed some stuff.
@Brianetta
Copy link
Collaborator

You haven't used the same indent style as the rest of the plugin. This makes for legibility problems, not least of which is in the output of git diff.

@Redmancometh
Copy link
Author

Well I'd highly recommend looking over git diff, and updating the plugin with some aspects of it. I removed some things not being used on my server, and sort of forgot. Also there are a couple unused classes I was going to implement.

Either way you should probably adopt the completablefutures, concurrenthashmap, and event-based loading. Losing 800 ticks on average from a single plugin's save event makes it unusable. Loading every single chest in the directory onEnable is crazytown.

The save task took ~4k ms, and now takes 5ms, so it's pretty dramatic. Also the formatting is a simple refactor :P. Maybe don't merge the PR, but you should certainly adopt some of the ideas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants