PaperMC / PaperMC/Velocity

Issues with the /server command

Open
#1,657 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
Java
Stars
2.3k
Forks
960
Avg merge
5d 10h
Merged PRs (30d)
2

Description

Expected Behavior

None

Actual Behavior

When I use a Chinese name and enter the /server command on the server for cross-server use, it prompts: Expected whitespace to end one argument, but found trailing data at position 7: server <--[HERE]

[servers]
"登录大厅" = "127.0.0.1:52020"
"原版生存" = "127.0.0.1:52011"
"空岛生存" = "127.0.0.1:52022"
"荣耀纪元" = "127.0.0.1:52033"

try = [
"登录大厅"
]

[forced-hosts]
"lobby.sakura18.cn" = [
"登录大厅"
]
"factions.sakura18.cn" = [
"原版生存"
]
"skyisland.sakura18.cn" = [
"空岛生存"
]
"mmorpg.sakura18.cn" = [
"荣耀纪元"
]

Steps to Reproduce

None

Plugin List

None

Velocity Version

velocity-3.4.0-SNAPSHOT-535

Additional Information

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the /server command with the Chinese server names shown in the issue on Velocity 3.4.0-SNAPSHOT-535, then trace the command parsing and server-name lookup entry points. Done means /server accepts those names and routes to the configured servers without the trailing-data error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.