Fixed /buyregion bug (now regions can be bought only one time)

This commit is contained in:
DarkLiKally 2011-02-25 12:40:22 +01:00
parent 0e45dc5a3f
commit 91f9acb633

View File

@ -79,6 +79,7 @@ public boolean handle(CommandSender sender, String senderName, String command, S
DefaultDomain owners = region.getOwners();
owners.addPlayer(player.getName());
region.setOwners(owners);
flags.setFlag("iconomy", "buyable", false);
}
} else {
player.sendMessage(ChatColor.YELLOW + "You have not enough money.");