Semi Anti Cheat Skript - HELP! (simple code)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

AnakTentara

Member
May 4, 2021
3
0
1
23
i want to make a system that if there is a player have a permission "*" and the name of player is not "Name1", "Name2" or "Name3", it will remove the permission. i make this code, please help.
code:
Code:
every second:
    if player have permission "*":
        if name of player is not "Daichi_keii", "AnakTentara", "BABU_King", "_Welltez", "_AnakTentara7379", "akhdan" or "akhdan461":
            remove "*" from player permissions
    if player have permission "weight.105" and "prefix.105.&f「 &f✦ &c&lADMIN &f✦ &f」&r":
        if name of player is not "Daichi_keii", "AnakTentara", "BABU_King", "_Welltez", "_AnakTentara7379", "akhdan" or "akhdan461":
            execute console command "luckperms user %player% parent set default"

it say "There's no player in a periodical event" on "if player have permission". I KNOW I WRONG BUT I DONT KNOW HOW TO CODE THIS ;-; please help ;-;

i have code to disable op command, but maybe if i can make this code, is very usefull.
Code:
command /op [<offlineplayer>]:
    trigger:
        if executor is console:
            if arg 1 is "Daichi_keii" or "AnakTentara" or "BABU_King" or "_Welltez" or "_AnakTentara7379" or "akhdan" or "akhdan461":
                op arg-1
                send "&7[Server: Make %arg 1% operator]" to console
            else:
                send "&7Maaf operator hanya bisa di berikan kepada beberapa player" to console
        else:
            send "Perintah ini hanya dapat dijalankan dari konsol server."
command /minecraft:op [<offlineplayer>]:
    trigger:
        if executor is console:
            if arg 1 is "Daichi_keii" or "AnakTentara" or "BABU_King" or "_Welltez" or "_AnakTentara7379" or "akhdan" or "akhdan461":
                op arg-1
                send "&7[Server: Make %arg 1% operator]" to console
            else:
                send "&7Maaf operator hanya bisa di berikan kepada beberapa player" to console
        else:
            send "Perintah ini hanya dapat dijalankan dari konsol server."
command /deop [<offlineplayer>]:
    trigger:
        if executor is console:
            if arg 1 is "Daichi_keii" or "BABU_King" or "_Welltez" or "_AnakTentara7379" or "akhdan" or "akhdan461":
                send "&7Maaf, operator player ini tidak dapat di hilangkan" to console
            else:
                send "&7[Server: Deop %arg 1%]" to console
                deop arg-1
        else:
            send "Perintah ini hanya dapat dijalankan dari konsol server."
command /minecraft:deop [<offlineplayer>]:
    trigger:
        if executor is console:
            if arg 1 is "Daichi_keii" or "BABU_King" or "_Welltez" or "_AnakTentara7379" or "akhdan" or "akhdan461":
                send "&7Maaf, operator player ini tidak dapat di hilangkan" to console
            else:
                send "&7[Server: Deop %arg 1%]" to console
                deop arg-1
        else:
            send "Perintah ini hanya dapat dijalankan dari konsol server."
 
why do you even need this code in the first place? just don't give people you don't trust op or access to your console
 
Unfortunately, your friend owns the hosting. As far as I can tell, they can change the file manager and console to their will.

If you don't feel that you can trust your friend, don't host from them.