public class AccessControlModule extends JavaPlugin
Class AccessControlModule. Provides accesscontrolmodule functionality for the Hytale server.
java.lang.Object > JavaPlugin > AccessControlModule
Field Summary
completableFuture
final
CompletableFuture>
completableFuture
Field completableFuture.
disconnectReason
final
Optional
disconnectReason
Field disconnectReason.
currentParser
final
BanParser
currentParser
Field currentParser.
parser
final
BanParser
parser
Field parser.
Method Detail
setup
protected
void
setup
()
Method setup.
BanCommand
public
new
BanCommand
(this.banProvider)
Method BanCommand.
- Parameters:
this.banProviderthis.banProvider
UnbanCommand
public
new
UnbanCommand
(this.banProvider)
Method UnbanCommand.
- Parameters:
this.banProviderthis.banProvider
WhitelistCommand
public
new
WhitelistCommand
(this.whitelistProvider)
Method WhitelistCommand.
- Parameters:
this.whitelistProviderthis.whitelistProvider
start
protected
void
start
()
Method start.
shutdown
protected
void
shutdown
()
Method shutdown.
IllegalArgumentException
public
new
IllegalArgumentException
("Type \"" + type + "\" is already registered by " + String.valueOf(currentParser.getClass()
Method IllegalArgumentException.
- Parameters:
"Type \"" + type + "\" is already registered by " +String.valueOf(currentParser.getClass(
parseBan
Method parseBan.
- Parameters:
final Stringtypefinal JsonObjectobject
getDisconnectReason
private
CompletableFuture>
getDisconnectReason
(final UUID uuid)
Method getDisconnectReason.
- Parameters:
final UUIDuuid
if
public
else
if
(bMessage.isPresent()
Method if.
- Parameters:
bMessage.isPresent(bMessage.isPresent(