Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
SpigotMC#2497: Use annotation to set initial value in ServerConnectRe…
Browse files Browse the repository at this point in the history
…quest
  • Loading branch information
Mystiflow authored and md-5 committed Aug 5, 2018
1 parent 715ec07 commit 9bc4143
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions api/src/main/java/net/md_5/bungee/api/ServerConnectRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,11 @@ public enum Result
/**
* Timeout in milliseconds for request.
*/
private final int connectTimeout;
@Builder.Default
private final int connectTimeout = 5000; // TODO: Configurable
/**
* Should the player be attempted to connect to the next server in their
* queue if the initial request fails.
*/
private final boolean retry;

/**
* Class that sets default properties/adds methods to the lombok builder
* generated class.
*/
public static class ServerConnectRequestBuilder
{

private int connectTimeout = 5000; // TODO: Configurable
}
}

0 comments on commit 9bc4143

Please sign in to comment.