Fix no permission error for WorldInfo
parent
a31a32edea
commit
14ac0e565f
|
@ -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<String, List<String>> worlds = new HashMap<>();
|
||||
|
|
Loading…
Reference in New Issue