Skip to content

Use constant instead of creating a channel wrapper every time #65

@TheBjoRedCraft

Description

@TheBjoRedCraft
val exampleChannel = MinecraftChannelIdentifier.from(Constants.CHANNEL_EXAMPLE)

if (event.identifier != MinecraftChannelIdentifier.from(Constants.CHANNEL_SERVER_REQUEST)) {

And here

MinecraftChannelIdentifier.from(Constants.CHANNEL_SERVER_RESPONSE),

And here

if (event.identifier != MinecraftChannelIdentifier.from(Constants.CHANNEL_TEAM)) {

Metadata

Metadata

Labels

good first issueSimple bug fix or feature which would be a good first PR for someone new to the projectstatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.7

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions