mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 19:45:57 +03:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/command/ServerCommandManager.java
|
|
+++ ../src-work/minecraft/net/minecraft/command/ServerCommandManager.java
|
|
@@ -40,6 +40,10 @@
|
|
public ServerCommandManager(MinecraftServer serverIn)
|
|
{
|
|
this.server = serverIn;
|
|
+ CommandBase.setCommandListener(this);
|
|
+ }
|
|
+
|
|
+ public void registerVanillaCommands() {
|
|
this.registerCommand(new CommandTime());
|
|
this.registerCommand(new CommandGameMode());
|
|
this.registerCommand(new CommandDifficulty());
|
|
@@ -89,8 +93,7 @@
|
|
this.registerCommand(new CommandLocate());
|
|
this.registerCommand(new CommandReload());
|
|
this.registerCommand(new CommandFunction());
|
|
-
|
|
- if (serverIn.isDedicatedServer())
|
|
+ if (server.isDedicatedServer())
|
|
{
|
|
this.registerCommand(new CommandOp());
|
|
this.registerCommand(new CommandDeOp());
|
|
@@ -147,7 +150,7 @@
|
|
}
|
|
}
|
|
|
|
- if (sender != minecraftserver && minecraftserver.worlds[0].getGameRules().getBoolean("logAdminCommands"))
|
|
+ if (sender != minecraftserver && minecraftserver.worlds[0].getGameRules().getBoolean("logAdminCommands") && !org.spigotmc.SpigotConfig.silentCommandBlocks) // Spigot
|
|
{
|
|
minecraftserver.sendMessage(itextcomponent);
|
|
}
|