Skript Request

  • 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!

Feb 9, 2025
10
0
1
hi, i would like a script that when sponsoratletic executes commands that give him advantages, like gmc gms gmsp gamemode creative, tp, execute locate give etc bans him from the console and sends me a message a bot on discord mentioning me <@1082308741510209646> saying the reason for the ban
 
hi, i don't know and i'm not sure what sponsoratletic is, but basically it can be implemented like this:

use skCord for the script and I recommend doing something similar via webhooks, so yeah

AppleScript:
 # gmc gms gmsp gamemode creative, tp, execute locate give

on command:
    # your some logic that i didn't understand
    if message contains "gmc" or "gms" or "gmsp" or "ganemode creative" or "tp" or "execute" or "locate" or "give":
        cancel the event
        execute console command "/ban %player% Using blocked command: %message%"
        send "<@1082308741510209646> | Player %player% was banned because used blocked command %message%" to discord webhook with url "your_webhook_url"
 
hi, i don't know and i'm not sure what sponsoratletic is, but basically it can be implemented like this:

use skCord for the script and I recommend doing something similar via webhooks, so yeah

AppleScript:
 # gmc gms gmsp gamemode creative, tp, execute locate give

on command:
    # your some logic that i didn't understand
    if message contains "gmc" or "gms" or "gmsp" or "ganemode creative" or "tp" or "execute" or "locate" or "give":
        cancel the event
        execute console command "/ban %player% Using blocked command: %message%"
        send "<@1082308741510209646> | Player %player% was banned because used blocked command %message%" to discord webhook with url "your_webhook_url"
Thanks, I Know that it has no sense but it's just for fun, so my friend won't cheat
 
ok, got it, then it will be something like this:
AppleScript:
# gmc gms gmsp gamemode creative, tp, execute locate give

on command:
    if player's name = "sponsoratletic":
        if message contains "gmc" or "gms" or "gmsp" or "ganemode creative" or "tp" or "execute" or "locate" or "give":
            cancel the event
            execute console command "/ban %player% Using blocked command: %message%"
            send "<@1082308741510209646> | Player %player% was banned because used blocked command %message%" to discord webhook with url "your_webhook_url"
 
  • Like
Reactions: JamesTheFlash22
ok, got it, then it will be something like this:
AppleScript:
# gmc gms gmsp gamemode creative, tp, execute locate give

on command:
    if player's name = "sponsoratletic":
        if message contains "gmc" or "gms" or "gmsp" or "ganemode creative" or "tp" or "execute" or "locate" or "give":
            cancel the event
            execute console command "/ban %player% Using blocked command: %message%"
            send "<@1082308741510209646> | Player %player% was banned because used blocked command %message%" to discord webhook with url "your_webhook_url"
Thanks
 
Hi, I like your idea, it's a good way to secure the server against abuse. I think a Skript with a list of forbidden commands and a Discord webhook would do the trick. If you want, I can help you code it or test it. Let me know if you want us to work on it together!

You can post this as is on the forum to participate in the discussion. If you want a more technical or more serious version, I can offer you another one.
 
Hi, I like your idea, it's a good way to secure the server against abuse. I think a Skript with a list of forbidden commands and a Discord webhook would do the trick. If you want, I can help you code it or test it. Let me know if you want us to work on it together!

You can post this as is on the forum to participate in the discussion. If you want a more technical or more serious version, I can offer you another one.
I had some problems with the new version of skript, but i fixed it, thanks, but it is only a way to prank my friend when he cheats