Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.comphenix.protocol.ProtocolLibrary;
- import com.comphenix.protocol.ProtocolManager;
- import org.bukkit.plugin.Plugin;
- import org.bukkit.plugin.java.JavaPlugin;
- /**
- * @author VINETOS on 08/11/2015.
- */
- public class Main extends JavaPlugin {
- private static Plugin pl;
- private static ProtocolManager protocolManager;
- @Override
- public void onEnable() {
- pl = this;
- if(getServer().getPluginManager().getPlugin("ProtocolLib") == null){
- /*Il n'y a pas la dépendance*/
- getServer().getPluginManager().disablePlugin(this);
- }
- protocolManager = ProtocolLibrary.getProtocolManager();
- Listener.listenChatPackets();
- }
- public static Plugin getInstance(){
- return pl;
- }
- public static ProtocolManager getprotocolManager(){
- return protocolManager;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment