public class PacketWatcher
extends java.lang.Object
Constructor and Description |
---|
PacketWatcher(@NotNull CrossfireServerConnection crossfireServerConnection,
@NotNull ScriptProcess scriptProcess)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addCommand(@NotNull java.lang.String command)
Adds a command to watch for.
|
void |
destroy()
Releases allocated resources.
|
void |
removeCommand(@NotNull java.lang.String command)
Removes a command to watch for.
|
public PacketWatcher(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull ScriptProcess scriptProcess)
crossfireServerConnection
- the server connection to watchscriptProcess
- the script process for sending commandspublic void destroy()
public void addCommand(@NotNull @NotNull java.lang.String command)
command
- the commandpublic void removeCommand(@NotNull @NotNull java.lang.String command)
command
- the command