forked from FallenMoonNetwork/CanaryLib
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathOperatorsProvider.java
More file actions
58 lines (49 loc) · 1.1 KB
/
OperatorsProvider.java
File metadata and controls
58 lines (49 loc) · 1.1 KB
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
package net.canarymod.user;
import net.canarymod.api.PlayerReference;
/**
* Access to the backbone for operators
*
* @author Jason (darkdiplomat)
*/
public interface OperatorsProvider {
/**
* Reload the ops from database
*/
void reload();
/**
* Check if a given Player name or UUID is opped.
*
* @param nameOrUUID
* the uuid/name of a player
*
* @return true if player is opped, false otherwise
*/
boolean isOpped(String nameOrUUID);
boolean isOpped(PlayerReference playerReference);
/**
* Adds a new operators entry
*
* @param entry
* the player uuid/name you want to add
*/
void addPlayer(String entry);
/**
* Removes the given player from the ops list
*
* @param entry
* the player uuid/name you want to remove
*/
void removePlayer(String entry);
/**
* gets the current size of the ops list
*
* @return the size
*/
int getSize();
/**
* Gets an array of all Operators
*
* @return
*/
String[] getOps();
}