Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill310 committed Jun 10, 2024
1 parent 7eaf8b4 commit 7deb6ca
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/main/java/ch/njol/skript/expressions/ExprMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,27 @@
@SuppressWarnings("deprecation")
@Name("Message")
@Description("The (chat) message of a chat event, the join message of a join event, the quit message of a quit event, or the death message on a death event. This expression is mostly useful for being changed.")
@Examples({"on chat:",
" player has permission \"admin\"",
" set message to \"&c%message%\"",
@Examples({
"on chat:",
"\tplayer has permission \"admin\"",
"\tset message to \"&c%message%\"",
"",
"on first join:",
" set join message to \"Welcome %player% to our awesome server!\"",
"\tset join message to \"Welcome %player% to our awesome server!\"",
"",
"on join:",
" player has played before",
" set join message to \"Welcome back, %player%!\"",
"\tplayer has played before",
"\tset join message to \"Welcome back, %player%!\"",
"",
"on quit:",
" set quit message to \"%player% left this awesome server!\"",
"\tif {vanish::%player's uuid%} is set:",
"\t\tclear quit message",
"\telse:",
"\t\tset quit message to \"%player% left this awesome server!\"",
"",
"on death:",
" set the death message to \"%player% died!\""})
@Since("1.4.6 (chat message), 1.4.9 (join & quit messages), 2.0 (death message)")
"\tset the death message to \"%player% died!\""})
@Since("1.4.6 (chat message), 1.4.9 (join & quit messages), 2.0 (death message), INSERT VERSION (clear message)")
@Events({"chat", "join", "quit", "death"})
public class ExprMessage extends SimpleExpression<String> {

Expand Down

0 comments on commit 7deb6ca

Please sign in to comment.