mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-13 01:51:37 -07:00
Fixes (#49)
Fixed #11 and implemented a beta command for testing (stops the need to go into database and manually change when debugging, very slow, now one command in game, very fast)
This commit is contained in:
parent
a2ef71e80e
commit
1c5eaa4759
2 changed files with 8 additions and 0 deletions
|
|
@ -319,6 +319,10 @@ public class NPC extends Entity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
shop.open(player);
|
shop.open(player);
|
||||||
|
|
||||||
|
//Fix for issue #11 for shops keeping dialogue open.
|
||||||
|
player.getDialogueInterpreter().getDialogue().end();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@ public final class BetaCommandPlugin extends CommandPlugin {
|
||||||
int id, amount;
|
int id, amount;
|
||||||
Player p;
|
Player p;
|
||||||
switch (name) {
|
switch (name) {
|
||||||
|
case "rights":
|
||||||
|
player.getDetails().setRights(Rights.forId(Integer.parseInt(args[1])));
|
||||||
|
player.sendMessage("Set rights to " + Rights.forId(Integer.parseInt(args[1])).name());
|
||||||
|
break;
|
||||||
case "lo":
|
case "lo":
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (int i = 8349; i < 8367; i++) {
|
for (int i = 8349; i < 8367; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue