mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
[FEATURE] Added Randoms to Script
Allows users to add randoms though scripts.
This commit is contained in:
@@ -6,10 +6,10 @@ import org.parabot.core.ui.BotUI;
|
||||
import org.parabot.core.ui.Logger;
|
||||
import org.parabot.environment.api.utils.PBPreferences;
|
||||
import org.parabot.environment.api.utils.Time;
|
||||
import org.parabot.environment.randoms.Random;
|
||||
import org.parabot.environment.randoms.RandomType;
|
||||
import org.parabot.environment.scripts.framework.*;
|
||||
import org.parabot.environment.scripts.framework.Frameworks;
|
||||
import org.parabot.environment.scripts.randoms.Random;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -61,6 +61,11 @@ public class Script implements Runnable {
|
||||
this.frameWork = f;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public final void addRandom(org.parabot.environment.scripts.randoms.Random random) {
|
||||
new IllegalArgumentException("This type of random is deprecated").printStackTrace();
|
||||
}
|
||||
|
||||
public final void addRandom(Random random) {
|
||||
Context.getInstance().getRandomHandler().addRandom(random);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user