All pastes #708307 Raw Edit

Ahmed

public java v1 · immutable
#708307 ·published 2007-09-23 19:13 UTC
rendered paste body
/* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */package net.sf.l2j.gameserver.model.entity;import net.sf.l2j.gameserver.ThreadPoolManager;/** This class organizes and calls upon ALL event tasks for the L2J Oneo Event Automation System. * * * @author  Ahmed */public class L2JOneoEventManager{	private static L2JOneoEventManager _instance = null;	public L2JOneoEventManager()	{		L2JOneoEventManager();	}	public void L2JOneoEventManager()	{				System.out.println("L2J Oneo Event Manager starting TvT Task.");				ThreadPoolManager.getInstance().scheduleGeneral(new TvTTask(), 0);				System.out.println("L2J Oneo Event Manager starting VIP Task.");				ThreadPoolManager.getInstance().scheduleGeneral(new VipTask(), 0);	}	public static L2JOneoEventManager getInstance()	{		if (_instance == null)		{            System.out.println("Initializing L2JOneo Event Manager");			_instance = new L2JOneoEventManager();		}		return _instance;	}}