Fix BlackJack / Live Update
This commit is contained in:
@@ -83,7 +83,7 @@ import org.slf4j.LoggerFactory;
|
||||
@Slf4j
|
||||
public class RuneLite
|
||||
{
|
||||
public static final String RUNELIT_VERSION = "2.0.0";
|
||||
public static final String RUNELIT_VERSION = "2.0.1-1";
|
||||
public static final File RUNELITE_DIR = new File(System.getProperty("user.home"), ".runelite");
|
||||
public static final File PROFILES_DIR = new File(RUNELITE_DIR, "profiles");
|
||||
public static final File PLUGIN_DIR = new File(RUNELITE_DIR, "plugins");
|
||||
|
||||
@@ -40,6 +40,7 @@ import net.runelite.client.menus.MenuManager;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
import net.runelite.client.plugins.PluginDescriptor;
|
||||
import net.runelite.client.plugins.PluginType;
|
||||
import net.runelite.client.util.MenuUtil;
|
||||
import net.runelite.client.util.Text;
|
||||
import org.apache.commons.lang3.RandomUtils;
|
||||
|
||||
@@ -58,13 +59,11 @@ import org.apache.commons.lang3.RandomUtils;
|
||||
@Slf4j
|
||||
public class BlackjackPlugin extends Plugin
|
||||
{
|
||||
private static final int POLLNIVNEACH_REGION = 13358;
|
||||
@Inject
|
||||
private Client client;
|
||||
|
||||
@Inject
|
||||
private MenuManager menuManager;
|
||||
|
||||
private static final int POLLNIVNEACH_REGION = 13358;
|
||||
private boolean isKnockedOut = false;
|
||||
private long nextKnockOutTick = 0;
|
||||
|
||||
@@ -82,11 +81,11 @@ public class BlackjackPlugin extends Plugin
|
||||
String target = Text.removeTags(event.getTarget().toLowerCase());
|
||||
if (isKnockedOut && nextKnockOutTick >= client.getTickCount())
|
||||
{
|
||||
menuManager.addSwap("", target, "pickpocket", target, false, false);
|
||||
MenuUtil.swap(client, "pickpocket", option, target);
|
||||
}
|
||||
else
|
||||
{
|
||||
menuManager.addSwap("", target, "knock-out", target, false, false);
|
||||
MenuUtil.swap(client, "knock-out", option, target);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ import net.runelite.http.api.RuneLiteAPI;
|
||||
|
||||
public class Bootstrap
|
||||
{
|
||||
|
||||
String buildCommit = "c554ab2400dc04a619b36695da2107648c9c87b3";
|
||||
Artifact[] artifacts = getArtifacts();
|
||||
Client client = new Client();
|
||||
String[] clientJvm9Arguments = new String[]{
|
||||
|
||||
Reference in New Issue
Block a user