Merged with released L2J-Unity files.
This commit is contained in:
@@ -22,7 +22,7 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.L2GameClient;
|
||||
import com.l2jmobius.gameserver.network.client.L2GameClient;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.EtcStatusUpdate;
|
||||
|
||||
/**
|
||||
@@ -126,7 +126,7 @@ public class ChatBanHandler implements IPunishmentHandler
|
||||
*/
|
||||
private static void applyToPlayer(PunishmentTask task, L2PcInstance player)
|
||||
{
|
||||
final long delay = (task.getExpirationTime() - System.currentTimeMillis()) / 1000;
|
||||
final long delay = ((task.getExpirationTime() - System.currentTimeMillis()) / 1000);
|
||||
if (delay > 0)
|
||||
{
|
||||
player.sendMessage("You've been chat banned for " + (delay > 60 ? ((delay / 60) + " minutes.") : delay + " seconds."));
|
||||
|
||||
Reference in New Issue
Block a user