region help

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

Status
Not open for further replies.

Congraz

Member
Oct 26, 2018
45
0
0
22
Hallo!

I need help to make the console add a flag to a region, at line 37


Code:
command /start:
    permission: Admin.sk
    permission message: &8[&3&lEvent&8]&7 Du har ikke adgang til at starte events.
    trigger:
        add location of player to {radtp::*}
        send "&8[&3&lEvent&8] &7Du satte lobby-location for dette event." to player
        send "&8- &7Eventet vil begynde at blive informeret til alle spillere om 5 sekunder!"
        wait 5 seconds
        broadcast "&8[&3&lEvent&8] &7Så er der &3&lEvent!&7 Skriv &a/join &7for at deltag! &e(60 sek)"
        make console execute command "/pex group default add event.sk PvPMAP"
        wait 30 seconds
        broadcast "&8[&3&lEvent&8] &7Så er der &3&lEvent!&7 Skriv &a/join &7for at deltag! &e(30 sek)"
        wait 15 seconds
        broadcast "&8[&3&lEvent&8] &7Så er der &3&lEvent!&7 Skriv &a/join &7for at deltag! &e(15 sek)"
        wait 10 seconds
        broadcast "&8[&3&lEvent&8] &7Så er der &3&lEvent!&7 Skriv &a/join &7for at deltag! &e(10 sek)"
        wait 5 seconds
        broadcast "&8[&3&lEvent&8] &7Så er der &3&lEvent!&7 Skriv &a/join &7for at deltag! &e(5 sek)"
        wait 5 seconds
        broadcast "&8[&3&lEvent&8] &7Eventet er startet og det er ikke muligt at deltag mere."
        make console execute command "/pex group default remove event.sk PvPMAP"
        delete {radtp::*}
        loop all players in world "World":
            wait 1 second
            make console execute command "/give %loop-player% stone:555 2304"
            broadcast "&8[&3&lEvent&8] &7Okay, folkens. Er vi klar o:" to "world"
            wait 5 ticks
            broadcast "&8[&3&lEvent&8] &7Om &e10 sekunder&7, vil pvp blive &a&nslået til&7!" to "world"
            wait 5 seconds
            broadcast "&8[&3&lEvent&8] &7Det gælder om at være den sidste tilbage!" to "world"
            wait 2 seconds
            broadcast "&8[&3&lEvent&8] &e3 sekunder&7 tilbage! Har alle fundet sit spot!" to "world"
            wait 2 seconds
            broadcast "&6&l2" to "world"
            wait 1 second
            broadcast "&6&l1" to "world"
            make console execute command "/rg flag __global__ pvp allow world"
            broadcast "&6&lHeld og lykke!" to "world"
 
On line 37, try changing from

Code:
make console execute command "/rg flag __global__ pvp allow world"

to

Code:
make console execute command "/rg flag __global__ pvp allow"

If that doesn't work, send me the problem/error
 
if something with commands doesn't work, look in the console for errors.
Code:
make console execute command "/rg flag __global__ -w world pvp allow"
replace "world" with the name of your world if you use multiverse, if not just leave it like that
 
Status
Not open for further replies.