Class StandaloneAction

java.lang.Object
com.kamikazejam.kamicommon.actions.StandaloneAction

public class StandaloneAction extends Object
  • Field Details

    • click

      @Nullable public @Nullable Click click
    • hover

      @Nullable public @Nullable Hover hover
  • Constructor Details

    • StandaloneAction

      public StandaloneAction(@NotNull @NotNull String placeholder, @NotNull @NotNull String replacement)
  • Method Details

    • setClickRunCommand

      public StandaloneAction setClickRunCommand(String command)
      Parameters:
      command - The command the player runs, when clicked (STARTS WITH '/')
    • setClickSuggestCommand

      public StandaloneAction setClickSuggestCommand(String suggestion)
      Parameters:
      suggestion - The command/text to suggest to the player, when clicked
    • setClickOpenURL

      public StandaloneAction setClickOpenURL(String url)
      Parameters:
      url - The url to open, when clicked
    • setHoverText

      public StandaloneAction setHoverText(String text)
      Parameters:
      text - The text to show when hovering