Skip to content

Commit

Permalink
fix: Double slash commands (closes #414)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Nov 5, 2024
1 parent 9a51e72 commit a6ae8b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/edition/java/proxy/handle_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package proxy
import (
"context"
"errors"
"go.minekube.com/gate/pkg/internal/future"
"strings"
"time"

"go.minekube.com/gate/pkg/internal/future"

"go.minekube.com/brigodier"
"go.minekube.com/common/minecraft/color"
"go.minekube.com/common/minecraft/component"

"go.minekube.com/gate/pkg/command"
"go.minekube.com/gate/pkg/edition/java/proto/packet/chat"
"go.minekube.com/gate/pkg/edition/java/proto/version"
Expand Down Expand Up @@ -43,7 +44,7 @@ func (c *chatHandler) queueCommandResult(
lastSeenMessages *chat.LastSeenMessages,
packetCreator func(event *CommandExecuteEvent, lastSeenMessages *chat.LastSeenMessages) proto.Packet,
) {
cmd := strings.TrimPrefix(message, "/")
cmd := message
e := &CommandExecuteEvent{
source: c.player,
commandline: cmd,
Expand Down

0 comments on commit a6ae8b3

Please sign in to comment.