Class SpigotUtils

java.lang.Object
me.lokka30.levelledmobs.util.SpigotUtils

public class SpigotUtils extends Object
Provides function for APIs that are deprecated in Paper but required for use in Spigot
Since:
3.3.0
  • Constructor Details

    • SpigotUtils

      public SpigotUtils()
  • Method Details

    • sendHyperlink

      public static void sendHyperlink(@NotNull @NotNull org.bukkit.command.CommandSender sender, String message, String url)
    • updateItemMetaLore

      public static void updateItemMetaLore(@NotNull @NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable @Nullable List<String> lore)
    • 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)