Skip to content

Commit 25e442d

Browse files
committed
Fixes & Improvements
- Fixed `cleanPattern` method not fully handling optional brackets (Thanks to @TPGamesNL for helping me with this) - Fixed `classes (types)` having unneeded <code> tags in the patterns - Fixed `classes (types)` patterns not parsing HTML well - Fixed `classes (types)` patterns not parsing links - Improved `HTMLGenerator.class` to use StringBuilder in some cases - Fixed `CommandSender` type example
1 parent 5a1a8be commit 25e442d

File tree

4 files changed

+171
-100
lines changed

4 files changed

+171
-100
lines changed

src/main/java/ch/njol/skript/classes/data/BukkitClasses.java

+11-5
Original file line numberDiff line numberDiff line change
@@ -947,11 +947,17 @@ public boolean mustSyncDeserialization() {
947947
.description("A player or the console.")
948948
.usage("use <a href='expressions.html#LitConsole'>the console</a> for the console",
949949
"see <a href='#player'>player</a> for players.")
950-
.examples("on command /pm:",
951-
" command sender is not the console",
952-
" chance of 10%",
953-
" give coal to the player",
954-
" message \"You got a piece of coal for sending that PM!\"")
950+
.examples("command /push [<player>]:",
951+
"\ttrigger:",
952+
"\t\tif arg-1 is not set:",
953+
"\t\t\tif command sender is console:",
954+
"\t\t\t\tsend \"You can't push yourself as a console :\\\" to sender",
955+
"\t\t\t\tstop",
956+
"\t\t\tpush sender upwards with force 2",
957+
"\t\t\tsend \"Yay!\"",
958+
"\t\telse:",
959+
"\t\t\tpush arg-1 upwards with force 2",
960+
"\t\t\tsend \"Yay!\" to sender and arg-1")
955961
.since("1.0")
956962
.defaultExpression(new EventValueExpression<>(CommandSender.class))
957963
.parser(new Parser<CommandSender>() {

0 commit comments

Comments
 (0)