Java Code Examples for org.bukkit.Bukkit#getServerName()

The following examples show how to use org.bukkit.Bukkit#getServerName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Violation.java    From Hawk with GNU General Public License v3.0 5 votes vote down vote up
public Violation(HawkPlayer pp, Check check, short vl) {
    this.player = pp.getPlayer();
    this.check = check;
    this.time = System.currentTimeMillis();
    this.ping = (short) ServerUtils.getPing(pp.getPlayer());
    this.vl = vl;
    this.tps = (float) ServerUtils.getTps();
    this.server = Bukkit.getServerName();
}
 
Example 2
Source File: ScoreManager.java    From civcraft with GNU General Public License v2.0 4 votes vote down vote up
public static String getCivKey(Civilization civ) {
	return Bukkit.getServerName()+":"+civ.getName();
}
 
Example 3
Source File: ScoreManager.java    From civcraft with GNU General Public License v2.0 4 votes vote down vote up
public static String getTownKey(Town town) {
	return Bukkit.getServerName()+":"+town.getName();
}