fixed npe during autoplaylists
added playnext command (simple version) setting dj role to everyone works now fixed massively wide joptionpanes version number bump
This commit is contained in:
@@ -39,7 +39,7 @@ public abstract class DJCommand extends MusicCommand
|
||||
return true;
|
||||
Settings settings = event.getClient().getSettingsFor(event.getGuild());
|
||||
Role dj = settings.getRole(event.getGuild());
|
||||
return dj!=null && event.getMember().getRoles().contains(dj);
|
||||
return dj!=null && (event.getMember().getRoles().contains(dj) || dj.getIdLong()==event.getGuild().getIdLong());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user