It was using the Player#sendMessage() instead of User#sendMessage()
This commit is contained in:
Florian CUNY 2019-06-01 07:33:03 +02:00
parent eebb2a982d
commit 86b9202b53
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;