new BungeeCommand("testcmd", true) /* Creating an instance of BungeeCommand class which accepts command root name and forced parameter
if command marked as "not forced" - lambda expression in method "executes(LamCommandExecutor)" will be triggered egardless of user's input */
.withArguments("foo", "bar") // Arguments for command (primarily for tab-completion)
.executes((sender, args) -> { // Lambda expression with CommandSender and String[] that will be triggered when user confirmed command execution
//Your code
});
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple implementation of Mojang's Brigadier for BungeeCord based on Bungee's command system
License
MagicSweet-dev/BrigadierProvider-Bungee
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple implementation of Mojang's Brigadier for BungeeCord based on Bungee's command system
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published