From 7a5304748311f349bbc0d579ce9a85b2d5fb5163 Mon Sep 17 00:00:00 2001 From: HappyAreaBean Date: Fri, 1 Mar 2024 12:52:06 +0800 Subject: [PATCH] fix(velocity): section command permission check --- .../playerbalancer/velocity/section/SectionCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/section/SectionCommand.java b/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/section/SectionCommand.java index d576998..165c766 100644 --- a/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/section/SectionCommand.java +++ b/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/section/SectionCommand.java @@ -17,7 +17,7 @@ public class SectionCommand extends FallbackCommand { @Override public boolean hasPermission(Invocation invocation) { - return invocation.source().hasPermission(permission); + return permission.isEmpty() || invocation.source().hasPermission(permission); } @Override