Jump to content

Event skript


Recommended Posts

command /esetspawn:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {espawn} to location of player
        send "&aEvent spawn set"

command /espawn [<player>]:
    permission: "s.event.admin"
    trigger:
        player has permission "s.event.admin"
        if arg-1 is set:
            make console execute command "/tp %arg-1% %{espawn}%"
            send "&aYou've been sent to spawn" to arg-1
            stop
        if arg-1 is not set:
            make console execute command "/tp %player% %{espawn}%"
            send "&aTeleporting..."
            stop

command /ejoin:
    trigger:
        if {eventbegin} is set:
            make console execute command "clear %player%"
            set {ejoin.%player%} to true
            make console execute command "/tp %player% %{estart}%"
            make console execute command "/bc &a%player% has joined the event"
            stop

command /esetstart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {estart} to location of player
        send "&astarting position set"

command /eleave:
    trigger:
        delete {ejoin.%player%a}
        send "&aYou left or were kicked the event"
        stop

command /evkick <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make arg-1 execute command "/eleave"
        stop

command /esetrg <text>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {event.rg} to arg-1
        send "&aregion set"

command /epvp:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {epvp} is set:
            delete {epvp}
            make player execute command "/rg flag %{event.rg}% pvp deny"
            send "&apvp is now off"
            stop
        if {epvp} is not set:
            set {epvp} to true
            make player execute command "/rg flag %{event.rg}% pvp allow"
            send "&apvp is now on"
            stop

command /estart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {eventbegin} to true
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 30 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "&aTHE EVENT HAS BEGON"
        delete {eventbegin}

command /estop:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&aThe event is over"

command /ewinner <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"

command /ebuild:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebuild} is set:
            delete {ebuild}
            make player execute command "/rg flag %{event.rg}% build deny"
            send "&abuild is now off"
            stop
        if {ebuild} is not set:
            set {ebuild} to true
            make console execute command "/rg flag %{event.rg}% build allow"
            send "&abuild is now off"
            stop

command /ebreak:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebreak} is set:
            delete {ebreak}
            make player execute command "/rg flag %{event.rg}% block-break deny"
            send "&ablock-break is now off"
            stop
        if {ebreak} is not set:
            set {ebreak} to true
            make player execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-break is now off"
            stop

command /eplace:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {eplace} is set:
            delete {eplace}
            make player execute command "/rg flag %{event.rg}% block-place deny"
            send "&ablock-place is now off"
            stop
        if {eplace} is not set:
            set {eplace} to true
            make console execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-place is now off"
            stop

command /esumo:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break deny"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp allow"
        delete {eplace}
        delete {ebreak}
        delete {ebuild}
        set {epvp} to true
        send "&aSumo preset has been loaded"

on player respawn:
    if {ejoin.%player%} is set:
        wait 10 ticks
        make console execute command "/espawn %player%"

I spent alot  of time making this event skript. I hope you like it :D.

  • Like 1
Link to comment
Share on other sites

Not a perfect skript, but also not a bad one (as for a beginner, I belive), would probably be handy for some other servers!

It would be 256952237757169664.png.d18a09670746c6c6079d9c16a0ee3647.png if you could upvote my post if you found it helpful.

image.png.beca96975a3b4f2ba756ddf6d7eebbb2.png

Link to comment
Share on other sites

command /esetspawn:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {espawn} to location of player
        send "&aEvent spawn set"

command /espawn [<player>]:
    permission: "s.event.admin"
    trigger:
        player has permission "s.event.admin"
        if arg-1 is set:
            teleport player to {espawn}
            send "&aYou've been sent to spawn" to arg-1
            stop
        if arg-1 is not set:
            teleport player to {espawn}
            send "&aTeleporting..."
            stop

command /ejoin:
    trigger:
        if {eventbegin} is set:
            make console execute command "clear %player%"
            set {ejoin.%player%} to true
            teleport player to {estart}
            make console execute command "/bc &a%player% has joined the event"
            stop

command /esetstart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {estart} to location of player
        send "&astarting position set"

command /eleave:
    trigger:
        delete {ejoin.%player%a}
        make player execute command "/spawn"
        send "&aYou left or were kicked the event"
        stop

command /evkick <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make arg-1 execute command "/eleave"
        stop

command /esetrg <text>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {event.rg} to arg-1
        send "&aregion set"

