Skip to content

Conversation

@DeltaR4v0x
Copy link
Contributor

No description provided.


UUIDComponent uuidComponent = store.getComponent(ref, UUIDComponent.getComponentType());
FancyPlayerImpl fp = (FancyPlayerImpl) getPlayerService().getByUUID(uuidComponent.getUuid());
UUIDComponent uuidComponent = ref.getStore().getComponent(ref, UUIDComponent.getComponentType());
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you use the store var that you added above?

private void load() {
List<ScoreboardPage> pages = storage.loadAllPages();
if (pages == null || pages.isEmpty()) {
FancyCorePlugin.get().getFancyLogger().error("No scoreboard pages loaded from storage!");
Copy link
Member

Choose a reason for hiding this comment

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

It's fine when no scoreboards exists. Maybe they don't want to use the scoreboard feature

}
}

if (!cache.containsKey("default")) {
Copy link
Member

Choose a reason for hiding this comment

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

"default" is not required

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