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

Commit

Permalink
Merge pull request #217 from SpigotMC/master
Browse files Browse the repository at this point in the history
SpigotMC#2497: Use annotation to set initial value in ServerConnectRequest
  • Loading branch information
sleiss authored Aug 5, 2018
2 parents 2453719 + 9bc4143 commit 5bb68bd
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 5bb68bd

Please sign in to comment.