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

FrostPVP™️

Active Member
Feb 12, 2021
63
3
8
24
USA
I need a /spawn skript
- /setspawn
- /spawn
- sk.spawn (For /setspawn, and /delspawn)
- /delspawn sk.spawn
- no /spawn permission
- instant spawn
- if your in combat wait 3 seconds then /spawn (instant teleport)
- make it say "&eWait &63 &eSeconds" type of thing when there in combat
- (teleport message) "&aYou have been teleported to spawn"
- (no permission message) "&4Insufficient Permission"
Thank You <3
If you have any questions about the skript please message me on discord or skunity
 
Last edited:
Code:
variables:
    {%player%.cooldown} = false

on disconnect:
    set {%player%.cooldown} to false

on join:
    set {%player%.cooldown} to false

on damage:
    attacker is a player
    if {%attacker%.cooldown} is false:
        set {%attacker%.cooldown} to true
        wait 3 seconds
        set {%attacker%.cooldown} to false
    else:
        stop


command /setspawn:
    trigger:
        if player has permission "sk.spawn":
            set {Spawn.t} to player's location
            send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
        else:
            send "&5&lNo Perms!"

command /delspawn:
    trigger:
        if player has permission "sk.spawn":
            delete {Spawn.t}
            send "&a&lDone, &6&lDeleted the main spawn!"
        else:
            send "&5&lNo Perms!"

command /spawn:
    trigger:
        if {%player%.cooldown} is false:
            teleport player to {Spawn.t}
            send "&a&lTeleported to spawn!"
        else:
            send "&4&lYou are currently in combat!"
[doublepost=1614460338,1614460281][/doublepost]wait i will edit the messages because i forgot to edit them xD
 
Code:
variables:
    {%player%.cooldown} = false

on disconnect:
    set {%player%.cooldown} to false

on join:
    set {%player%.cooldown} to false

on damage:
    attacker is a player
    if {%attacker%.cooldown} is false:
        set {%attacker%.cooldown} to true
        wait 3 seconds
        set {%attacker%.cooldown} to false
    else:
        stop


command /setspawn:
    trigger:
        if player has permission "sk.spawn":
            set {Spawn.t} to player's location
            send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
        else:
            send "&5&lNo Perms!"

command /delspawn:
    trigger:
        if player has permission "sk.spawn":
            delete {Spawn.t}
            send "&a&lDone, &6&lDeleted the main spawn!"
        else:
            send "&5&lNo Perms!"

command /spawn:
    trigger:
        if {%player%.cooldown} is false:
            teleport player to {Spawn.t}
            send "&a&lTeleported to spawn!"
        else:
            send "&4&lYou are currently in combat!"
so this is the finished product?
 
Here is the code

Code:
variables:
    {%player%.cooldown} = false
    {%player%.waittime} = 0

on disconnect:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on join:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on damage:
    attacker is a player
    if {%attacker%.cooldown} is false:
        set {%attacker%.cooldown} to true
        set {%attacker%.waittime} to 3
        wait 1 second
        set {%attacker%.waittime} to 2
        wait 1 second
        set {%attacker%.waittime} to 1
        wait 1 second
        set {%attacker%.waittime} to 0
        set {%attacker%.cooldown} to false
    else:
        stop

command /setspawn:
    trigger:
        if player has permission "sk.spawn":
            set {Spawn.t} to player's location
            send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
        else:
            send "&4Insufficient Permission"

command /delspawn:
    trigger:
        if player has permission "sk.spawn":
            delete {Spawn.t}
            send "&a&lDone, &6&lDeleted the main spawn!"
        else:
            send "&5&lNo Perms!"

command /spawn:
    trigger:
        if {%player%.cooldown} is false:
            teleport player to {Spawn.t}
            send "&aYou have been teleported to spawn"
        else:
            send "&eWait &6%{%player%.waittime}% &eSeconds"
[doublepost=1614460709,1614460654][/doublepost]
okay :emoji_slight_smile: ty
[doublepost=1614460650,1614460619][/doublepost]
I can edit it if you want
done :emoji_grinning:
 
  • Like
Reactions: FrostPVP™️
Here is the code

Code:
variables:
    {%player%.cooldown} = false
    {%player%.waittime} = 0

