Addition of AttendancePopupStart configuration.

This commit is contained in:
MobiusDevelopment
2020-12-17 22:30:01 +00:00
parent b3e3c1bb95
commit 8f718e68b4
48 changed files with 176 additions and 0 deletions

View File

@ -155,6 +155,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;
@ -1506,6 +1507,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)

View File

@ -648,6 +648,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)