-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commands Overhaul #8745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
APickledWalrus
wants to merge
89
commits into
dev/feature
Choose a base branch
from
feature/command-rework
base: dev/feature
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commands Overhaul #8745
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
ac98b45
Add basic Brigadier-based command structure
APickledWalrus 15533d8
Switch to entry-data based approach
APickledWalrus 2360399
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus 92bef10
Handle argument forwarding, better default string argument type
APickledWalrus 72d682d
Proper native type support
APickledWalrus 90f7e35
Don't require a trigger when subcommands are present
APickledWalrus 61d9d23
Simplify argument handling
APickledWalrus eed9d0e
Command parser 9000 has arrived
APickledWalrus 86be3f2
Organize and cleanup
APickledWalrus e113c0f
Command parser 9000v2
APickledWalrus 44322a0
Simple argument range support
APickledWalrus 87b3c98
Reimplement automatic argument naming
APickledWalrus a5ec99a
Restore command type hints
APickledWalrus 4e23a9d
Properly handle plural arguments
APickledWalrus 2b92399
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus 42be4e1
Integrate ExprArgument
APickledWalrus 98180ef
Utility cleanup
APickledWalrus 70bac5d
Improve default string argument behavior
APickledWalrus 544dcc1
Add back several command entries
APickledWalrus c9d73b1
Cooldowns and fixes
APickledWalrus 331d9de
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus 26b14d7
Add alternative reflection-based command registration
APickledWalrus 6e6d489
Prevent legacy command registration
APickledWalrus a275c4c
Add questionable "prefix" entry compatibility
APickledWalrus 3e49a44
Ensure other test commands run
APickledWalrus f889689
Fix double slash execution on older versions
APickledWalrus 014cb21
Improve prefix validation
APickledWalrus 868875b
Improve registered command organization
APickledWalrus 6e74508
Cleanup and tweaks
APickledWalrus 004968e
Add HelpTopic handling, restore "usage" entry
APickledWalrus 214e1e9
Improve native argument validation
APickledWalrus 4cb520d
Refine ranged argument validation
APickledWalrus 8606b5b
Fix help topic creation
APickledWalrus c3ee50e
More testing and adjustments
APickledWalrus b3f068d
Port ExprCommandInfo
APickledWalrus bbefbc8
Continue porting syntax
APickledWalrus 30c9be3
Account for dispatchCommand behavior
APickledWalrus 2c19ef6
Port ExprAllCommands
APickledWalrus fba8623
Start deprecating legacy code
APickledWalrus 773d78c
Add additional command event values
APickledWalrus 7ea6a1b
Add ExecutableBy.BLOCKS option
APickledWalrus a0a4c3f
Add additional native argument types
APickledWalrus 813cc99
Add ExecutableBy.OPERATORS
APickledWalrus ea560c6
Simple tab completion system
APickledWalrus a147436
Add suggestion input details expression
APickledWalrus 1f04235
Provide argument values within suggestions entry
APickledWalrus c11f147
Add suggestion filtering mode
APickledWalrus 9c980cf
Add back SkriptParser#parseArguments as deprecated
APickledWalrus b5e0254
Tweak suggestions handling
APickledWalrus e036a51
Add suggestion hovers through components
APickledWalrus 939d7a0
Handle missing brackets in compilation
APickledWalrus ef3f2fb
Fix capitalized command handling
APickledWalrus 41d22c9
Reorder arguments for compatibility
APickledWalrus 1f453f1
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus d77f3e4
Only attach suggestions if necessary
APickledWalrus 68d896b
Restore console effect commands
APickledWalrus fb22645
Revert unintentional version change
APickledWalrus 662bf8f
Add UnknownCommandEvent support
APickledWalrus 1455e33
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus 8c382f3
Automatic native argument support for RegistryClassInfos
APickledWalrus c0cfd7f
Support selectors in OfflinePlayer arguments
APickledWalrus 89c1d8b
Add support for having an optional subcommand
APickledWalrus b6f85f7
Add support for "subcommands" grouping
APickledWalrus 217e7c0
Support real-time validation+highlighting for OfflinePlayer args
APickledWalrus 1e91268
Add compatibility with TabCompleteEvent suggestions
APickledWalrus 1367701
Refine TabCompleteEvent compatibility
APickledWalrus f2cabd6
Delay OfflinePlayer argument resolution
APickledWalrus 710b3b4
Remove unsupported configuration options
APickledWalrus f32e2e6
Only convert underscores for suggesting arguments
APickledWalrus e3a7e83
Only evaluate used arguments in suggestions
APickledWalrus f49d52f
Re-implement usage entry support
APickledWalrus 6d11444
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus a82701f
Simplify fallback suggestion handling
APickledWalrus e77fce0
Add additional range keywords
APickledWalrus 372d000
Partially fix plural offline player arguments
APickledWalrus 5711560
Rework OfflinePlayerArgument for plural support
APickledWalrus 471f446
Further rework of OfflinePlayerArgument for tab completions
APickledWalrus 78d0d35
Fix compilation failure from deep chains
APickledWalrus 5400cb0
Add ranged argument support for Skript types
APickledWalrus 1e0ff93
Support localization, context for error messages
APickledWalrus 68183fb
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus e992f96
Further refine lang entries
APickledWalrus 7f81a57
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus 566ddc1
Add support for validating choice arguments
APickledWalrus f99cde0
Add missing docs annotations
APickledWalrus 5700c5d
Add support for command results
APickledWalrus b6a0371
Add support for command failures
APickledWalrus 0029819
Address reviews with usability improvements
APickledWalrus b1fbfa2
Merge branch 'dev/feature' into feature/command-rework
APickledWalrus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1 @@ | ||
| /** | ||
| * This file is part of Skript. | ||
| * | ||
| * Skript is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * Skript is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with Skript. If not, see <http://www.gnu.org/licenses/>. | ||
| * | ||
| * Copyright Peter Güttinger, SkriptLang team and contributors | ||
| */ | ||
| /** | ||
| * Code related to handling commands, either Skript commands or custom script commands. | ||
| * | ||
| * @author Peter Güttinger | ||
| */ | ||
| package ch.njol.skript.command; | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.