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)
PlayerStatusisBanned in interface PlayerStatusuuid - the uuid to checktrue if the player is bannedpublic boolean isIpBanned(InetSocketAddress address)
PlayerStatusisIpBanned in interface PlayerStatusaddress - the IP to checktrue if the IP has been bannedpublic boolean isOpped(UUID uuid)
PlayerStatusisOpped in interface PlayerStatusuuid - the uuid to checktrue if the UUID is oppedpublic boolean isWhitelisted(UUID uuid)
PlayerStatusisWhitelisted in interface PlayerStatusuuid - the uuid to checktrue if the player is whitelistedpublic void ban(UUID uuid)
PlayerStatusban in interface PlayerStatusuuid - the uuid of the player to banpublic void ipBan(InetSocketAddress address)
PlayerStatusipBan in interface PlayerStatusaddress - the IP to banpublic void op(UUID uuid)
PlayerStatusop in interface PlayerStatusuuid - the UUID to give op topublic void whitelist(UUID uuid)
PlayerStatuswhitelist in interface PlayerStatusuuid - the to give operator statuspublic void loadAll()
public void saveAll() throws IOException
IOExceptionCopyright © 2016. All rights reserved.