Disable Tutorial config.

This commit is contained in:
MobiusDev
2016-07-06 18:26:20 +00:00
parent 88b1fc057d
commit b234222668
8 changed files with 70 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
*/
package quests;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.HtmlActionScope;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -200,6 +201,11 @@ public abstract class LetterQuest extends Quest
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
final QuestState st = getQuestState(player, false);
@@ -215,6 +221,11 @@ public abstract class LetterQuest extends Quest
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void OnPlayerLogin(OnPlayerLogin event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
final QuestState st = getQuestState(player, false);