Fix Commit
This commit is contained in:
parent
a0c00e86c4
commit
dda09d51e5
@ -0,0 +1,17 @@
|
||||
package mineplex.core.command;
|
||||
|
||||
/**
|
||||
* LoggedCommand
|
||||
*
|
||||
* @author xXVevzZXx
|
||||
*/
|
||||
public interface LoggedCommand
|
||||
{
|
||||
|
||||
default void execute(long time, String username, String command, String args)
|
||||
{
|
||||
LoggingServerCommand cmd = new LoggingServerCommand(time, username, command, args);
|
||||
cmd.publish();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package mineplex.core.command;
|
||||
|
||||
import mineplex.serverdata.commands.ServerCommand;
|
||||
|
||||
/**
|
||||
* LoggingServerCommand
|
||||
*
|
||||
* @author xXVevzZXx
|
||||
*/
|
||||
public class LoggingServerCommand extends ServerCommand
|
||||
{
|
||||
private final long _time;
|
||||
private final String _username;
|
||||
private final String _command;
|
||||
private final String _args;
|
||||
|
||||
public LoggingServerCommand(long time, String username, String command, String args)
|
||||
{
|
||||
_time = time;
|
||||
_username = username;
|
||||
_command = command;
|
||||
_args = args;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user