1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 23:13:48 +01:00
Jobs/com/gamingmesh/jobs/container/BossBarInfo.java
2016-03-30 16:42:36 +03:00

40 lines
704 B
Java

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;
}
}