mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
42 lines
1.3 KiB
Java
42 lines
1.3 KiB
Java
|
package com.bukkit.nossr50.vChat;
|
||
|
|
||
|
import java.io.File;
|
||
|
import java.util.HashMap;
|
||
|
import org.bukkit.entity.Player;
|
||
|
import org.bukkit.Server;
|
||
|
import org.bukkit.event.Event.Priority;
|
||
|
import org.bukkit.event.Event;
|
||
|
import org.bukkit.plugin.PluginDescriptionFile;
|
||
|
import org.bukkit.plugin.PluginLoader;
|
||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||
|
import org.bukkit.plugin.PluginManager;
|
||
|
|
||
|
/**
|
||
|
* vChat for Bukkit
|
||
|
*
|
||
|
* @author nossr50
|
||
|
* @author cerevisae
|
||
|
*/
|
||
|
public class vChat extends JavaPlugin {
|
||
|
private final vPlayerListener playerListener = new vPlayerListener(this);
|
||
|
private final HashMap<Player, Boolean> debugees = new HashMap<Player, Boolean>();
|
||
|
|
||
|
public vChat(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File folder, File plugin, ClassLoader cLoader) {
|
||
|
super(pluginLoader, instance, desc, folder, plugin, cLoader);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
public void onEnable() {
|
||
|
PluginManager pm = getServer().getPluginManager();
|
||
|
pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Priority.Normal, this);
|
||
|
PluginDescriptionFile pdfFile = this.getDescription();
|
||
|
System.out.println( pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!" );
|
||
|
}
|
||
|
public void onDisable() {
|
||
|
System.out.println("vChat Disabled!");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|