From fb52876f790c21f91fa40b815c02eb6c240ce3e8 Mon Sep 17 00:00:00 2001
From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Fri, 31 Jan 2020 00:31:39 +0000
Subject: [PATCH] Removal of StatsVCmd class.
---
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 85 -------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 85 -------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
.../data/scripts/handlers/MasterHandler.java | 3 -
.../voicedcommandhandlers/StatsVCmd.java | 82 ------------------
34 files changed, 1451 deletions(-)
delete mode 100644 L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
delete mode 100644 L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java
index 6ab4bcd0b9..2591f58ad9 100644
--- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/MasterHandler.java
@@ -338,7 +338,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -588,8 +587,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java
index 671a42e759..1fee85e747 100644
--- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/MasterHandler.java
@@ -339,7 +339,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -590,8 +589,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java
index ace92cdf21..9ff84f140c 100644
--- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java
index ace92cdf21..9ff84f140c 100644
--- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/MasterHandler.java
index ace92cdf21..9ff84f140c 100644
--- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/MasterHandler.java
index ace92cdf21..9ff84f140c 100644
--- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/MasterHandler.java
index 8bffd7d1b4..da3d6d3bee 100644
--- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/MasterHandler.java
@@ -341,7 +341,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -594,8 +593,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/MasterHandler.java
index 8bffd7d1b4..da3d6d3bee 100644
--- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/MasterHandler.java
@@ -341,7 +341,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -594,8 +593,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/MasterHandler.java
index 5749550cba..e6620779f6 100644
--- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/MasterHandler.java
@@ -301,7 +301,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
import handlers.voicedcommandhandlers.Wedding;
/**
@@ -556,8 +555,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 626f8d08ea..0000000000
--- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- for (PlayerInstance plr : pc.getEventStatus().getKills())
- {
- replyMSG.append("" + plr.getName() + "
");
- }
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java
index b20ba7e828..def51cbcbb 100644
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java
@@ -302,7 +302,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
import handlers.voicedcommandhandlers.Wedding;
/**
@@ -558,8 +557,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 626f8d08ea..0000000000
--- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- for (PlayerInstance plr : pc.getEventStatus().getKills())
- {
- replyMSG.append("" + plr.getName() + "
");
- }
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/MasterHandler.java
index e58d65bd02..36f36e4f4e 100644
--- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/MasterHandler.java
@@ -339,7 +339,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -590,8 +589,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/MasterHandler.java
index e58d65bd02..36f36e4f4e 100644
--- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/MasterHandler.java
@@ -339,7 +339,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -590,8 +589,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/MasterHandler.java
index e58d65bd02..36f36e4f4e 100644
--- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/MasterHandler.java
@@ -339,7 +339,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -590,8 +589,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/MasterHandler.java
index e58d65bd02..36f36e4f4e 100644
--- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/MasterHandler.java
@@ -339,7 +339,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -590,8 +589,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/MasterHandler.java
index 81042bf7b2..349549f33d 100644
--- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/MasterHandler.java
index 81042bf7b2..349549f33d 100644
--- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}
diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/MasterHandler.java
index b98f1e52f8..89d8b22333 100644
--- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/MasterHandler.java
+++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/MasterHandler.java
@@ -340,7 +340,6 @@ import handlers.voicedcommandhandlers.ChangePassword;
import handlers.voicedcommandhandlers.ChatAdmin;
import handlers.voicedcommandhandlers.Lang;
import handlers.voicedcommandhandlers.Premium;
-import handlers.voicedcommandhandlers.StatsVCmd;
/**
* Master handler.
@@ -592,8 +591,6 @@ public class MasterHandler
SiegeStatus.class,
},
{
- // Voiced Command Handlers
- StatsVCmd.class,
// TODO: Add configuration options for this voiced commands:
// CastleVCmd.class,
// SetVCmd.class,
diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
deleted file mode 100644
index 266129c04a..0000000000
--- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/StatsVCmd.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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 .
- */
-package handlers.voicedcommandhandlers;
-
-import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
-import org.l2jmobius.gameserver.model.World;
-import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
-import org.l2jmobius.gameserver.model.entity.GameEvent;
-import org.l2jmobius.gameserver.network.SystemMessageId;
-import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
-import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
-
-/**
- * @author Zoey76.
- */
-public class StatsVCmd implements IVoicedCommandHandler
-{
- private static final String[] VOICED_COMMANDS =
- {
- "stats"
- };
-
- @Override
- public boolean useVoicedCommand(String command, PlayerInstance activeChar, String params)
- {
- if (!command.equals("stats") || (params == null) || params.isEmpty())
- {
- activeChar.sendMessage("Usage: .stats ");
- return false;
- }
-
- final PlayerInstance pc = World.getInstance().getPlayer(params);
- if ((pc == null))
- {
- activeChar.sendPacket(SystemMessageId.THAT_PLAYER_IS_NOT_ONLINE);
- return false;
- }
-
- if (pc.getClient().isDetached())
- {
- final SystemMessage sm = new SystemMessage(SystemMessageId.S1_CURRENTLY_OFFLINE);
- sm.addPcName(pc);
- activeChar.sendPacket(sm);
- return false;
- }
-
- if (!GameEvent.isParticipant(pc) || (pc.getEventStatus() == null))
- {
- activeChar.sendMessage("That player is not an event participant.");
- return false;
- }
-
- final StringBuilder replyMSG = new StringBuilder(300 + (pc.getEventStatus().getKills().size() * 50));
- replyMSG.append("[ L2J EVENT ENGINE ]
Statistics for player " + pc.getName() + "
Total kills " + pc.getEventStatus().getKills().size() + "
Detailed list:
");
- pc.getEventStatus().getKills().forEach((p, k) -> replyMSG.append("" + p.getName() + " killed " + k + " times.
"));
- replyMSG.append("");
- final NpcHtmlMessage adminReply = new NpcHtmlMessage();
- adminReply.setHtml(replyMSG.toString());
- activeChar.sendPacket(adminReply);
- return true;
- }
-
- @Override
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
-}