Contents
Class ConsoleSender
java.lang.Object
com.hypixel.hytale.server.core.console.ConsoleSender
- All Implemented Interfaces:
CommandSender, PermissionHolder, IMessageReceiver
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetUuid()booleanhasPermission(String id) Whether their attached permissions contains the id.booleanhasPermission(String id, boolean def) Determines whether the associated instance has the given permission.voidsendMessage(Message message) Called to send a message to this receiver.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PermissionHolder
hasPermission, hasPermission
-
Field Details
-
INSTANCE
-
-
Method Details
-
sendMessage
Description copied from interface:IMessageReceiverCalled to send a message to this receiver.- Specified by:
sendMessagein interfaceIMessageReceiver- Parameters:
message- The message to be sent.
-
getUsername
- Specified by:
getUsernamein interfaceCommandSender- Returns:
- the username of the command sender.
-
getUuid
- Specified by:
getUuidin interfaceCommandSender- Returns:
- the unique identifier of the command sender.
-
hasPermission
Description copied from interface:PermissionHolderWhether their attached permissions contains the id. This will also attempt to find wildcard matches.For example, if their permissions contain "hytale.*", the check "hytale.permission-test" will return
If they have the root "*" permission, all returns will betrue.true.- Specified by:
hasPermissionin interfacePermissionHolder- Parameters:
id- the permission.- Returns:
trueif they have the permission,falseotherwise.
-
hasPermission
Description copied from interface:PermissionHolderDetermines whether the associated instance has the given permission.- Specified by:
hasPermissionin interfacePermissionHolder- Parameters:
id- The identifier of the permission.def- The default value to return if the player does not have the permission.- Returns:
trueif they have the permission,falseotherwise.
-