mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-03 09:30:17 +01:00
Fixes commit 4f84f37461
It was using the Player#sendMessage() instead of User#sendMessage()
This commit is contained in:
parent
eebb2a982d
commit
86b9202b53
@ -109,7 +109,7 @@ public class CycleClick implements PanelItem.ClickHandler {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Player is not the owner of the island.
|
// Player is not the owner of the island.
|
||||||
user.getPlayer().sendMessage("general.errors.not-owner");
|
user.sendMessage("general.errors.not-owner");
|
||||||
user.getPlayer().playSound(user.getLocation(), Sound.BLOCK_METAL_HIT, 1F, 1F);
|
user.getPlayer().playSound(user.getLocation(), Sound.BLOCK_METAL_HIT, 1F, 1F);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -69,7 +69,7 @@ public class IslandToggleClick implements ClickHandler {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Player is not the owner of the island.
|
// Player is not the owner of the island.
|
||||||
user.getPlayer().sendMessage("general.errors.not-owner");
|
user.sendMessage("general.errors.not-owner");
|
||||||
user.getPlayer().playSound(user.getLocation(), Sound.BLOCK_METAL_HIT, 1F, 1F);
|
user.getPlayer().playSound(user.getLocation(), Sound.BLOCK_METAL_HIT, 1F, 1F);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user