1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 22:13:25 +01:00
Jobs/com/gamingmesh/jobs/container/Title.java
2015-08-21 16:10:08 +03:00

91 lines
2.5 KiB
Java

/**
* Jobs Plugin for Bukkit
* Copyright (C) 2011 Zak Ford <zak.j.ford@gmail.com>
*
* 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.gamingmesh.jobs.container;
import com.gamingmesh.jobs.stuff.ChatColor;
/**
* Container class for titles
* @author Alex
*
*/
public class Title {
private String name = null;
private String shortName = null;
private ChatColor color = ChatColor.WHITE;
private int levelReq = 0;
private String jobName = null;
/**
* Constructor
* @param name - The long name of the title
* @param shortName - the short name of the title
* @param color - the ChatColor of the title
* @param levelReq - the level requirement of the title
* @param jobName - Job this title is made for
*/
public Title(String name, String shortName, ChatColor color, int levelReq, String jobName){
this.name = name;
this.color = color;
this.levelReq = levelReq;
this.shortName = shortName;
this.jobName = jobName;
}
/**
* Function to return the long name of the title
* @return the long name of the title
*/
public String getName(){
return name;
}
/**
* Function to return the job name of the title
* @return the job name of the title
*/
public String getJobName(){
return jobName;
}
/**
* Function to get the ChatColor of the title
* @return the chat colour o the title
*/
public ChatColor getChatColor(){
return color;
}
/**
* Function to get the levelRequirement of the title
* @return the level requirement for the title
*/
public int getLevelReq(){
return levelReq;
}
/**
* Function to get the short name of the title
* @return the short name of the title
*/
public String getShortName(){
return shortName;
}
}