commandsBeginnermc 1.20.x – 1.21.x19 lines
private messages (/msg /r)
/msg <player> <text> sends a private message. /r replies to the last sender. both parties see the exchange.
vanilla Skriptno addons required.
private-message.sk19 lines
command /msg <player> <text>: aliases: /tell, /w trigger: send "&7[&dme &7-> &d%arg-1%&7] &f%arg-2%" to player send "&7[&d%player% &7-> &dme&7] &f%arg-2%" to arg-1 set {msg.last.%uuid of arg-1%} to player set {msg.last.%uuid of player%} to arg-1 command /r <text>: aliases: /reply trigger: if {msg.last.%uuid of player%} is not set: send "&cNo one to reply to." to player stop set {_target} to {msg.last.%uuid of player%} send "&7[&dme &7-> &d%{_target}%&7] &f%arg-1%" to player send "&7[&d%player% &7-> &dme&7] &f%arg-1%" to {_target} set {msg.last.%uuid of {_target}%} to player
get it running
private-message.sk · 19 lines · vanilla Skript- 1
copy or download
grab the .sk file with the buttons up top.
private-message.sk· ready to drop in - 2
drop it in your scripts folder
save it exactly here on your server — no typos, just copy the path:
…/plugins/Skript/scripts/private-message.sk - 3
reload in-game
run this in chat or console — your script goes live instantly:
/sk reload private-message
that's it — your script is live. hop in-game to try it.
/ related templates
more commands templates
commands
/heal command
lets ops or anyone with the permission heal themselves with /heal. confirms with a green message.
commands/spawn command (with warmup)
teleports the player to the spawn point of the main world. 3-second warmup with cancel-on-move.
commandswarp system (/warp /setwarp /delwarp)
admins set named warp points; players teleport to them. warp locations persist across reloads.