mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +01:00
Fixed /buyregion bug (now regions can be bought only one time)
This commit is contained in:
parent
0e45dc5a3f
commit
91f9acb633
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user