-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBar
More file actions
31 lines (24 loc) · 642 Bytes
/
Copy pathBar
File metadata and controls
31 lines (24 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package exfly.exfly;
import org.bukkit.Bukkit;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarStyle;
import org.bukkit.boss.BossBar;
import org.bukkit.entity.Player;
public class Bar extends Event{
private BossBar bar;
public Bar() {
}
public BossBar getBar() {
return bar;
}
public void addPlayer(Player player){
bar.addPlayer(player);
}
public void removePlayer(Player player){
bar.removePlayer(player);
}
public void createBar(){
this.bar = Bukkit.createBossBar("残り体力", BarColor.BLUE, BarStyle.SOLID);
bar.setVisible(true);
}
}