mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 23:13:48 +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
|
@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 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"));
|
sender.sendMessage(Jobs.getLanguage().getMessage("general.error.worldisdisabled"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user