on disconnect:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on join:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on damage:
    attacker is a player
    if {%attacker%.cooldown} is false:
        set {%attacker%.cooldown} to true
        set {%attacker%.waittime} to 3
        wait 1 second
        set {%attacker%.waittime} to 2
        wait 1 second
        set {%attacker%.waittime} to 1
        wait 1 second
        set {%attacker%.waittime} to 0
        set {%attacker%.cooldown} to false
    else:
        stop

command /setspawn:
    trigger:
        if player has permission "sk.spawn":
            set {Spawn.t} to player's location
            send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
        else:
            send "&4Insufficient Permission"

command /delspawn:
    trigger:
        if player has permission "sk.spawn":
            delete {Spawn.t}
            send "&a&lDone, &6&lDeleted the main spawn!"
        else:
            send "&5&lNo Perms!"

command /spawn:
    trigger:
        if {%player%.cooldown} is false:
            teleport player to {Spawn.t}
            send "&aYou have been teleported to spawn"
        else:
            send "&eWait &6%{%player%.waittime}% &eSeconds"
[doublepost=1614460709,1614460654][/doublepost]
done :emoji_grinning:
:emoji_grinning: ty
 
you instant spawn to spawn instead of waitin 3 seconds
ok wait lemme do it
[doublepost=1614465294,1614465164][/doublepost]
you instant spawn to spawn instead of waitin 3 seconds

Here

Code:
variables:
    {%player%.cooldown} = false
    {%player%.waittime} = 0

on disconnect:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on join:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on damage:
    attacker is a player
    if {%attacker%.cooldown} is false:
        set {%attacker%.cooldown} to true
        set {%attacker%.waittime} to 3
        wait 1 second
        set {%attacker%.waittime} to 2
        wait 1 second
        set {%attacker%.waittime} to 1
        wait 1 second
        set {%attacker%.waittime} to 0
        set {%attacker%.cooldown} to false
    else:
        stop

command /setspawn:
    trigger:
        if player has permission "sk.spawn":
            set {Spawn.t} to player's location
            send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
        else:
            send "&4Insufficient Permission"

command /delspawn:
    trigger:
        if player has permission "sk.spawn":
            delete {Spawn.t}
            send "&a&lDone, &6&lDeleted the main spawn!"
        else:
            send "&5&lNo Perms!"

command /spawn:
    trigger:
        if player doesn't have permission "spawn.bypass":
            if {%player%.cooldown} is false:
                teleport player to {Spawn.t}
                send "&aYou have been teleported to spawn"
            else:
                send "&eWait &6%{%player%.waittime}% &eSeconds"
        else:
            teleport player to {Spawn.t}
            send "&aYou have been teleported to spawn"
 
  • Like
Reactions: FrostPVP™️
ok thank you <3
[doublepost=1614533772,1614465343][/doublepost]
ok wait lemme do it
[doublepost=1614465294,1614465164][/doublepost]

Here

Code:
variables:
    {%player%.cooldown} = false
    {%player%.waittime} = 0

on disconnect:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on join:
    set {%player%.cooldown} to false
    set {%player%.waittime} to 0

on damage:
    attacker is a player
    if {%attacker%.cooldown} is false:
        set {%attacker%.cooldown} to true
        set {%attacker%.waittime} to 3
        wait 1 second
        set {%attacker%.waittime} to 2
        wait 1 second
        set {%attacker%.waittime} to 1
        wait 1 second
        set {%attacker%.waittime} to 0
        set {%attacker%.cooldown} to false
    else:
        stop

command /setspawn:
    trigger:
        if player has permission "sk.spawn":
            set {Spawn.t} to player's location
            send "&a&lDone, &6&lSet the spawn location to &5&l%player's location%"
        else:
            send "&4Insufficient Permission"

command /delspawn:
    trigger:
        if player has permission "sk.spawn":
            delete {Spawn.t}
            send "&a&lDone, &6&lDeleted the main spawn!"
        else:
            send "&5&lNo Perms!"

command /spawn:
    trigger:
        if player doesn't have permission "spawn.bypass":
            if {%player%.cooldown} is false:
                teleport player to {Spawn.t}
                send "&aYou have been teleported to spawn"
            else:
                send "&eWait &6%{%player%.waittime}% &eSeconds"
        else:
            teleport player to {Spawn.t}
            send "&aYou have been teleported to spawn"
for some reason it doesn't work... i just tested it "The combat log part not the /setspawn and /delspawn those are good) people can just do /spawn in combat
 
Status
Not open for further replies.