mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-23 16:58:30 +01:00
Don't register /viaversion command as VFP alias to prevent mismatches with server-side ViaVersion
This commit is contained in:
parent
5c07c00b3b
commit
26c5bee954
@ -242,10 +242,8 @@ public class ProtocolHack {
|
||||
// Register command callback for /viaversion and /viafabricplus
|
||||
ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
|
||||
final var commandHandler = (ViaFabricPlusVLCommandHandler) Via.getManager().getCommandHandler();
|
||||
final var executor = RequiredArgumentBuilder.<FabricClientCommandSource, String>argument("args", StringArgumentType.greedyString()).
|
||||
executes(commandHandler::execute).suggests(commandHandler::suggestion);
|
||||
final var executor = RequiredArgumentBuilder.<FabricClientCommandSource, String>argument("args", StringArgumentType.greedyString()).executes(commandHandler::execute).suggests(commandHandler::suggestion);
|
||||
|
||||
dispatcher.register(LiteralArgumentBuilder.<FabricClientCommandSource>literal("viaversion").then(executor).executes(commandHandler::execute));
|
||||
dispatcher.register(LiteralArgumentBuilder.<FabricClientCommandSource>literal("viafabricplus").then(executor).executes(commandHandler::execute));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user