Fixed incorrect logic for permission check in single track additions.
This commit is contained in:
@@ -65,7 +65,7 @@ public final class TrackLoadHandler implements AudioLoadResultHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((info.length >= 60000 && info.length <= 900000) || PermissionManager.isWhitelisted(this.requester)) {
|
if (!(info.length >= 60000 && info.length <= 900000) && !PermissionManager.isWhitelisted(this.requester)) {
|
||||||
response = new CommandResponse("no_entry_sign",
|
response = new CommandResponse("no_entry_sign",
|
||||||
"Sorry " + this.requester.getAsMention()
|
"Sorry " + this.requester.getAsMention()
|
||||||
+ ", but you can only add tracks between 1 and 15 minutes in length.").setDeletionDelay(10,
|
+ ", but you can only add tracks between 1 and 15 minutes in length.").setDeletionDelay(10,
|
||||||
|
|||||||
Reference in New Issue
Block a user