1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-05 00:43:44 +01:00
Jobs/com/gamingmesh/jobs/container/BossBarInfo.java

40 lines
704 B
Java
Raw Normal View History

2016-03-30 15:42:36 +02:00
package com.gamingmesh.jobs.container;
import org.bukkit.Bukkit;
import org.bukkit.boss.BossBar;
public class BossBarInfo {
String jobName;
String PlayerName;
BossBar bar;
int id = -1;
public BossBarInfo(String PlayerName, String jobName, BossBar bar) {
this.PlayerName =PlayerName;
this.jobName = jobName;
this.bar = bar;
}
public void setId(int id) {
cancel();
this.id = id;
}
public void cancel() {
if (id != -1)
Bukkit.getScheduler().cancelTask(this.id);
}
public String getPlayerName() {
return this.PlayerName;
}
public String getJobName() {
return this.jobName;
}
public BossBar getBar() {
return this.bar;
}
}