Fix Commit

This commit is contained in:
Sarah 2017-04-19 01:55:19 +02:00 committed by cnr
parent a0c00e86c4
commit dda09d51e5
2 changed files with 41 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -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;
}
}