Support signing messages from command arguments (#434)

* Initial signed command argument impl

* Implement on Paper and map to greedy string (unsigned) on velocity

* Use cloud signed arguments

* add relocations

* fabric: include instead of shade cloud-signed-arguments

* Make whispers between players on the same server signed

* Update cloud & loom

---------

Co-authored-by: Draycia <[email protected]>
This commit is contained in:
Jason PenillaandDraycia authored and GitHub committed 2024-05-14 16:13:57 -07:00
1 parent a53d2e3d84
commit a816dcd738
17 files changed
+147 -36

No files matched your search

@@ -34,6 +34,7 @@ import net.draycia.carbon.common.CarbonCommonModule;
import net.draycia.carbon.common.CarbonPlatformModule;
import net.draycia.carbon.common.DataDirectory;
import net.draycia.carbon.common.PlatformScheduler;
import net.draycia.carbon.common.RawChat;
import net.draycia.carbon.common.command.Commander;
import net.draycia.carbon.common.command.ExecutionCoordinatorHolder;
import net.draycia.carbon.common.messages.CarbonMessageRenderer;
@@ -49,6 +50,7 @@ import net.draycia.carbon.velocity.listeners.VelocityPlayerJoinListener;
import net.draycia.carbon.velocity.listeners.VelocityPlayerLeaveListener;
import net.draycia.carbon.velocity.users.CarbonPlayerVelocity;
import net.draycia.carbon.velocity.users.VelocityProfileResolver;
import net.kyori.adventure.key.Key;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.checkerframework.checker.nullness.qual.NonNull;
@@ -115,6 +117,7 @@ public final class CarbonChatVelocityModule extends CarbonPlatformModule {
this.bind(PlatformScheduler.class).to(PlatformScheduler.RunImmediately.class);
this.install(PlatformUserManager.PlayerFactory.moduleFor(CarbonPlayerVelocity.class));
this.bind(CarbonMessageRenderer.class).to(VelocityMessageRenderer.class);
this.bind(Key.class).annotatedWith(RawChat.class).toInstance(Key.key("unused:unused"));
this.configureListeners();
}