Cleanup some formatting
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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 );
|
||||
|
Reference in New Issue
Block a user