Package net.ME1312.Galaxi.Command
Class ConsoleCommandSender
java.lang.Object
net.ME1312.Galaxi.Command.ConsoleCommandSender
- All Implemented Interfaces:
CommandSender
,ExtraDataHandler<String>
Console Command Sender Class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an extra value to this Objectvoid
Send a message as Consolevoid
chat
(TextElement message) Send a message as Consolefinal void
Close the Console Windowstatic ConsoleCommandSender
get()
Get the Console Command SendergetExtra()
Get the extra value sectionGet an extra valuegetName()
Get Sender Nameboolean
Determine if an extra value existsboolean
hasPermission
(String permission) Test if the Sender has a permissionfinal void
Open the Console Windowvoid
removeExtra
(String handle) Remove an extra value from this Objectvoid
sendMessage
(String... messages) Send the Sender a messagevoid
sendMessage
(TextElement... messages) Send the Sender a messageMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.ME1312.Galaxi.Command.CommandSender
command
-
Method Details
-
get
Get the Console Command Sender- Returns:
- Console Command Sender
-
getName
Description copied from interface:CommandSender
Get Sender Name- Specified by:
getName
in interfaceCommandSender
- Returns:
- Sender Name
-
hasPermission
Description copied from interface:CommandSender
Test if the Sender has a permission- Specified by:
hasPermission
in interfaceCommandSender
- Parameters:
permission
- Permission to test- Returns:
- Sender's Permission Status
-
openWindow
public final void openWindow()Open the Console Window -
closeWindow
public final void closeWindow()Close the Console Window -
chat
Send a message as Console- Parameters:
message
- Message to send- Throws:
UnsupportedOperationException
- when not implemented- See Also:
-
chat
Send a message as Console- Parameters:
message
- Message to send- Throws:
UnsupportedOperationException
- when not implemented- See Also:
-
sendMessage
Description copied from interface:CommandSender
Send the Sender a message- Specified by:
sendMessage
in interfaceCommandSender
- Parameters:
messages
- Messages to send
-
sendMessage
Description copied from interface:CommandSender
Send the Sender a message- Specified by:
sendMessage
in interfaceCommandSender
- Parameters:
messages
- Messages to send
-
addExtra
Description copied from interface:ExtraDataHandler
Add an extra value to this Object- Specified by:
addExtra
in interfaceExtraDataHandler<String>
- Parameters:
handle
- Handlevalue
- Value
-
hasExtra
Description copied from interface:ExtraDataHandler
Determine if an extra value exists- Specified by:
hasExtra
in interfaceExtraDataHandler<String>
- Parameters:
handle
- Handle- Returns:
- Value Status
-
getExtra
Description copied from interface:ExtraDataHandler
Get an extra value- Specified by:
getExtra
in interfaceExtraDataHandler<String>
- Parameters:
handle
- Handle- Returns:
- Value
-
getExtra
Description copied from interface:ExtraDataHandler
Get the extra value section- Specified by:
getExtra
in interfaceExtraDataHandler<String>
- Returns:
- Extra Value Section
-
removeExtra
Description copied from interface:ExtraDataHandler
Remove an extra value from this Object- Specified by:
removeExtra
in interfaceExtraDataHandler<String>
- Parameters:
handle
- Handle
-