mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 05:15:11 +00:00
Removed player completion checker.
This commit is contained in:
1 parent
f301f8fcbb
commit
e4eb0e9cd8
2 files changed
-12
No files matched your search
@@ -60,9 +60,6 @@ public class CustomNpcs {
|
||||
@ConfigProp(info = "Set to true if you want the dialog command option to be able to use op commands like tp etc")
|
||||
public static boolean NpcUseOpCommands = false;
|
||||
|
||||
@ConfigProp(info = "The amount of time that passes before a player's quests are checked for completion in seconds.")
|
||||
public static int PlayerQuestCheck = 300;
|
||||
|
||||
@ConfigProp(info = "Client sided! Determines where tracking quest info shows up on the screen based on a number from 0 to 8. Default: 3")
|
||||
public static int TrackingInfoAlignment = 3;
|
||||
|
||||
@@ -171,9 +168,6 @@ public class CustomNpcs {
|
||||
if(NpcSizeLimit < 1)
|
||||
NpcSizeLimit = 1;
|
||||
|
||||
if(PlayerQuestCheck < 1)
|
||||
PlayerQuestCheck = 1;
|
||||
|
||||
if (TrackingInfoAlignment < 0)
|
||||
TrackingInfoAlignment = 0;
|
||||
if (TrackingInfoAlignment > 8)
|
||||
|
||||
@@ -59,12 +59,6 @@ public class ScriptPlayerEventHandler {
|
||||
if(playerData.timers.size() > 0)
|
||||
playerData.timers.update();
|
||||
}
|
||||
|
||||
if(player.ticksExisted%(20*CustomNpcs.PlayerQuestCheck) == 0){
|
||||
PlayerQuestData questData = playerData.questData;
|
||||
for(EnumQuestType e : EnumQuestType.values())
|
||||
questData.checkQuestCompletion(playerData, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user