Additional voiced commands for auto potions.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Auto Potion Settings
|
# Auto Potion Settings
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Use .apon / .apoff voiced commands to enable / disable.
|
# Use .apon / .apoff or .potionon / .potionoff commands to enable / disable.
|
||||||
|
|
||||||
# Enable auto potion commands.
|
# Enable auto potion commands.
|
||||||
AutoPotionsEnabled = false
|
AutoPotionsEnabled = false
|
||||||
|
@@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
private static final String[] VOICED_COMMANDS =
|
private static final String[] VOICED_COMMANDS =
|
||||||
{
|
{
|
||||||
"apon",
|
"apon",
|
||||||
"apoff"
|
"apoff",
|
||||||
|
"potionon",
|
||||||
|
"potionoff"
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.equals("apon"))
|
switch (command)
|
||||||
{
|
{
|
||||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
case "apon":
|
||||||
activeChar.sendMessage("Auto potions is enabled.");
|
case "potionon":
|
||||||
}
|
{
|
||||||
else if (command.equals("apoff"))
|
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||||
{
|
activeChar.sendMessage("Auto potions is enabled.");
|
||||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
break;
|
||||||
activeChar.sendMessage("Auto potions is disabled.");
|
}
|
||||||
|
case "apoff":
|
||||||
|
case "potionoff":
|
||||||
|
{
|
||||||
|
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||||
|
activeChar.sendMessage("Auto potions is disabled.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user