Package studio.mevera.imperat.context
Interface Source
@AvailableSince("1.0.0")
public interface Source
Represents the sender/source
of a command being executed
may be a console, a player in a game, etc...
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <T> TvoidReplies to the command sender with a string message formatted specifically for error messagesbooleanname()origin()voidReplies to the command sender with a string messagedefault UUIDuuid()voidReplies to the command sender with a string message formatted specifically for error messages
-
Field Details
-
CONSOLE_UUID
-
-
Method Details
-
name
String name()- Returns:
- name of a command source
-
origin
Object origin()- Returns:
- The original command sender valueType instance
-
reply
Replies to the command sender with a string message- Parameters:
message- the message
-
warn
Replies to the command sender with a string message formatted specifically for error messages- Parameters:
message- the message
-
error
Replies to the command sender with a string message formatted specifically for error messages- Parameters:
message- the message
-
isConsole
boolean isConsole()- Returns:
- Whether the command source is from the console
-
uuid
- Returns:
- returns the UUID of the command source
-
as
-