Class ConsoleListener
java.lang.Object
de.craftsblock.craftsnet.listeners.ConsoleListener
- All Implemented Interfaces:
de.craftsblock.craftscore.event.ListenerAdapter
public class ConsoleListener
extends Object
implements de.craftsblock.craftscore.event.ListenerAdapter
The
ConsoleListener class is responsible for handling console messages and executing commands.
It listens for the ConsoleMessageEvent and processes console input into commands.- Since:
- 2.2.0-SNAPSHOT
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleListener(CraftsNet craftsNet) Constructs a new instance of a console listener -
Method Summary
Modifier and TypeMethodDescriptionvoidEvent handler for console messages.
-
Constructor Details
-
ConsoleListener
Constructs a new instance of a console listener- Parameters:
craftsNet- The CraftsNet instance which instantiates this console listener
-
-
Method Details
-
handleConsoleMessage
Event handler for console messages.- Parameters:
event- TheConsoleMessageEventwhich has been fired.
-