mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 18:39:44 -05:00
Fix error
Former-commit-id: 5cc9f26aa1fb57f89aa7e1477d3b9c275a8ec739 [formerly 1c166714e2ced5e01435e604a0d5e4148bb0bcc5] Former-commit-id: 8bb2e1fd702aca4fa32c1a33af37f497d59f336d
This commit is contained in:
1 parent
5d4649a473
commit
88f4fb4e9a
3 files changed
+5
-4
No files matched your search
@@ -114,7 +114,7 @@ public class CommandManager implements TabCompleter, CommandExecutor {
|
||||
List<String> requirePermissions = container.getPermissions();
|
||||
if (container.getPermissions() != null)
|
||||
for (String requirePermission : requirePermissions) {
|
||||
if (!sender.hasPermission(requirePermission)) {
|
||||
if (requirePermission != null && !requirePermission.isEmpty() && !sender.hasPermission(requirePermission)) {
|
||||
Util.debugLog("Sender " + sender.getName() + " trying tab-complete the command: " + commandLabel + " " + Util
|
||||
.array2String(cmdArg) + ", but no permission " + requirePermission);
|
||||
return null;
|
||||
@@ -156,7 +156,7 @@ public class CommandManager implements TabCompleter, CommandExecutor {
|
||||
List<String> requirePermissions = container.getPermissions();
|
||||
if (container.getPermissions() != null)
|
||||
for (String requirePermission : requirePermissions) {
|
||||
if (!sender.hasPermission(requirePermission)) {
|
||||
if (requirePermission != null && !requirePermission.isEmpty() && !sender.hasPermission(requirePermission)) {
|
||||
Util.debugLog("Sender " + sender.getName() + " trying execute the command: " + commandLabel + " " + Util
|
||||
.array2String(cmdArg) + ", but no permission " + requirePermission);
|
||||
sender.sendMessage(MsgUtil.getMessage("no-permission"));
|
||||
|
||||
@@ -31,7 +31,7 @@ public class SubCommand_Help implements CommandProcesser {
|
||||
List<String> requirePermissions = container.getPermissions();
|
||||
if (container.getPermissions() != null)
|
||||
for (String requirePermission : requirePermissions) {
|
||||
if (!s.hasPermission(requirePermission)) {
|
||||
if (requirePermission != null && !requirePermission.isEmpty() && !s.hasPermission(requirePermission)) {
|
||||
Util.debugLog("Sender " + s
|
||||
.getName() + " trying execute the command: " + commandLabel + ", but no permission " + requirePermission);
|
||||
return;
|
||||
|
||||
@@ -21,7 +21,8 @@ public class SubCommand_ROOT implements CommandProcesser {
|
||||
List<String> requirePermissions = container.getPermissions();
|
||||
if (requirePermissions != null)
|
||||
for (String requirePermission : requirePermissions) {
|
||||
if (!sender.hasPermission(requirePermission)) {
|
||||
if (requirePermission != null && !requirePermission.isEmpty() && !sender
|
||||
.hasPermission(requirePermission)) {
|
||||
Util.debugLog("Sender " + sender
|
||||
.getName() + " trying tab-complete the command: " + commandLabel + ", but no permission " + requirePermission);
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user