public class Statuses extends Object implements PlayerStatus
Constructor and Description |
---|
Statuses() |
Modifier and Type | Method and Description |
---|---|
void |
ban(UUID uuid)
Bans the player given the UUID
|
void |
ipBan(InetSocketAddress address)
IP bans the given address
|
boolean |
isBanned(UUID uuid)
Checks the ban status of the player with the given UUID
|
boolean |
isIpBanned(InetSocketAddress address)
Checks if the IP has been banned from the server
|
boolean |
isOpped(UUID uuid)
Checks if the player owning the UUID has been given operator status
|
boolean |
isWhitelisted(UUID uuid)
Checks if the player owning the UUID is whitelisted
|
void |
loadAll() |
void |
op(UUID uuid)
Ops the given UUID
|
void |
saveAll() |
void |
whitelist(UUID uuid)
Whitelists the UUID provided
|
public Statuses()
public boolean isBanned(UUID uuid)
PlayerStatus
isBanned
in interface PlayerStatus
uuid
- the uuid to checktrue
if the player is bannedpublic boolean isIpBanned(InetSocketAddress address)
PlayerStatus
isIpBanned
in interface PlayerStatus
address
- the IP to checktrue
if the IP has been bannedpublic boolean isOpped(UUID uuid)
PlayerStatus
isOpped
in interface PlayerStatus
uuid
- the uuid to checktrue
if the UUID is oppedpublic boolean isWhitelisted(UUID uuid)
PlayerStatus
isWhitelisted
in interface PlayerStatus
uuid
- the uuid to checktrue
if the player is whitelistedpublic void ban(UUID uuid)
PlayerStatus
ban
in interface PlayerStatus
uuid
- the uuid of the player to banpublic void ipBan(InetSocketAddress address)
PlayerStatus
ipBan
in interface PlayerStatus
address
- the IP to banpublic void op(UUID uuid)
PlayerStatus
op
in interface PlayerStatus
uuid
- the UUID to give op topublic void whitelist(UUID uuid)
PlayerStatus
whitelist
in interface PlayerStatus
uuid
- the to give operator statuspublic void loadAll()
public void saveAll() throws IOException
IOException
Copyright © 2016. All rights reserved.