Filter out commands that the player doesn't have permissions for. Workaround for a Spigot issue.

This commit is contained in:
Matthew Miller
2018-12-05 16:32:20 +10:00
parent b192466ce2
commit be0d21e2a9
2 changed files with 18 additions and 1 deletions

View File

@ -183,7 +183,6 @@ public class FlagParser implements CommandExecutor<FlagData> {
return (T) data.get(flag);
}
@SuppressWarnings("unchecked")
public T get(FlagData data, T fallback) {
T value = get(data);
if (value == null) {