mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-07 12:58:02 +02: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 {
|
||||
// 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);
|
||||
}
|
||||
return true;
|
||||
|
@ -69,7 +69,7 @@ public class IslandToggleClick implements ClickHandler {
|
||||
});
|
||||
} else {
|
||||
// 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);
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user