2014-08-26 20:46:46 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012-2014 Steven Lawson
|
|
|
|
*
|
|
|
|
* This file is part of BukkitTelnetClient.
|
|
|
|
*
|
|
|
|
* BukkitTelnetClient 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/>.
|
|
|
|
*/
|
2014-08-21 23:44:51 +00:00
|
|
|
package me.StevenLawson.BukkitTelnetClient;
|
|
|
|
|
|
|
|
import java.awt.Color;
|
|
|
|
|
|
|
|
public class BTC_ConsoleMessage
|
|
|
|
{
|
|
|
|
private final String message;
|
2014-08-22 02:40:05 +00:00
|
|
|
private Color color;
|
2014-08-21 23:44:51 +00:00
|
|
|
|
|
|
|
public BTC_ConsoleMessage(final String message)
|
|
|
|
{
|
|
|
|
this.message = message;
|
|
|
|
this.color = Color.BLACK;
|
|
|
|
}
|
|
|
|
|
|
|
|
public BTC_ConsoleMessage(final String message, final Color color)
|
|
|
|
{
|
|
|
|
this.message = message;
|
|
|
|
this.color = color;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getMessage()
|
|
|
|
{
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Color getColor()
|
|
|
|
{
|
|
|
|
return color;
|
|
|
|
}
|
2014-08-22 02:40:05 +00:00
|
|
|
|
|
|
|
public void setColor(Color color)
|
|
|
|
{
|
|
|
|
this.color = color;
|
|
|
|
}
|
2014-08-21 23:44:51 +00:00
|
|
|
}
|