From 14ac0e565f8c539abb082ad6d59764efc40ae05c Mon Sep 17 00:00:00 2001 From: Etzelia Date: Sat, 15 Sep 2018 16:20:31 -0500 Subject: [PATCH] Fix no permission error for WorldInfo --- src/main/java/xyz/etztech/qol/commands/WorldInfoCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/xyz/etztech/qol/commands/WorldInfoCommand.java b/src/main/java/xyz/etztech/qol/commands/WorldInfoCommand.java index 636feb3..c5e7554 100644 --- a/src/main/java/xyz/etztech/qol/commands/WorldInfoCommand.java +++ b/src/main/java/xyz/etztech/qol/commands/WorldInfoCommand.java @@ -8,6 +8,7 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; +import xyz.etztech.qol.EtzTechUtil; import xyz.etztech.qol.Lang; import xyz.etztech.qol.QoL; @@ -24,7 +25,8 @@ public class WorldInfoCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (!sender.hasPermission("qol.worldinfo")) { - sender.sendMessage(Lang.NO_PERMISSION.getDef()); + EtzTechUtil.sms(sender, Lang.NO_PERMISSION.getDef()); + return true; } Map> worlds = new HashMap<>();