+ update
This commit is contained in:
parent
592a9d2dbd
commit
25011a7a57
@ -3,6 +3,7 @@ package io.izzel.taboolib.util.lite;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scoreboard.DisplaySlot;
|
import org.bukkit.scoreboard.DisplaySlot;
|
||||||
|
import org.bukkit.scoreboard.Scoreboard;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
@ -57,7 +58,7 @@ public class Scoreboards {
|
|||||||
return elements;
|
return elements;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static org.bukkit.scoreboard.Scoreboard display(Player p, String... elements) {
|
public static Scoreboard display(Player p, String... elements) {
|
||||||
elements = fixLines(elements);
|
elements = fixLines(elements);
|
||||||
try {
|
try {
|
||||||
if (p.getScoreboard() == null || p.getScoreboard() == Bukkit.getScoreboardManager().getMainScoreboard() || p.getScoreboard().getObjectives().size() != 1) {
|
if (p.getScoreboard() == null || p.getScoreboard() == Bukkit.getScoreboardManager().getMainScoreboard() || p.getScoreboard().getObjectives().size() != 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user