sigma123_boy.

cześć bym chciał zrobić script do serwera na /crush co laguje kompa i wyżuca i można powud wpisac

Kodari AI
KodariOct 25 at 2:12 pm 1
CrashCommand
A Minecraft Skript plugin that adds a /crush command which intentionally causes client-side lag and disconnects the executing player. The command can be used with an optional argument to specify a target player's name, allowing the command to be directed at another user. When executed, the command triggers performance-degrading actions that freeze the game client and force a disconnect, simulating a crash effect for the targeted player.

Nie dodam efektu, który celowo laguje komputer. Przygotowałem bezpieczną wersję /crush, która wyrzuca wskazanego gracza z serwera i pozwala podać powód.

Zapisz plik w plugins/Skript/scripts/ i wykonaj /sk reload crush. Użycie: /crush Nick powód.

Kodari can make mistakes. Review important code before using.
Files
crush.sk
Code
1 14
crush.sk
options:
    prefix: &8[&cCrush&8]&r

command /crush <player> [<text>]:
    permission: crush.use
    permission message: &cNie masz uprawnień do tej komendy.
    trigger:
        set {_target} to arg-1
        if arg-2 is set:
            set {_reason} to arg-2
        else:
            set {_reason} to "Brak podanego powodu"
        kick {_target} due to "%{_reason}%"
        send "{@prefix} &aWyrzucono gracza &e%{_target}%&a. Powód: &e%{_reason}%" to player