Prevent players receiving attendance rewards in the same day.
This commit is contained in:
parent
db26087118
commit
61e2ee1f24
@ -14178,12 +14178,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14236,12 +14236,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14250,12 +14250,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14239,12 +14239,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14239,12 +14239,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14245,12 +14245,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14003,12 +14003,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -14010,12 +14010,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -13994,12 +13994,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
@ -13994,12 +13994,12 @@ public final class PlayerInstance extends Playable
|
||||
{
|
||||
if (Config.ATTENDANCE_REWARDS_SHARE_ACCOUNT)
|
||||
{
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getAccountVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getAccountVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis());
|
||||
getVariables().set(ATTENDANCE_DATE_VAR, System.currentTimeMillis() + 86400000); // Now + 24 hours.
|
||||
getVariables().set(ATTENDANCE_INDEX_VAR, rewardIndex);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user