mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
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:
1 parent
a53d2e3d84
commit
a816dcd738
17 files changed
+147
-36
No files matched your search
@@ -20,6 +20,7 @@ dependencies {
|
||||
|
||||
// Commands
|
||||
implementation(libs.cloudPaper)
|
||||
implementation(libs.cloudPaperSigned)
|
||||
|
||||
// Misc
|
||||
implementation(libs.bstatsBukkit)
|
||||
@@ -54,6 +55,8 @@ tasks {
|
||||
shadowJar {
|
||||
relocateDependency("io.papermc.papertrail")
|
||||
relocateDependency("io.leangen.geantyref")
|
||||
relocateDependency("xyz.jpenilla.reflectionremapper")
|
||||
relocateDependency("net.fabricmc.mappingio")
|
||||
relocateCloud()
|
||||
}
|
||||
withType(RunServer::class).configureEach {
|
||||
|
||||
@@ -30,6 +30,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.integration.Integration;
|
||||
@@ -48,6 +49,7 @@ import net.draycia.carbon.paper.listeners.PaperPlayerJoinListener;
|
||||
import net.draycia.carbon.paper.messages.PaperMessageRenderer;
|
||||
import net.draycia.carbon.paper.users.CarbonPlayerPaper;
|
||||
import net.draycia.carbon.paper.users.PaperProfileResolver;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.bukkit.Server;
|
||||
@@ -109,6 +111,7 @@ public final class CarbonChatPaperModule extends CarbonPlatformModule {
|
||||
this.bind(PlatformScheduler.class).to(PaperScheduler.class);
|
||||
this.install(PlatformUserManager.PlayerFactory.moduleFor(CarbonPlayerPaper.class));
|
||||
this.bind(CarbonMessageRenderer.class).to(PaperMessageRenderer.class);
|
||||
this.bind(Key.class).annotatedWith(RawChat.class).toInstance(Key.key("paper:raw"));
|
||||
|
||||
this.configureListeners();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user