mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 22:13:25 +01:00
Re-add this old permission
This commit is contained in:
parent
343657db05
commit
516df9ad01
@ -49,7 +49,8 @@ public class JobsCommands implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (sender instanceof Player && !Jobs.getGCManager().canPerformActionInWorld(((Player) sender).getWorld())) {
|
||||
if (sender instanceof Player && !Jobs.getGCManager().canPerformActionInWorld(((Player) sender).getWorld())
|
||||
&& !sender.hasPermission("jobs.disabledworld.commands")) {
|
||||
sender.sendMessage(Jobs.getLanguage().getMessage("general.error.worldisdisabled"));
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user