- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
BlackDevilDev
### Eclipse Workspace Patch 1.0
#P L2J_DataPack
Index: dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java
===================================================================
--- dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java (revision 0)
+++ dist/game/data/scripts/handlers/voicedcommandhandlers/BlackDevilCommands.java (working copy)
@@ -0,0 +1,32 @@
+/*
+ * 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 handlers.voicedcommandhandlers;
+
+import com.l2jserver.gameserver.handler.IUserCommandHandler;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+
+
+ public abstract class BlackDevilCommands implements IUserCommandHandler
+{
+ public void useVoicedCommand(String command, L2PcInstance activeChar, String params)
+ {
+ if(command.equalsIgnoreCase("hero"))
+ {
+ activeChar.setHero(true);
+ }
+
+ }
+}
\ No newline at end of file
2 answers to this question
Recommended Posts