Fix no permission error for WorldInfo

master
Etzelia 2018-09-15 16:20:31 -05:00
parent a31a32edea
commit 14ac0e565f
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import xyz.etztech.qol.EtzTechUtil;
import xyz.etztech.qol.Lang; import xyz.etztech.qol.Lang;
import xyz.etztech.qol.QoL; import xyz.etztech.qol.QoL;
@ -24,7 +25,8 @@ public class WorldInfoCommand implements CommandExecutor {
@Override @Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!sender.hasPermission("qol.worldinfo")) { if (!sender.hasPermission("qol.worldinfo")) {
sender.sendMessage(Lang.NO_PERMISSION.getDef()); EtzTechUtil.sms(sender, Lang.NO_PERMISSION.getDef());
return true;
} }
Map<String, List<String>> worlds = new HashMap<>(); Map<String, List<String>> worlds = new HashMap<>();