mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Cross server whispering bug fixes
This commit is contained in:
1 parent
16d98d35cc
commit
2fb43df8ad
4 files changed
+34
-18
No files matched your search
@@ -22,6 +22,10 @@ public class MessageCommand extends BaseCommand {
|
||||
@Default
|
||||
@CommandCompletion("@players")
|
||||
public void baseCommand(Player player, ChatUser targetUser, String... args) {
|
||||
if (args.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
ChatUser sender = simpleChat.getUserService().wrap(player);
|
||||
targetUser.sendMessage(sender, String.join(" ", args));
|
||||
}
|
||||
|
||||
@@ -22,6 +22,10 @@ public class ReplyCommand extends BaseCommand {
|
||||
|
||||
@Default
|
||||
public void baseCommand(Player player, String... args) {
|
||||
if (args.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
ChatUser user = simpleChat.getUserService().wrap(player);
|
||||
ChatUser targetUser = simpleChat.getUserService().wrap(user.getReplyTarget());
|
||||
|
||||
|
||||
Reference in new issue
Block a user