Additional voiced commands for auto potions.
This commit is contained in:
parent
6937446702
commit
b73d3fc78b
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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.
|
||||
AutoPotionsEnabled = false
|
||||
|
@ -29,7 +29,9 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
private static final String[] VOICED_COMMANDS =
|
||||
{
|
||||
"apon",
|
||||
"apoff"
|
||||
"apoff",
|
||||
"potionon",
|
||||
"potionoff"
|
||||
};
|
||||
|
||||
@Override
|
||||
@ -45,15 +47,22 @@ public class AutoPotion implements IVoicedCommandHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
if (command.equals("apon"))
|
||||
switch (command)
|
||||
{
|
||||
case "apon":
|
||||
case "potionon":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().add(activeChar);
|
||||
activeChar.sendMessage("Auto potions is enabled.");
|
||||
break;
|
||||
}
|
||||
else if (command.equals("apoff"))
|
||||
case "apoff":
|
||||
case "potionoff":
|
||||
{
|
||||
AutoPotionTaskManager.getInstance().remove(activeChar);
|
||||
activeChar.sendMessage("Auto potions is disabled.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user