-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
26 changed files
with
500 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- a/net/minecraft/commands/CommandSource.java | ||
+++ b/net/minecraft/commands/CommandSource.java | ||
@@ -22,6 +_,13 @@ | ||
public boolean shouldInformAdmins() { | ||
return false; | ||
} | ||
+ | ||
+ // CraftBukkit start | ||
+ @Override | ||
+ public org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper) { | ||
+ return wrapper.getServer().console; | ||
+ } | ||
+ // CraftBukkit end | ||
}; | ||
|
||
void sendSystemMessage(Component p_230797_); | ||
@@ -34,5 +_,9 @@ | ||
|
||
default boolean alwaysAccepts() { | ||
return false; | ||
+ } | ||
+ | ||
+ default org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper) { | ||
+ return NULL.getBukkitSender(wrapper); | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
patches/net/minecraft/server/commands/DebugCommand.java.patch
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/net/minecraft/server/commands/DebugCommand.java | ||
+++ b/net/minecraft/server/commands/DebugCommand.java | ||
@@ -37,6 +_,7 @@ | ||
import net.minecraft.util.TimeUtil; | ||
import net.minecraft.util.profiling.ProfileResults; | ||
import org.apache.commons.io.IOUtils; | ||
+import org.bukkit.command.CommandSender; | ||
import org.slf4j.Logger; | ||
|
||
public class DebugCommand { | ||
@@ -263,6 +_,11 @@ | ||
@Override | ||
public void close() { | ||
IOUtils.closeQuietly((Writer)this.output); | ||
+ } | ||
+ | ||
+ @Override | ||
+ public CommandSender getBukkitSender(CommandSourceStack wrapper) { | ||
+ return null; | ||
} | ||
} | ||
} |
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
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.