enabled some client side command interpretation.
This commit is contained in:
1 parent
f3093183ce
commit
fe63334509
8 files changed
+74
-7
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.CarpetServer;
|
||||
import net.minecraft.client.network.ClientPlayerEntity;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(ClientPlayerEntity.class)
|
||||
public class ClientPlayerEntity_clientCommandMixin
|
||||
{
|
||||
@Inject(method = "sendChatMessage", at = @At("HEAD"))
|
||||
private void inspectMessage(String string, CallbackInfo ci)
|
||||
{
|
||||
if (CarpetServer.minecraft_server == null)
|
||||
CarpetServer.settingsManager.inspectClientsideCommand(string);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user