-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec9ed5e
commit 0c69d4c
Showing
20 changed files
with
189 additions
and
131 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ Subject: [PATCH] Add Brigadier Command API | |
|
||
|
||
diff --git a/build.gradle.kts b/build.gradle.kts | ||
index bf01892c248b988531d21d9fb0f74d0adf2205ac..e8be7692a9637313dde844d9cd4a3a3d108ebb6d 100644 | ||
index 50dd795c67557c7d2668068af0bba87a1ec8dc43..5637dc6b5a565a3c71b02bc026c73801d4aa251b 100644 | ||
--- a/build.gradle.kts | ||
+++ b/build.gradle.kts | ||
@@ -55,6 +55,7 @@ dependencies { | ||
|
@@ -1879,12 +1879,12 @@ index 9d263ab3afb938c215c0b64d9171345fca6ceb2c..ab63f82029c09cbf5d9717a89d1d55c3 | |
@Override | ||
default [email protected] Component name() { | ||
diff --git a/src/main/java/org/bukkit/event/command/UnknownCommandEvent.java b/src/main/java/org/bukkit/event/command/UnknownCommandEvent.java | ||
index e4f8a0d14ae66468bbb0a5d6bf9c1ee417dc866c..def7e364b543e598f9df31ef65e7c56fe2b54631 100644 | ||
index 9bdeeecdb6021d61fd9141270011e56b06a58a76..0231a38067e4194587217e6e585eb82ca287e4e0 100644 | ||
--- a/src/main/java/org/bukkit/event/command/UnknownCommandEvent.java | ||
+++ b/src/main/java/org/bukkit/event/command/UnknownCommandEvent.java | ||
@@ -19,10 +19,28 @@ public class UnknownCommandEvent extends Event { | ||
@Nullable private Component message; | ||
@@ -23,10 +23,29 @@ public class UnknownCommandEvent extends Event { | ||
|
||
@ApiStatus.Internal | ||
public UnknownCommandEvent(@NotNull final CommandSender sender, @NotNull final String commandLine, @Nullable final Component message) { | ||
+ // Daydream start - Add Brigadier Command API | ||
+ this(sender, commandLine, message, false); | ||
|
@@ -1901,6 +1901,7 @@ index e4f8a0d14ae66468bbb0a5d6bf9c1ee417dc866c..def7e364b543e598f9df31ef65e7c56f | |
+ return brigadier; | ||
+ } | ||
+ | ||
+ @ApiStatus.Internal | ||
+ public UnknownCommandEvent(@NotNull final CommandSender sender, @NotNull final String commandLine, @Nullable final Component message, final boolean brigadier) { | ||
+ // Daydream end - Add Brigadier Command API | ||
super(false); | ||
|
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.