mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-11 09:00:23 -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);
|
||||
|
||||
//Fix for issue #11 for shops keeping dialogue open.
|
||||
player.getDialogueInterpreter().getDialogue().end();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,10 @@ public final class BetaCommandPlugin extends CommandPlugin {
|
|||
int id, amount;
|
||||
Player p;
|
||||
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":
|
||||
int index = 0;
|
||||
for (int i = 8349; i < 8367; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue