mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-08 19:38:17 +01:00
Fix tab complete not working when allowing auto pickup toggle
This commit is contained in:
parent
e0b61e056e
commit
0b678ccb17
@ -1,5 +1,4 @@
|
||||
/*
|
||||
* Copyright (C) 2022 MartenM
|
||||
* Copyright (C) 2022 GeorgH93
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
@ -71,6 +70,6 @@ public List<String> tabComplete(@NotNull CommandSender commandSender, @NotNull S
|
||||
@Override
|
||||
public boolean canUse(@NotNull CommandSender sender)
|
||||
{
|
||||
return canUse(sender) && sender.hasPermission(Permissions.FULL_PICKUP) && sender.hasPermission(Permissions.USE);
|
||||
return super.canUse(sender) && sender.hasPermission(Permissions.FULL_PICKUP) && sender.hasPermission(Permissions.USE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user