Class Msg

java.lang.Object
net.slommy.utils.Msg

public class Msg extends Object
Helper methods to allow for easy communication with players.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Msg()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.kyori.adventure.text.Component
     
    static void
    send(net.kyori.adventure.audience.Audience audience, String message)
     
    static void
    send(net.kyori.adventure.audience.Audience audience, String message, boolean useColour)
     
    static void
    send(net.kyori.adventure.audience.Audience audience, String message, String prefix)
     
    static void
    toast(net.minestom.server.entity.Player player, net.minestom.server.item.ItemStack itemDisplay, String message)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Msg

      public Msg()
  • Method Details

    • send

      public static void send(net.kyori.adventure.audience.Audience audience, String message, boolean useColour)
    • send

      public static void send(net.kyori.adventure.audience.Audience audience, String message, String prefix)
    • send

      public static void send(net.kyori.adventure.audience.Audience audience, String message)
    • component

      public static net.kyori.adventure.text.Component component(String text)
    • toast

      public static void toast(net.minestom.server.entity.Player player, net.minestom.server.item.ItemStack itemDisplay, String message)