Moves all methods for sending messages to players to the MessageSender class

This commit is contained in:
2021-10-23 14:10:33 +02:00
parent 50084c40f9
commit 7cc8685e26
11 changed files with 108 additions and 74 deletions

View File

@ -28,7 +28,7 @@ public class CommandReload implements CommandExecutor {
@NotNull String[] args) {
if (commandSender instanceof Player player) {
if (!player.hasPermission("stargate.reload")) {
Stargate.sendErrorMessage(commandSender, "Permission Denied");
Stargate.getMessageSender().sendErrorMessage(commandSender, "Permission Denied");
return true;
}
}