✨ Prevent command arguments from being used in multiple commands
Also get rid of some random annoying warnings.
This commit is contained in:
parent
b564ecf60d
commit
a4544a8550
5 changed files with 44 additions and 2 deletions
|
|
@ -169,6 +169,7 @@ class PaperBrigadierListener<C> implements Listener {
|
|||
}
|
||||
|
||||
@EventHandler
|
||||
@SuppressWarnings("deprecation")
|
||||
public void onCommandRegister(@Nonnull final CommandRegisteredEvent<BukkitBrigadierCommandSource> event) {
|
||||
if (!(event.getCommand() instanceof PluginIdentifiableCommand)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue