Cleanup some formatting

This commit is contained in:
md_5
2025-07-19 10:43:44 +10:00
parent df53053677
commit 8e99a4c5bf
13 changed files with 37 additions and 26 deletions

View File

@@ -87,8 +87,10 @@ public interface Connection
/**
* Queue a packet to this connection.
* If the packet is not registered for the connections current encoder protocol, it will be queued until it is,
* otherwise it will be sent immediately.
*
* If the packet is not registered for the connections current encoder
* protocol, it will be queued until it is, otherwise it will be sent
* immediately.
*
* @param packet the packet to be queued
* @throws UnsupportedOperationException if used for a PendingConnection

View File

@@ -386,6 +386,7 @@ public interface ProxiedPlayer extends Connection, CommandSender
/**
* Gets the client brand of this player.
*
* If the player has not sent a brand packet yet, it will return null.
*
* @return the brand of the client, or null if not received yet

View File

@@ -474,8 +474,7 @@ public final class PluginManager
{
for ( Method method : listener.getClass().getDeclaredMethods() )
{
Preconditions.checkArgument( !method.isAnnotationPresent( Subscribe.class ),
"Listener %s has registered using deprecated subscribe annotation! Please update to @EventHandler.", listener );
Preconditions.checkArgument( !method.isAnnotationPresent( Subscribe.class ), "Listener %s has registered using deprecated subscribe annotation! Please update to @EventHandler.", listener );
}
eventBus.register( listener );
listenersByPlugin.put( plugin, listener );