Class Chat

java.lang.Object
fr.prodrivers.bukkit.commons.Chat

public class Chat extends Object
Chat helper for Prodrivers plugins. Expose simple send functions to send messages to players. Handles prefix and colors directly.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Chat(String name)
    Constructor for the Chat helper for Prodrivers plugins
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    error(org.bukkit.command.CommandSender receiver, String message)
    Error message receiver
    void
    send(org.bukkit.command.CommandSender receiver, String message)
    Generic message receiver
    void
    success(org.bukkit.command.CommandSender receiver, String message)
    Success message receiver

    Methods inherited from class java.lang.Object

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

    • Chat

      public Chat(String name)
      Constructor for the Chat helper for Prodrivers plugins
      Parameters:
      name - Name to display in the prefix (usually plugin's name)
  • Method Details

    • send

      public void send(org.bukkit.command.CommandSender receiver, String message)
      Generic message receiver
      Parameters:
      receiver - Receiving entity
      message - Message to send
    • success

      public void success(org.bukkit.command.CommandSender receiver, String message)
      Success message receiver
      Parameters:
      receiver - Receiving entity
      message - Success message to send
    • error

      public void error(org.bukkit.command.CommandSender receiver, String message)
      Error message receiver
      Parameters:
      receiver - Receiving entity
      message - Error message to send