diff --git a/build.gradle b/build.gradle index db837d2..6cac20c 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { } group = 'xyz.daviddgtnt.sc.doctorattend' -version = '1.1' +version = '1.1.1' repositories { mavenCentral() diff --git a/src/main/java/xyz/daviddgtnt/sc/doctorattend/DoctorAttendCommand.java b/src/main/java/xyz/daviddgtnt/sc/doctorattend/DoctorAttendCommand.java index 0105c85..bc46a88 100644 --- a/src/main/java/xyz/daviddgtnt/sc/doctorattend/DoctorAttendCommand.java +++ b/src/main/java/xyz/daviddgtnt/sc/doctorattend/DoctorAttendCommand.java @@ -14,7 +14,7 @@ public class DoctorAttendCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (sender instanceof ConsoleCommandSender) { - Bukkit.getLogger().warning("You cannot use this command from the console!"); + sender.sendMessage("You cannot use this command from the console!"); return true; } diff --git a/src/main/java/xyz/daviddgtnt/sc/doctorattend/NeedDoctorCommand.java b/src/main/java/xyz/daviddgtnt/sc/doctorattend/NeedDoctorCommand.java index d1fdac7..12e5d1d 100644 --- a/src/main/java/xyz/daviddgtnt/sc/doctorattend/NeedDoctorCommand.java +++ b/src/main/java/xyz/daviddgtnt/sc/doctorattend/NeedDoctorCommand.java @@ -16,10 +16,9 @@ public class NeedDoctorCommand implements CommandExecutor { Player player; if (args.length < 1) { if (sender instanceof Player) { - player = (Player) sender; - player.sendMessage(ChatColor.RED + "You can't use that command! Go to the hospital if you need a doctor!"); + sender.sendMessage(ChatColor.RED + "You can't use that command! Go to the hospital if you need a doctor!"); } else { - Bukkit.getLogger().warning("You need to supply a player!"); + sender.sendMessage("You need to supply a player!"); } return true; } @@ -32,11 +31,11 @@ public class NeedDoctorCommand implements CommandExecutor { Bukkit.getLogger().info(args[0] + " called online doctors for help."); this.callDoctors(player); } else { - player.sendMessage(ChatColor.RED + "You can't use that command! Go to the hospital if you need a doctor!"); + sender.sendMessage(ChatColor.RED + "You can't use that command! Go to the hospital if you need a doctor!"); return true; } } else { - Bukkit.getLogger().warning("Player is not online."); + sender.sendMessage("Player is not online."); return true; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index da1e980..e4656a0 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: SCDoctorAttend -version: 1.1 +version: 1.1.1 author: DavidDGTNT main: xyz.daviddgtnt.sc.doctorattend.DoctorAttend api-version: '1.20'