Re-addition of the RewardRequest class.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExOneDayReceiveRewardList;
|
||||
@@ -53,6 +55,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -68,5 +76,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
}
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExOneDayReceiveRewardList;
|
||||
@@ -53,6 +55,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -68,5 +76,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
}
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.pledgeV2.ExPledgeMissionInfo;
|
||||
@@ -54,6 +56,12 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> reward = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((reward != null) && !reward.isEmpty())
|
||||
{
|
||||
@@ -61,5 +69,7 @@ public class RequestExPledgeMissionReward implements ClientPacket
|
||||
client.sendPacket(new ExPledgeMissionRewardCount(player));
|
||||
client.sendPacket(new ExPledgeMissionInfo(player));
|
||||
}
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExOneDayReceiveRewardList;
|
||||
@@ -53,6 +55,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -68,5 +76,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
}
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.actor.request;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class RewardRequest extends AbstractRequest
|
||||
{
|
||||
public RewardRequest(Player player)
|
||||
{
|
||||
super(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isUsing(int objectId)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -19,9 +19,11 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.commons.network.ReadablePacket;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.DailyMissionData;
|
||||
import org.l2jmobius.gameserver.model.DailyMissionDataHolder;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.RewardRequest;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.ClientPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.dailymission.ExConnectedTimeAndGettableReward;
|
||||
@@ -54,6 +56,12 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.hasRequest(RewardRequest.class))
|
||||
{
|
||||
return;
|
||||
}
|
||||
player.addRequest(new RewardRequest(player));
|
||||
|
||||
final Collection<DailyMissionDataHolder> rewards = DailyMissionData.getInstance().getDailyMissionData(_id);
|
||||
if ((rewards == null) || rewards.isEmpty())
|
||||
{
|
||||
@@ -70,5 +78,7 @@ public class RequestOneDayRewardReceive implements ClientPacket
|
||||
|
||||
player.sendPacket(new ExOneDayReceiveRewardList(player, true));
|
||||
player.sendPacket(new ExConnectedTimeAndGettableReward(player));
|
||||
|
||||
ThreadPool.schedule(() -> player.removeRequest(RewardRequest.class), 50);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user