Files
FfaCommandBlocker.sk
Code
1 26
FfaCommandBlocker.sk
# ═══════════════════════════════════════════════
# FFA Command Blocker
# Blocks all commands in the "ffa" world.
# Only /spawn is allowed.
# ═══════════════════════════════════════════════
# INSTALL: Place in plugins/Skript/scripts/
# RELOAD: /sk reload FfaCommandBlocker
# ═══════════════════════════════════════════════
options:
ffa-world: ffa
blocked-msg: &c&lCommands are disabled in this world!
# Block all commands in the ffa world
on command:
if world of player is "{@ffa-world}":
if command is "/spawn":
stop
cancel event
send "{@blocked-msg}" to player
# /spawn command - works in ffa world
command /spawn:
trigger:
teleport player to spawn of world of player
send "&aYou have been teleported to spawn!" to player