2015-01-01 20:38:43 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 cnaude
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
package com.cnaude.purpleirc;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author cnaude
|
|
|
|
*/
|
|
|
|
public class IRCCommand {
|
2015-02-07 05:15:53 +01:00
|
|
|
private final IRCCommandSender sender;
|
|
|
|
private final IRCConsoleCommandSender consoleSender;
|
|
|
|
private final String command;
|
2015-01-01 20:38:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param sender
|
2015-02-07 05:15:53 +01:00
|
|
|
* @param consoleSender
|
2015-01-01 20:38:43 +01:00
|
|
|
* @param command
|
|
|
|
*/
|
2015-02-07 05:15:53 +01:00
|
|
|
public IRCCommand(IRCCommandSender sender, IRCConsoleCommandSender consoleSender, String command) {
|
2015-01-01 20:38:43 +01:00
|
|
|
this.sender = sender;
|
2015-02-07 05:15:53 +01:00
|
|
|
this.consoleSender = consoleSender;
|
2015-01-01 20:38:43 +01:00
|
|
|
this.command = command;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public IRCCommandSender getIRCCommandSender() {
|
|
|
|
return sender;
|
|
|
|
}
|
|
|
|
|
2015-02-07 05:15:53 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public IRCConsoleCommandSender getIRCConsoleCommandSender() {
|
|
|
|
return consoleSender;
|
|
|
|
}
|
|
|
|
|
2015-01-01 20:38:43 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
public String getGameCommand() {
|
|
|
|
return command;
|
|
|
|
}
|
|
|
|
}
|