command /epvp:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {epvp} is set:
            delete {epvp}
            make player execute command "/rg flag %{event.rg}% pvp deny"
            send "&apvp is now off"
            stop
        if {epvp} is not set:
            set {epvp} to true
            make player execute command "/rg flag %{event.rg}% pvp allow"
            send "&apvp is now on"
            stop

command /estart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {eventbegin} to true
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 30 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "&aTHE EVENT HAS BEGON"
        delete {eventbegin}

command /estop:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&aThe event is over"

command /ewinner <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"

command /ebuild:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebuild} is set:
            delete {ebuild}
            make player execute command "/rg flag %{event.rg}% build deny"
            send "&abuild is now off"
            stop
        if {ebuild} is not set:
            set {ebuild} to true
            make console execute command "/rg flag %{event.rg}% build allow"
            send "&abuild is now off"
            stop

command /ebreak:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebreak} is set:
            delete {ebreak}
            make player execute command "/rg flag %{event.rg}% block-break deny"
            send "&ablock-break is now off"
            stop
        if {ebreak} is not set:
            set {ebreak} to true
            make player execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-break is now off"
            stop

command /eplace:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {eplace} is set:
            delete {eplace}
            make player execute command "/rg flag %{event.rg}% block-place deny"
            send "&ablock-place is now off"
            stop
        if {eplace} is not set:
            set {eplace} to true
            make console execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-place is now off"
            stop

command /esumo:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break deny"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp allow"
        delete {eplace}
        delete {ebreak}
        delete {ebuild}
        set {epvp} to true
        send "&aSumo preset has been loaded"

on player respawn:
    if {ejoin.%player%} is set:
        wait 10 ticks
        make console execute command "/espawn %player%"

command /espleef:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break allow"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp deny"
        delete {eplace}
        set {ebreak} to true
        delete {ebuild}
        delete {epvp}
        send "&aSpleef preset has been loaded"

 

Link to comment
Share on other sites

I found another small bug Just fixed it

command /esetspawn:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {espawn} to location of player
        send "&aEvent spawn set"

command /espawn [<player>]:
    permission: "s.event.admin"
    trigger:
        player has permission "s.event.admin"
        if arg-1 is set:
            teleport player to {espawn}
            send "&aYou've been sent to spawn" to arg-1
            stop
        if arg-1 is not set:
            teleport player to {espawn}
            send "&aTeleporting..."
            stop

command /ejoin:
    trigger:
        if {eventbegin} is set:
            make console execute command "clear %player%"
            set {ejoin.%player%} to true
            teleport player to {estart}
            make console execute command "/bc &a%player% has joined the event"
            stop

command /esetstart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {estart} to location of player
        send "&astarting position set"

command /eleave:
    trigger:
        delete {ejoin.%player%a}
        make player execute command "/spawn"
        send "&aYou left or were kicked the event"
        stop

command /evkick <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make arg-1 execute command "/eleave"
        stop

command /esetrg <text>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {event.rg} to arg-1
        send "&aregion set"

command /epvp:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {epvp} is set:
            delete {epvp}
            make player execute command "/rg flag %{event.rg}% pvp deny"
            send "&apvp is now off"
            stop
        if {epvp} is not set:
            set {epvp} to true
            make player execute command "/rg flag %{event.rg}% pvp allow"
            send "&apvp is now on"
            stop

command /estart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {eventbegin} to true
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 30 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "bc &aTHE EVENT HAS BEGON"
        delete {eventbegin}

command /estop:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&aThe event is over"

command /ewinner <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"

command /ebuild:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebuild} is set:
            delete {ebuild}
            make player execute command "/rg flag %{event.rg}% build deny"
            send "&abuild is now off"
            stop
        if {ebuild} is not set:
            set {ebuild} to true
            make console execute command "/rg flag %{event.rg}% build allow"
            send "&abuild is now off"
            stop

command /ebreak:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebreak} is set:
            delete {ebreak}
            make player execute command "/rg flag %{event.rg}% block-break deny"
            send "&ablock-break is now off"
            stop
        if {ebreak} is not set:
            set {ebreak} to true
            make player execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-break is now off"
            stop

command /eplace:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {eplace} is set:
            delete {eplace}
            make player execute command "/rg flag %{event.rg}% block-place deny"
            send "&ablock-place is now off"
            stop
        if {eplace} is not set:
            set {eplace} to true
            make console execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-place is now off"
            stop

