Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
c0b7859f
Commit
c0b7859f
authored
May 01, 2022
by
coooookies
Browse files
List command should show player uid
parent
eac9c04e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/ListCommand.java
View file @
c0b7859f
...
...
@@ -19,8 +19,19 @@ public final class ListCommand implements CommandHandler {
if
(
playersMap
.
size
()
!=
0
)
{
StringBuilder
playerSet
=
new
StringBuilder
();
playersMap
.
values
().
forEach
(
player
->
playerSet
.
append
(
player
.
getNickname
()).
append
(
", "
));
playersMap
.
values
().
forEach
(
player
->
{
playerSet
.
append
(
player
.
getNickname
());
if
(
sender
!=
null
)
{
playerSet
.
append
(
"<color=green><UID:"
)
.
append
(
player
.
getUid
())
.
append
(
"></color>, "
);
}
else
{
playerSet
.
append
(
"<UID:"
)
.
append
(
player
.
getUid
())
.
append
(
">, "
);
}
});
String
players
=
playerSet
.
toString
();
CommandHandler
.
sendMessage
(
sender
,
players
.
substring
(
0
,
players
.
length
()
-
2
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment