--- a/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
+++ b/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
@@ -9450,7 +9451,7 @@
{
if (_taskWarnUserTakeBreak == null)
{
- _taskWarnUserTakeBreak = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new WarnUserTakeBreakTask(this), 7200000, 7200000);
+ _taskWarnUserTakeBreak = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new WarnUserTakeBreakTask(this), 3600000, 3600000, TimeUnit.MILLISECONDS);
}
}
--- a/java/com/l2jserver/gameserver/model/actor/tasks/player/WarnUserTakeBreakTask.java
+++ b/java/com/l2jserver/gameserver/model/actor/tasks/player/WarnUserTakeBreakTask.java
@@ -18,8 +18,11 @@
*/
package com.l2jserver.gameserver.model.actor.tasks.player;
+import java.util.concurrent.TimeUnit;
+
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.SystemMessageId;
+import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
/**
* Task dedicated to warn user to take a break.
@@ -41,7 +44,8 @@
{
if (_player.isOnline())
{
- _player.sendPacket(SystemMessageId.PLAYING_FOR_LONG_TIME);
- final long hours = TimeUnit.MILLISECONDS.toHours(_player.getUptime());
- _player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_BEEN_PLAYING_FOR_AN_EXTENDED_PERIOD_OF_TIME_S1_PLEASE_CONSIDER_TAKING_A_BREAK).addLong(hours));
}
else
{
--- a/java/com/l2jserver/gameserver/network/SystemMessageId.java
+++ b/java/com/l2jserver/gameserver/network/SystemMessageId.java
@@ -4401,7 +4401,7 @@
* ID: 764<br>
* Message: You have been playing for an extended period of time. Please consider taking a break.
*/
- public static final SystemMessageId PLAYING_FOR_LONG_TIME = new SystemMessageId(764);
+ public static final SystemMessageId YOU_HAVE_BEEN_PLAYING_FOR_AN_EXTENDED_PERIOD_OF_TIME_S1_PLEASE_CONSIDER_TAKING_A_BREAK = new SystemMessageId(764);
/**
* ID: 769<br>