command /esumo:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break deny"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp allow"
        delete {eplace}
        delete {ebreak}
        delete {ebuild}
        set {epvp} to true
        send "&aSumo preset has been loaded"

on player respawn:
    if {ejoin.%player%} is set:
        wait 10 ticks
        make console execute command "/espawn %player%"

command /espleef:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break allow"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp deny"
        delete {eplace}
        set {ebreak} to true
        delete {ebuild}
        delete {epvp}
        send "&aSpleef preset has been loaded"

 

Link to comment
Share on other sites

command /esetspawn:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {espawn} to location of player
        send "&aEvent spawn set"

command /espawn [<player>]:
    permission: "s.event.admin"
    trigger:
        player has permission "s.event.admin"
        if arg-1 is set:
            teleport player to {espawn}
            send "&aYou've been sent to spawn" to arg-1
            stop
        if arg-1 is not set:
            teleport player to {espawn}
            send "&aTeleporting..."
            stop

command /ejoin:
    trigger:
        if {eventbegin} is set:
            make console execute command "clear %player%"
            set {ejoin.%player%} to true
            add player to {contest::*}
            teleport player to {estart}
            make console execute command "/bc &a%player% has joined the event"
            stop

command /esetstart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {estart} to location of player
        send "&astarting position set"

command /eleave:
    trigger:
        delete {ejoin.%player%a}
        remove player from {contest::*}
        make player execute command "/spawn"
        send "&aYou left or were kicked the event"
        stop

command /evkick <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make arg-1 execute command "/eleave"
        stop

command /esetrg <text>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {event.rg} to arg-1
        send "&aregion set"

command /epvp:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {epvp} is set:
            delete {epvp}
            make player execute command "/rg flag %{event.rg}% pvp deny"
            send "&apvp is now off"
            stop
        if {epvp} is not set:
            set {epvp} to true
            make player execute command "/rg flag %{event.rg}% pvp allow"
            send "&apvp is now on"
            stop

command /estart:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        set {eventbegin} to true
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 30 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 10 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "bc &aAn event is being hosted by %player%. To join, do /ejoin"
        wait 5 seconds
        make console execute command "bc &aTHE EVENT HAS BEGON"
        delete {eventbegin}

command /estop:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        loop all players:
            make loop-player execute command "/eleave"
            broadcast "&aThe event is over"
            stop

command /ewinner <player>:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"
        broadcast "&c%arg-1% &aHAS WON THE EVENT"

command /ebuild:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebuild} is set:
            delete {ebuild}
            make player execute command "/rg flag %{event.rg}% build deny"
            send "&abuild is now off"
            stop
        if {ebuild} is not set:
            set {ebuild} to true
            make console execute command "/rg flag %{event.rg}% build allow"
            send "&abuild is now off"
            stop

command /ebreak:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {ebreak} is set:
            delete {ebreak}
            make player execute command "/rg flag %{event.rg}% block-break deny"
            send "&ablock-break is now off"
            stop
        if {ebreak} is not set:
            set {ebreak} to true
            make player execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-break is now off"
            stop

command /eplace:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        if {eplace} is set:
            delete {eplace}
            make player execute command "/rg flag %{event.rg}% block-place deny"
            send "&ablock-place is now off"
            stop
        if {eplace} is not set:
            set {eplace} to true
            make console execute command "/rg flag %{event.rg}% block-place allow"
            send "&ablock-place is now off"
            stop

command /esumo:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break deny"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp allow"
        delete {eplace}
        delete {ebreak}
        delete {ebuild}
        set {epvp} to true
        send "&aSumo preset has been loaded"

on player respawn:
    wait 10 ticks
    if {ejoin.%player%} is set:
        wait 10 ticks
        teleport player to {espawn}
        
command /espleef:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        make player execute command "/rg flag %{event.rg}% block-break allow"
        make player execute command "/rg flag %{event.rg}% block-place deny"
        make player execute command "/rg flag %{event.rg}% build deny"
        make player execute command "/rg flag %{event}% pvp deny"
        delete {eplace}
        set {ebreak} to true
        delete {ebuild}
        delete {epvp}
        send "&aSpleef preset has been loaded"

on player respawn:
    wait 10 ticks
    if {ejoin.%player%} is set:
        delete {ejoin.%player%}
        remove player from {contest::*}

command /tpc:
    permission: s.event.admin
    trigger:
        player has permission "s.event.admin"
        teleport {contest::*} to player
        send "&aTeleporting contestents"

Best Version

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • Umjiii locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...