3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-23 23:00:35 +01:00

Add missing JavaDoc

Dieser Commit ist enthalten in:
Gabik21 2019-10-28 21:18:53 +01:00
Ursprung 802251d273
Commit ad291803ea
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A95DB353715365DF

Datei anzeigen

@ -16,6 +16,12 @@ public final class ServerConnectedEvent {
private final RegisteredServer server;
private final @Nullable RegisteredServer previousServer;
/**
* Constructs a ServerConnectedEvent.
* @param player the player that was connected
* @param server the server the player was connected to
* @param previousServer the server the player was previously connected to
*/
public ServerConnectedEvent(Player player, RegisteredServer server,
@Nullable RegisteredServer previousServer) {
this.player = Preconditions.checkNotNull(player, "player");
@ -37,10 +43,10 @@ public final class ServerConnectedEvent {
@Override
public String toString() {
return "ServerConnectedEvent{" +
"player=" + player +
", server=" + server +
", previousServer=" + previousServer +
'}';
return "ServerConnectedEvent{"
+ "player=" + player
+ ", server=" + server
+ ", previousServer=" + previousServer
+ '}';
}
}