We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32498d2 commit d0454cfCopy full SHA for d0454cf
1 file changed
Example Scripts/surfaceSmite.ser
@@ -6,10 +6,11 @@
6
@target = LimitPlayers @surfacePlayers 1
7
8
# 2. Check if anyone was actually found to avoid a runtime error.
9
-if {AmountOf @target} > 0
10
- # 3. Execute the kill with a custom reason.
11
- Kill @target "The surface is no longer safe."
12
- Broadcast @sender 5s "Eliminated {@target nickname} from the surface."
13
-else
+if {AmountOf @target} isnt 1
14
Broadcast @sender 5s "No players found in the Surface Zone."
15
-end
+ stop
+end
+
+# 3. Execute the kill with a custom reason.
+Kill @target "The surface is no longer safe."
16
+Broadcast @sender 5s "Eliminated {@target -> name} from the surface."
0 commit comments