Addition of AttendancePopupStart configuration.
This commit is contained in:
		@@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False
 | 
			
		||||
# Retail: 30
 | 
			
		||||
AttendanceRewardDelay = 30
 | 
			
		||||
 | 
			
		||||
# Popup the reward window when player enters the game.
 | 
			
		||||
# Default: True
 | 
			
		||||
AttendancePopupStart = True
 | 
			
		||||
 | 
			
		||||
# Popup the reward window if reward is available 30 minutes after login.
 | 
			
		||||
# Default: False
 | 
			
		||||
AttendancePopupWindow = False
 | 
			
		||||
 
 | 
			
		||||
@@ -154,6 +154,7 @@ public class Config
 | 
			
		||||
	public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS;
 | 
			
		||||
	public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT;
 | 
			
		||||
	public static int ATTENDANCE_REWARD_DELAY;
 | 
			
		||||
	public static boolean ATTENDANCE_POPUP_START;
 | 
			
		||||
	public static boolean ATTENDANCE_POPUP_WINDOW;
 | 
			
		||||
	public static boolean PLAYER_DELEVEL;
 | 
			
		||||
	public static int DELEVEL_MINIMUM;
 | 
			
		||||
@@ -1492,6 +1493,7 @@ public class Config
 | 
			
		||||
			PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false);
 | 
			
		||||
			ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false);
 | 
			
		||||
			ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30);
 | 
			
		||||
			ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true);
 | 
			
		||||
			ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false);
 | 
			
		||||
			
 | 
			
		||||
			// Load AttributeSystem config file (if exists)
 | 
			
		||||
 
 | 
			
		||||
@@ -650,6 +650,11 @@ public class EnterWorld implements IClientIncomingPacket
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000);
 | 
			
		||||
			
 | 
			
		||||
			if (Config.ATTENDANCE_POPUP_START)
 | 
			
		||||
			{
 | 
			
		||||
				player.sendPacket(new ExVipAttendanceItemList(player));
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		if (Config.HARDWARE_INFO_ENABLED)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user