Skip to content

Commit f396ae4

Browse files
committed
fix: address code suggestions
1 parent 8530435 commit f396ae4

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/main/java/ch/njol/skript/conditions/CondAlphanumeric.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import ch.njol.skript.Skript;
88
import ch.njol.skript.doc.Description;
9-
import ch.njol.skript.doc.Examples;
9+
import ch.njol.skript.doc.Example;
1010
import ch.njol.skript.doc.Name;
1111
import ch.njol.skript.doc.Since;
1212
import ch.njol.skript.lang.Condition;
@@ -16,7 +16,7 @@
1616

1717
@Name("Alphanumeric")
1818
@Description({"Checks if the given string is alphanumeric."})
19-
@Examples("""
19+
@Example("""
2020
if the argument is not alphanumeric:
2121
send "Invalid name!"
2222
""")

src/main/java/ch/njol/skript/effects/EffLog.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@
3232
@Description({"Writes text into a .log file. Skript will write these files to /plugins/Skript/logs.",
3333
"NB: Using 'server.log' as the log file will write to the default server log. Omitting the log file altogether will log the message as '[Skript] [<script>.sk] <message>' in the server log."})
3434
@Example("""
35-
# Broadcast on join
3635
on join:
3736
log "%player% has just joined the server!"
3837
""")
3938
@Example("""
40-
# Log world changes
4139
on world change:
4240
log "Someone just went to %event-world%!" to file "worldlog/worlds.log"
4341
""")
4442
@Example("""
45-
# Log commands with severity
4643
on command:
4744
log "%player% just executed %full command%!" to file "server/commands.log" with a severity of warning
4845
""")

src/main/java/ch/njol/skript/effects/EffToggle.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
projectile is arrow
3232
toggle the block at the arrow
3333
""")
34-
@Example("# With booleans")
35-
@Example("toggle gravity of player")
34+
@Example("""
35+
# With booleans
36+
toggle gravity of player
37+
""")
3638
@Since("1.4, 2.12 (booleans)")
3739
public class EffToggle extends Effect {
3840

src/main/java/ch/njol/skript/expressions/ExprIP.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
@Name("IP")
2727
@Description("The IP address of a player, or the connected player in a <a href='#connect'>connect</a> event, " +
2828
"or the pinger in a <a href='#server_list_ping'>server list ping</a> event.")
29-
@Example("ban the IP address of the player")
30-
@Example("broadcast \"Banned the IP %IP of player%\"")
29+
@Example("""
30+
ban the IP address of the player")
31+
broadcast "Banned the IP %IP of player%"
32+
""")
3133
@Example("""
3234
on connect:
3335
log "[%now%] %player% (%ip%) is connected to the server."

0 commit comments

Comments
 (0)