Voiced command should return true if successful.
This commit is contained in:
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/AutoPotion.java
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Vendored
+2
-2
@@ -49,14 +49,14 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
return true;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
}
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user