Package me.lokka30.levelledmobs.util
Class SpigotUtils
java.lang.Object
me.lokka30.levelledmobs.util.SpigotUtils
Provides function for APIs that are deprecated in Paper but required for use in Spigot
- Since:
- 3.3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
getPlayerDisplayName
(@Nullable org.bukkit.entity.Player player) static @Nullable LivingEntityWrapper
getPlayersKiller
(@NotNull org.bukkit.event.entity.PlayerDeathEvent event, LevelledMobs main) static void
sendHyperlink
(@NotNull org.bukkit.command.CommandSender sender, String message, String url) static void
updateItemDisplayName
(@NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable String displayName) static void
updateItemMetaLore
(@NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable List<String> lore)
-
Constructor Details
-
SpigotUtils
public SpigotUtils()
-
-
Method Details
-
sendHyperlink
-
updateItemMetaLore
-
updateItemDisplayName
public static void updateItemDisplayName(@NotNull @NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable @Nullable String displayName) -
getPlayerDisplayName
@NotNull public static @NotNull String getPlayerDisplayName(@Nullable @Nullable org.bukkit.entity.Player player) -
getPlayersKiller
@Nullable public static @Nullable LivingEntityWrapper getPlayersKiller(@NotNull @NotNull org.bukkit.event.entity.PlayerDeathEvent event, LevelledMobs main)
-