sumitnoob38

make a skript which makes it so that in the world named ffa, if a player tries to do any / command , it will not execute and instead sent a msg to the player saying that 'commands are disabled in this world', make the text bold and red, also only one command should work in that world , only the /spawn commamd, except people with op

Kodari AI
KodariJun 25 at 5:47 am 2

I’ll create a command blocker for the FFA world.

FFACommandBlocker
A lightweight Skript that restricts command usage in the FFA world. Blocks all player commands except /spawn, displaying a bold red warning message. OP players bypass all restrictions. Perfect for maintaining fairness in free-for-all combat zones by preventing command abuse while keeping essential navigation commands accessible.

Installation:

  1. Place ffa-command-blocker.sk in plugins/Skript/scripts/

  2. Run /sk reload ffa-command-blocker or restart server

  3. Done!

How it works:

  • ✓ Blocks all commands in world “ffa”

  • ✓ Allows /spawn for everyone

  • ✓ OP players can use any command

  • ✓ Shows bold red warning message

Kodari can make mistakes. Review important code before using.
Files
ffa-command-blocker.sk
Code
1 15
ffa-command-blocker.sk
# FFA Command Blocker
# Disables all commands in the FFA world except /spawn
# OP players bypass all restrictions

on command:
    # Check if player is in the FFA world
    if player's world is "ffa":
        # Check if player is NOT op
        if player is not op:
            # Check if command is NOT spawn
            if command is not "spawn":
                # Cancel the command
                cancel event
                # Send bold red message
                send "&c&lCommands are disabled in this world" to player