mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Simplified condition in IslandCreateEvent
This commit is contained in:
parent
02be048192
commit
102ad864e1
@ -32,11 +32,8 @@ public class IslandCreateCommand extends CompositeCommand {
|
||||
|
||||
@Override
|
||||
public boolean execute(User user, String label, List<String> args) {
|
||||
if (getIslands().hasIsland(getWorld(), user.getUniqueId())) {
|
||||
user.sendMessage("general.errors.already-have-island");
|
||||
return false;
|
||||
}
|
||||
if (getIslands().inTeam(getWorld(), user.getUniqueId())) {
|
||||
if (getIslands().hasIsland(getWorld(), user.getUniqueId())
|
||||
|| getIslands().inTeam(getWorld(), user.getUniqueId())) {
|
||||
user.sendMessage("general.errors.already-have-island");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user