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:
Jamix77 2020-01-03 17:27:30 +00:00 committed by Daniel Ginovker
parent a2ef71e80e
commit 1c5eaa4759
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}

View file

@ -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++) {