Class MessagesBase

java.lang.Object
me.lokka30.levelledmobs.commands.MessagesBase
Direct Known Subclasses:
DebugSubcommand, InfoSubcommand, KillSubcommand, PlayerInteractEventListener, RulesSubcommand, SpawnerBaseClass, SummonSubcommand

public class MessagesBase extends Object
Provides common functions for showing messages stored in messages.yml to the user
Since:
3.3.0
  • Field Details

    • main

      protected final LevelledMobs main
    • messageLabel

      protected String messageLabel
    • commandSender

      protected org.bukkit.command.CommandSender commandSender
  • Constructor Details

  • Method Details

    • showMessage

      protected void showMessage(@NotNull @NotNull String path)
    • showMessage

      protected void showMessage(@NotNull @NotNull String path, @NotNull @NotNull org.bukkit.command.CommandSender sender)
    • showMessage

      protected void showMessage(@NotNull @NotNull String path, @NotNull @NotNull String replaceWhat, @NotNull @NotNull String replaceWith)
    • showMessage

      protected void showMessage(@NotNull @NotNull String path, String @NotNull [] replaceWhat, String @NotNull [] replaceWith)
    • showMessage

      protected void showMessage(@NotNull @NotNull String path, String @NotNull [] replaceWhat, String @NotNull [] replaceWith, @NotNull @NotNull org.bukkit.command.CommandSender sender)
    • getMessage

      @NotNull protected @NotNull String getMessage(@NotNull @NotNull String path)
    • getMessage

      @NotNull protected @NotNull List<String> getMessage(@NotNull @NotNull String path, @NotNull @NotNull String replaceWhat, @NotNull @NotNull String replaceWith)
    • getMessage

      @NotNull protected @NotNull List<String> getMessage(@NotNull @NotNull String path, String @NotNull [] replaceWhat, String @NotNull [] replaceWith)