8000 adding #360 by DerEchtePilz · Pull Request #369 · CommandAPI/CommandAPI · GitHub
[go: up one dir, main page]

Skip to content

adding #360 #369

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

Merged
merged 29 commits into from
Dec 17, 2022
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9e519fd
adding #360
DerEchtePilz Nov 24, 2022
832128e
provide ExecutionInfo with a record
DerEchtePilz Nov 25, 2022
ad5ef54
fixing JavaDocs
DerEchtePilz Nov 25, 2022
31d9b61
fixing some things
DerEchtePilz Nov 25, 2022
e7626e8
adding a CommandArguments class to hold provided arguments
DerEchtePilz Dec 9, 2022
f23361a
remove method parameters, fix documentation code to match new syntax
DerEchtePilz Dec 9, 2022
bfe45a3
Merge branch 'JorelAli:dev/dev' into dev/dev
DerEchtePilz Dec 9, 2022
45753b1
fix Kotlin DSL to match new syntax
DerEchtePilz Dec 9, 2022
0601bfc
fixing Converter
DerEchtePilz Dec 9, 2022
f512772
fix some more documentation issues
DerEchtePilz Dec 9, 2022
d21d50b
fixing some annotation examples to match new syntax
DerEchtePilz Dec 9, 2022
15f29ff
fix annotation generation to match new syntax
DerEchtePilz Dec 9, 2022
47b86f8
handle String[] for converted commands correctly
DerEchtePilz Dec 9, 2022
92f4e37
parse arguments only once
DerEchtePilz Dec 13, 2022
88b232f
Make argsToObjectArr return a CommandArguments object. Change name of…
DerEchtePilz Dec 13, 2022
328295e
fixing generateCommand method
DerEchtePilz Dec 13, 2022
18eb95d
fix Brigadier#parseArguments method
DerEchtePilz Dec 13, 2022
d4d07c9
add Javadocs to ExecutionInfo
DerEchtePilz Dec 13, 2022
374ebcc
Remove test command thingy from CommandAPIMain. Add Javadocs to Comma…
DerEchtePilz Dec 13, 2022
e6d8cab
updating branch to support new project structure
DerEchtePilz Dec 14, 2022
43d3382
clean up after merge
DerEchtePilz Dec 14, 2022
9fbf5a7
fixing a method call in Brigadier#parseArguments
DerEchtePilz Dec 14, 2022
5c01e6a
fixing CommandTree DSL
DerEchtePilz Dec 14, 2022
6d4fa44
optimizing some imports
DerEchtePilz Dec 14, 2022
9142d85
fixing some formatting issues
DerEchtePilz Dec 15, 2022
7057cf5
Merge branch 'JorelAli:dev/dev' into dev/dev
DerEchtePilz Dec 15, 2022
a02a8b8
fixing documentation example code
DerEchtePilz Dec 15, 2022
eb5bf6e
fix commands not being executable
DerEchtePilz Dec 17, 2022
104391c
fixing build error
DerEchtePilz Dec 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
Next Next commit
fixing documentation example code
  • Loading branch information
DerEchtePilz committed Dec 15, 2022
commit a02a8b8ebb8e3a3e7f291384562c08ff10b65913
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ public Argument<World> worldArgument(String nodeName) {
.withPermission("economy.other") // The important part of this example
.withArguments(new PlayerArgument("target"))
.executesPlayer((player, args) -> {
Player target = (Player) args[0];
Player target = (Player) args.get(0);
// Send executor, the targets balance here.
})
.register();
Expand All @@ -1092,8 +1092,8 @@ public Argument<World> worldArgument(String nodeName) {
.withArguments(new PlayerArgument("target"))
.withArguments(new DoubleArgument("amount"))
.executesPlayer((player, args) -> {
Player target = (Player) args[0];
double amount = (Double) args[1];
Player target = (Player) args.get(0);
double amount = (Double) args.get(1);
// Update player balance here
})
.register();
Expand All @@ -1103,7 +1103,7 @@ public Argument<World> worldArgument(String nodeName) {
.withPermission("economy.admin.reset") // The important part of this example
.withArguments(new PlayerArgument("target"))
.executesPlayer((player, args) -> {
Player target = (Player) args[0];
Player target = (Player) args.get(0);
// Reset target balance here
})
.register();
Expand Down
0