Addition of OnServerStart event.
This commit is contained in:
parent
2ec22b0f56
commit
cbeca82b65
@ -144,6 +144,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -410,6 +412,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -280,14 +281,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -148,6 +148,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -418,6 +420,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -280,14 +281,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -148,6 +148,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -418,6 +420,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -280,14 +281,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -148,6 +148,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -418,6 +420,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -280,14 +281,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -150,6 +150,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -422,6 +424,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -150,6 +150,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -422,6 +424,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -151,6 +151,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -424,6 +426,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -154,6 +154,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -430,6 +432,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -156,6 +156,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -434,6 +436,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -158,6 +158,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -438,6 +440,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -160,6 +160,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -442,6 +444,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.ceremonyofchaos.OnCeremonyOfChaosMatchResult;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
@ -286,14 +287,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -127,6 +127,8 @@ import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.AutoSpawnHandler;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.partymatching.PartyMatchRoomList;
|
||||
@ -392,6 +394,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -211,7 +212,10 @@ public enum EventType
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class);
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -140,6 +140,8 @@ import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.AutoSpawnHandler;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.partymatching.PartyMatchRoomList;
|
||||
@ -422,6 +424,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -217,7 +218,10 @@ public enum EventType
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class);
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -141,6 +141,8 @@ import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.AutoSpawnHandler;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.partymatching.PartyMatchRoomList;
|
||||
@ -424,6 +426,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -217,7 +218,10 @@ public enum EventType
|
||||
ON_PLAYER_TRANSFORM(OnPlayerTransform.class, void.class),
|
||||
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class);
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -140,6 +140,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -405,6 +407,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -278,14 +279,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -143,6 +143,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -413,6 +415,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -278,14 +279,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -146,6 +146,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -419,6 +421,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -278,14 +279,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -146,6 +146,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -419,6 +421,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -278,14 +279,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -147,6 +147,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -421,6 +423,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -278,14 +279,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -148,6 +148,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -423,6 +425,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -150,6 +150,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -427,6 +429,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -149,6 +149,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -425,6 +427,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -152,6 +152,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -431,6 +433,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -145,6 +145,8 @@ import org.l2jmobius.gameserver.instancemanager.games.Lottery;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.network.ClientNetworkManager;
|
||||
@ -415,6 +417,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -276,14 +277,16 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
ON_INSTANCE_DESTROY(OnInstanceDestroy.class, void.class),
|
||||
ON_INSTANCE_ENTER(OnInstanceEnter.class, void.class),
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class);
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -160,6 +160,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -447,6 +449,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -165,6 +165,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -457,6 +459,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
@ -169,6 +169,8 @@ import org.l2jmobius.gameserver.instancemanager.events.EventDropManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.games.MonsterRace;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Hero;
|
||||
import org.l2jmobius.gameserver.model.olympiad.Olympiad;
|
||||
import org.l2jmobius.gameserver.model.vip.VipManager;
|
||||
@ -465,6 +467,11 @@ public class GameServer
|
||||
CustomMailManager.getInstance();
|
||||
}
|
||||
|
||||
if (EventDispatcher.getInstance().hasListener(EventType.ON_SERVER_START))
|
||||
{
|
||||
EventDispatcher.getInstance().notifyEventAsync(new OnServerStart());
|
||||
}
|
||||
|
||||
PunishmentManager.getInstance();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Shutdown.getInstance());
|
||||
|
@ -19,6 +19,7 @@ package org.l2jmobius.gameserver.model.events;
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnDayNightChange;
|
||||
import org.l2jmobius.gameserver.model.events.impl.OnServerStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarFinish;
|
||||
import org.l2jmobius.gameserver.model.events.impl.clan.OnClanWarStart;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.OnCreatureAttack;
|
||||
@ -280,7 +281,9 @@ public enum EventType
|
||||
// Trap events
|
||||
ON_TRAP_ACTION(OnTrapAction.class, void.class),
|
||||
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class),
|
||||
// Elemental spirit events
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class),
|
||||
|
||||
// Instance events
|
||||
ON_INSTANCE_CREATED(OnInstanceCreated.class, void.class),
|
||||
@ -289,8 +292,9 @@ public enum EventType
|
||||
ON_INSTANCE_LEAVE(OnInstanceLeave.class, void.class),
|
||||
ON_INSTANCE_STATUS_CHANGE(OnInstanceStatusChange.class, void.class),
|
||||
|
||||
ON_ELEMENTAL_SPIRIT_UPGRADE(OnElementalSpiritUpgrade.class, void.class),
|
||||
ON_ELEMENTAL_SPIRIT_LEARN(OnElementalSpiritLearn.class, void.class);
|
||||
// Server events
|
||||
ON_SERVER_START(OnServerStart.class, void.class),
|
||||
ON_DAY_NIGHT_CHANGE(OnDayNightChange.class, void.class);
|
||||
|
||||
private final Class<? extends IBaseEvent> _eventClass;
|
||||
private final Class<?>[] _returnClass;
|
||||
|
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl;
|
||||
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class OnServerStart implements IBaseEvent
|
||||
{
|
||||
public OnServerStart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventType getType()
|
||||
{
|
||||
return EventType.ON_SERVER_START;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user