Skip to content

Commit

Permalink
moving link command to cooptweaks group
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyagara committed Oct 3, 2024
1 parent 23732e7 commit 7efce48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Sync advancements, chat relay for Discord and more. Check [here](https://github.
This project is inspired by the [CooperativeAdvancements](https://modrinth.com/mod/cooperative-advancements) mod, my
goal with this is to add on the coop experience I really enjoyed from CooperativeAdvancements by giving more features in just one package.

Focusing only on server side for now.

## Features

- Bridges a Discord channel to the Minecraft server chat, allowing for chat between the two.
Expand All @@ -34,20 +32,22 @@ Configuration is located in a folder called `cooptweaks`, it contains the follow

The Discord bot requires the permission to create slash commands and `MESSAGE_CONTENT` and `GUILD_MEMBERS` intents.

## Keybinds

- `Left Shift + Left Alt`: Links the item being hovered by the player.

## Server Commands

### `/cooptweaks advancements <subcommand>`
All commands are prefixed with `/cooptweaks`.

### `advancements <subcommand>`

- `progress`: Shows the advancement progress of the world.

### `/link`
### `link`

Links the item being held by the player to the chat.
Links the item being held by the player in the chat.

## Slash Commands (Discord)

- `/status`: Shows information about the server like motd, uptime, address, etc.

## Keybinds

- `Left Shift + Left Alt`: Links the item being hovered by the player.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class LinkCommand implements ServerCommand {
@Override
public void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess, CommandManager.RegistrationEnvironment environment) {
dispatcher
.register(CommandManager.literal("link")
.executes(this::execute));
.register(CommandManager.literal("cooptweaks")
.then(CommandManager.literal("link")
.executes(this::execute)));
}

@Override
Expand Down

0 comments on commit 7efce48

Please sign in to comment.