-
Notifications
You must be signed in to change notification settings - Fork 23
/
Server.java
137 lines (117 loc) · 2.72 KB
/
Server.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
package net.ME1312.SubServers.Bungee.Host;
import net.ME1312.Galaxi.Library.ExtraDataHandler;
import net.ME1312.Galaxi.Library.NamedContainer;
import net.ME1312.SubData.Server.ClientHandler;
import net.ME1312.SubData.Server.SerializableClientHandler;
import net.md_5.bungee.api.config.ServerInfo;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
/**
* Server Interface
*/
public interface Server extends ServerInfo, SerializableClientHandler, ExtraDataHandler {
/**
* Get the Display Name of this Server
*
* @return Display Name
*/
String getDisplayName();
/**
* Sets the Display Name for this Server
*
* @param value Value (or null to reset)
*/
void setDisplayName(String value);
/**
* Get this Server's Groups
*
* @return Group names
*/
List<String> getGroups();
/**
* Add this Server to a Group
*
* @param value Group name
*/
void addGroup(String value);
/**
* Remove this Server from a Group
*
* @param value value Group name
*/
void removeGroup(String value);
/**
* Get players on this server across all known proxies
*
* @return Player Collection
*/
Collection<NamedContainer<String, UUID>> getGlobalPlayers();
/**
* If the server is hidden from players
*
* @return Hidden Status
*/
boolean isHidden();
/**
* Set if the server is hidden from players
*
* @param value Value
*/
void setHidden(boolean value);
/**
* Gets the MOTD of the Server
*
* @return Server MOTD
*/
String getMotd();
/**
* Sets the MOTD of the Server
*
* @param value Value
*/
void setMotd(String value);
/**
* Gets if the Server is Restricted
*
* @return Restricted Status
*/
boolean isRestricted();
/**
* Sets if the Server is Restricted
*
* @param value Value
*/
void setRestricted(boolean value);
/**
* Get a copy of the current whitelist
*
* @return Player Whitelist
*/
Collection<UUID> getWhitelist();
/**
* See if a player is whitelisted
*
* @param player Player to check
* @return Whitelisted Status
*/
boolean isWhitelisted(UUID player);
/**
* Add a player to the whitelist (for use with restricted servers)
*
* @param player Player to add
*/
void whitelist(UUID player);
/**
* Remove a player to the whitelist
*
* @param player Player to remove
*/
void unwhitelist(UUID player);
/**
* Get the Signature of this Object
*
* @return Object Signature
*/
String getSignature();
}