/****************************************************************************** * Multiverse 2 Copyright (c) the Multiverse Team 2011. * * Multiverse 2 is licensed under the BSD License. * * For more information please check the README.md file included * * with this project. * ******************************************************************************/ package com.onarandombox.MultiverseCore.listeners; import java.util.logging.Level; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerChatEvent; import com.onarandombox.MultiverseCore.MultiverseCore; /** * Multiverse's {@link org.bukkit.event.Listener} for players. */ @SuppressWarnings("deprecation") // this exists only for downwards compatibility public class MVPlayerChatListener extends MVChatListener { public MVPlayerChatListener(MultiverseCore plugin, MVPlayerListener playerListener) { super(plugin, playerListener); plugin.log(Level.FINE, "Registered PlayerChatEvent listener."); } /** * This method is called when a player wants to chat. * @param event The Event that was fired. */ @EventHandler public void playerChat(PlayerChatEvent event) { this.playerChat(new NormalChatEvent(event)); } }