mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Remove server auto-fetching due to instability
This commit is contained in:
1 parent
d928ee6ade
commit
eb4652d6ff
17 files changed
+43
-161
No files matched your search
@@ -1,34 +0,0 @@
|
||||
package net.william278.huskhomes.config;
|
||||
|
||||
import net.william278.annotaml.YamlFile;
|
||||
import net.william278.annotaml.YamlKey;
|
||||
import net.william278.huskhomes.position.Server;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@YamlFile(header = """
|
||||
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||
┃ Server ID cache. Must match ┃
|
||||
┃ server name in proxy config. ┃
|
||||
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛""")
|
||||
public class CachedServer {
|
||||
|
||||
/**
|
||||
* Name of the server (must match proxy config ID)
|
||||
*/
|
||||
@YamlKey("server_name")
|
||||
public String serverName;
|
||||
|
||||
public CachedServer(@NotNull String serverName) {
|
||||
this.serverName = serverName;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public CachedServer() {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Server getServer() {
|
||||
return new Server(serverName);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user