Class ChatManagement

java.lang.Object
com.booksaw.betterTeams.events.ChatManagement
All Implemented Interfaces:
org.bukkit.event.Listener

public class ChatManagement extends Object implements org.bukkit.event.Listener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final List<org.bukkit.command.CommandSender>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    void
    onChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
    This detects when the player speaks and either adds a prefix or puts the message in the team chat
    void
    spyQuit(org.bukkit.event.player.PlayerQuitEvent e)
     

    Methods inherited from class java.lang.Object

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

    • spy

      public final List<org.bukkit.command.CommandSender> spy
  • Constructor Details

    • ChatManagement

      public ChatManagement()
  • Method Details

    • enable

      public static void enable()
    • onChat

      public void onChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
      This detects when the player speaks and either adds a prefix or puts the message in the team chat
      Parameters:
      event - the chat event
    • spyQuit

      public void spyQuit(org.bukkit.event.player.PlayerQuitEvent e)