mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-26 01:01:42 +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();
|
DefaultDomain owners = region.getOwners();
|
||||||
owners.addPlayer(player.getName());
|
owners.addPlayer(player.getName());
|
||||||
region.setOwners(owners);
|
region.setOwners(owners);
|
||||||
|
flags.setFlag("iconomy", "buyable", false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(ChatColor.YELLOW + "You have not enough money.");
|
player.sendMessage(ChatColor.YELLOW + "You have not enough money.");
|
||||||
|
Loading…
Reference in New Issue
Block a user