Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ default void clearHeaderAndFooter() {
*
* @param reason component with the reason
*/
void disconnect(Component reason);
void disconnect(@NotNull Component reason);

/**
* Sends chat input onto the players current server as if they typed it into the client chat box.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
Expand Down Expand Up @@ -645,7 +646,8 @@ public InternalTabList getTabList() {
}

@Override
public void disconnect(Component reason) {
public void disconnect(@NotNull Component reason) {
Objects.requireNonNull(reason, "reason");
if (connection.eventLoop().inEventLoop()) {
disconnect0(reason, false);
} else {
Expand Down