.
This commit is contained in:
parent
35a0784e40
commit
0cf84f5419
19 changed files with 66 additions and 47 deletions
|
|
@ -18,7 +18,6 @@ import de.kentoj.scrow.velocity.ScrowAPI;
|
|||
import de.kentoj.scrowlib.convention.ScrowMessageStyle;
|
||||
import de.kentoj.scrowlib.utils.EnvUtils;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import site.lab0x13.scrow.commands.model.literal.MessageStyle;
|
||||
|
||||
@Plugin(
|
||||
id = "corevelocity",
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class MsgCommand {
|
|||
}
|
||||
|
||||
private void executeSync(ScrowVelocityCC ctx) {
|
||||
var target = ctx.getarg(targetArg);
|
||||
var target = ctx.getArg(targetArg);
|
||||
var msg = ctx.getArg(msgArg);
|
||||
|
||||
var isMessagingSelf = target.getUniqueId().equals(ctx.player().getUniqueId());
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package de.kentoj.scrow.corevelocity.privmsg;
|
||||
|
||||
import com.leakyabstractions.result.core.Results;
|
||||
import com.velocitypowered.api.proxy.Player;
|
||||
import com.velocitypowered.api.proxy.ProxyServer;
|
||||
import de.kentoj.scrow.velocity.commands.ScrowVelocityCC;
|
||||
import de.kentoj.scrowlib.convention.ScrowMessageStyle;
|
||||
|
|
@ -42,7 +43,7 @@ public class ReplyCommand {
|
|||
ctx.player().sendMessage(ctx.style().err("The player you last messaged is no longer online."));
|
||||
return;
|
||||
}
|
||||
privMsgHandler.handle(ctx.sender(), target, msg);
|
||||
privMsgHandler.handle(ctx.player(), target, msg);
|
||||
}
|
||||
|
||||
public RootLiteral<ScrowVelocityCC> rootLiteral() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue