mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 06:02:12 -07:00
SPIGOT-2450: Improve scoreboard criteria API, add missing DisplaySlots
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
@@ -48,6 +48,7 @@ import org.bukkit.plugin.messaging.Messenger;
|
||||
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
||||
import org.bukkit.profile.PlayerProfile;
|
||||
import org.bukkit.scheduler.BukkitScheduler;
|
||||
import org.bukkit.scoreboard.Criteria;
|
||||
import org.bukkit.scoreboard.ScoreboardManager;
|
||||
import org.bukkit.structure.StructureManager;
|
||||
import org.bukkit.util.CachedServerIcon;
|
||||
@@ -1308,6 +1309,16 @@ public interface Server extends PluginMessageRecipient {
|
||||
@Nullable
|
||||
ScoreboardManager getScoreboardManager();
|
||||
|
||||
/**
|
||||
* Get (or create) a new {@link Criteria} by its name.
|
||||
*
|
||||
* @param name the criteria name
|
||||
* @return the criteria
|
||||
* @see Criteria Criteria for a list of constants
|
||||
*/
|
||||
@NotNull
|
||||
Criteria getScoreboardCriteria(@NotNull String name);
|
||||
|
||||
/**
|
||||
* Gets an instance of the server's default server-icon.
|
||||
*
|
||||
|
Reference in New Issue
Block a user