package org.monstercraft.irc.plugin.event.events;

import org.bukkit.event.HandlerList;
import org.monstercraft.irc.plugin.event.IRCEvent;
import org.monstercraft.irc.plugin.wrappers.IRCServer;

public class IRCConnectEvent extends IRCEvent {

    public static HandlerList getHandlerList() {
        return IRCConnectEvent.handlers;
    }

    public static final String CUSTOM_TYPE = "org.monstercraft.irc.event.events.IRCConnectEvent";

    private static final HandlerList handlers = new HandlerList();

    private final IRCServer server;

    public IRCConnectEvent(final IRCServer server) {
        this.server = server;
    }

    @Override
    public HandlerList getHandlers() {
        return IRCConnectEvent.handlers;
    }

    public IRCServer getIRCServer() {
        return server;
    }

}
