Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Made by verdreht
- on script load:
- wait 10 ticks
- set {_ver} to text from "https://pastebin.com/raw/GQnPJFiD"
- if {_ver} is not "1.0":
- send "&8[&eUpdate&8] &6Lade Update herunter." to console
- download from "https://pastebin.com/raw/WSnLdDsk" to "plugins/Skript/scripts/%script%.sk"
- send "&8[&eUpdate&8] &eErfolgreich heruntergeladen." to console
- else:
- send "{@Prefix} &7Version &e%{_ver}% &7wurde &aerfolgreich &7geladen&8." to console
- stop
- every 2 seconds:
- set {_ver} to text from "https://pastebin.com/raw/GQnPJFiD"
- if {_ver} is not "{@Version}":
- send "&8[&eUpdate&8] &6Lade Update herunter." to console
- download from "https://pastebin.com/raw/WSnLdDsk" to "plugins/Skript/scripts/%script%.sk"
- send "&8[&eUpdate&8] &eErfolgreich heruntergeladen." to console
- make console execute command "sk reload %script%"
- send "{@Prefix} &7Lade &eUpdate &7herunter&8." to console
- stop
- on load:
- loop all players:
- kick loop-player due to "§8» &6MlgRush §8┃ &cDer Server wird neugeladen."
- set {state} to "LOBBY"
- delete {rot}
- delete {blau}
- delete {rounds::*}
- send "§8» &6MlgRush §8┃ &6MLGRush &7wurde &aaktiviert&8." to console
- send "§8» &6MlgRush §8┃ &7Plugin von &eEisteeRamon&8. &c<3" to console
- make console execute command "gamerule sendFommandFeedback false"
- make console execute command "gamerule keepInventory true"
- Command /setlobby [<text>]:
- permission: system.edit
- permission message: §8» &6MlgRush §8┃ &cDazu hast du keine Berechtigung.
- trigger:
- set {lobby} to location
- send "§8» &6MlgRush §8┃ &7Du hast die &eLobby &7gesetzt&8."
- play sound "CHEST_CLOSE" to player with volume 5000 and pitch 50
- send player title "&8● &6Setup &8●" with subtitle "&7Du hast die &eLobby &7gesetzt&8."
- stop
- Command /setspawn [<text>]:
- permission: system.edit
- permission message: §8» &6MlgRush §8┃ &cDazu hast du keine Berechtigung.
- trigger:
- if arg-1 is not set:
- send "§8» &6MlgRush §8┃ &7Verwende&8: &e/setspawn <Rot, Blau>"
- play sound "ARROW_HIT" to player with volume 5000 and pitch 50
- stop
- else:
- if arg-1 is "Blau":
- set {spawn.blau} to location
- send "§8» &6MlgRush §8┃ &7Der Spawn für &9Blau &7wurde gesetzt&8."
- play sound "CHEST_CLOSE" to player with volume 5000 and pitch 50
- stop
- if arg-1 is "Rot":
- set {spawn.rot} to location
- send "§8» &6MlgRush §8┃ &7Der Spawn für &cRot &7wurde gesetzt&8."
- play sound "CHEST_CLOSE" to player with volume 5000 and pitch 50
- stop
- Command /start [<text>]:
- permission: system.start
- permission message: §8» &6MlgRush §8┃ &cDazu hast du keine Berechtigung.
- trigger:
- if {state} is "LOBBY":
- if {online_listener} is 2:
- if {start_counter} is less than 10:
- send "§8» &6MlgRush §8┃ &cDas Spiel kann unter 10 Sekunden nicht gestartet werden!"
- play sound "NOTE_BASS" to player with volume 5000 and pitch 50
- stop
- else:
- set {start_counter} to 11
- send "§8» &6MlgRush §8┃ &7Du hast das &eSpiel &7gestartet&8."
- #JOIN MANAGER
- on join:
- set {online_listener} to number of all players
- set join message to "§8» &6MlgRush §8┃ &e%player% &7ist der &6Runde &7beigetreten&8."
- if {state} is "Lobby":
- set player's gamemode to survival
- teleport player to {lobby}
- clear player's inventory
- set slot 0 of player to bed named "&8» &6Teamauswahl &8● &8&o<&7Rechtsklick&8>"
- set slot 1 of player to nether star named "&8» &eStats &8● &8&o<&7Rechtsklick&8>"
- set slot 2 of player to 379 named "&8» &bEinstellungen &8● &8&o<&7Rechtsklick&8>"
- set slot 8 of player to magma cream named "&8» &eZurück zur Lobby &8● &8&o<&7Rechtsklick&8>"
- else:
- broadcast "§8» &6MlgRush §8┃ &7Das Spiel &6beginnt &7in &e30 Sekunden&8."
- play sound "ORB_PICKUP" to player with volume 5000 and pitch 50
- if {online_listener} is 1:
- send "§8» &6MlgRush §8┃ &7Es wird auf &e1 Spieler &7gewartet&8."
- while player is online:
- if {state} is "Lobby":
- wipe player's sidebar
- set name of sidebar of player to "&8⚔ &6&lMLGRush &8⚔"
- set score "&2" in sidebar of player to 13
- set score "&a✦ &8┃ &fServer&8:" in sidebar of player to 12
- set score " &8» &aMLGRush" in sidebar of player to 11
- set score "&5" in sidebar of player to 7
- set score "&c⚔ &8┃ &fStatus" in sidebar of player to 3
- set score " &8» &c%{state}%" in sidebar of player to 2
- set score "&9" in sidebar of player to 1
- wait 10 seconds
- if {state} is "INGAME":
- wipe player's sidebar
- set name of sidebar of player to "&8⚔ &f&lRushPvP&8.&f&lEU &8⚔"
- set score "&2" in sidebar of player to 13
- set score "&a✦ &8┃ &fServer&8:" in sidebar of player to 12
- set score " &8» &aMLGRush" in sidebar of player to 11
- set score "&8" in sidebar of player to 10
- set score "&9⚔ &8┃ &fStats" in sidebar of player to 9
- set score " &8» &9%{rounds::%{blau}%}%&8/&c%{rounds::%{rot}%}%" in sidebar of player to 8
- set score "&6" in sidebar of player to 7
- set score "&6✎ &8┃ &fSpieler&8:" in sidebar of player to 6
- set score " &8» &6%number of all players%&8/&e2" in sidebar of player to 5
- set score "&5" in sidebar of player to 4
- set score "&c➜ &8┃ &fStatus&8: " in sidebar of player to 3
- set score " &8» &c%{state}%" in sidebar of player to 2
- set score "&9" in sidebar of player to 1
- wait 8 seconds
- #GAME LISTENER
- on damage:
- if {state} is "INGAME":
- if damage was caused by fall:
- cancel event
- on any movement:
- if {state} is "INGAME":
- if player's y-coordinate < 0:
- kill player
- every 1 tick:
- if {state} is "INGAME":
- if {rounds::%{blau}%} is not set:
- set {rounds::%{blau}%} to 0
- if {rounds::%{rot}%} is not set:
- set {rounds::%{rot}%} to 0
- loop all players:
- set loop-player's action bar to "&8» &9%{blau}% &8● &9%{rounds::%{blau}%}% &8┃ &c%{rot}% &8● &c%{rounds::%{rot}%}% &8«"
- on break:
- if {state} is "INGAME":
- if player's gamemode is not creative:
- if event-block is not sandstone:
- cancel event
- if event-block is bed:
- if block below event-block is blue stained clay:
- if {blau} is not player:
- teleport {rot} to {spawn.rot}
- teleport {blau} to {spawn.blau}
- add 1 to {rounds::%{rot}%}
- loop all players:
- launch firework at loop-player timed 0 coloured red
- clear loop-player's inventory
- wait 1 tick
- clear loop-player's inventory
- wait 3 ticks
- set slot 0 of loop-player to stick of knockback 1 named "&6Stick"
- set slot 1 of loop-player to iron pickaxe named "&6Spitzhake"
- set slot 2 of loop-player to 32 sandstone named "&6Blöcke"
- heal loop-player
- loop blocks in radius 50 around event-block:
- if loop-block is a sandstone:
- set loop-block to air
- if {rounds::%{rot}%} is more than 9:
- set {state} to "LOBBY"
- send all players title "&8● &6MLGRush &8●" with subtitle "&7Der Spieler &c%{rot}% &7hat gewonnen&8!"
- teleport {blau} to {lobby}
- teleport {rot} to {lobby}
- loop all players:
- launch firework at loop-player timed 0 coloured blue
- wait 10 seconds
- loop all players:
- clear loop-player's inventory
- kick loop-player due to "§8» &6MlgRush §8┃ &7Der &6Server &7wurde nun &cgeschlossen&8."
- wait 1 second
- make console execute command "stop"
- else:
- send "§8» &6MlgRush §8┃ &cDu darfst dein Bett nicht zerstören."
- play "NOTE_BASS" to player
- if block below event-block is red stained clay:
- if {rot} is not player:
- teleport {rot} to {spawn.rot}
- teleport {blau} to {spawn.blau}
- add 1 to {rounds::%{blau}%}
- loop all players:
- launch firework at loop-player timed 0 coloured blue
- clear loop-player's inventory
- wait 1 tick
- set slot 0 of loop-player to stick of knockback 1 named "&6Stick"
- set slot 1 of loop-player to iron pickaxe named "&6Spitzhake"
- set slot 2 of loop-player to 32 sandstone named "&6Blöcke"
- heal loop-player
- loop blocks in radius 50 around event-block:
- if loop-block is a sandstone:
- set loop-block to air
- if {rounds::%{blau}%} is more than 9:
- set {state} to "LOBBY"
- send all players title "&8● &6MLGRush &8●" with subtitle "&7Der Spieler &9%{blau}% &7hat gewonnen&8!"
- teleport {blau} to {lobby}
- teleport {rot} to {lobby}
- loop all players:
- clear loop-player's inventory
- launch firework at loop-player timed 0 coloured blue
- wait 10 seconds
- loop all players:
- kick loop-player due to "§8» &6MlgRush §8┃ &7Der &6Server &7wurde nun &cgeschlossen&8."
- wait 1 second
- make console execute command "stop"
- else:
- send "§8» &6MlgRush §8┃ &cDu darfst dein Bett nicht zerstören."
- play "NOTE_BASS" to player
- on build:
- if {state} is "INGAME":
- if event-block is not sandstone:
- cancel event
- on death:
- set death message to ""
- if victim is a player:
- if {state} is "INGAME":
- clear victim's inventory
- heal victim
- if {rot} is "%victim%":
- teleport victim to {spawn.rot}
- if {blau} is "%victim%":
- teleport victim to {spawn.blau}
- wait 1 tick
- clear victim's inventory
- wait 3 ticks
- set slot 0 of victim to stick of knockback 1 named "&6Stick"
- set slot 1 of victim to iron pickaxe named "&6Spitzhake"
- set slot 2 of victim to 32 sandstone named "&6Blöcke"
- #LOBBY QUIT MANAGER
- on quit:
- set quit message to "§8» &6MlgRush §8┃ &c« &e%player% &7hat die &6Runde &7verlassen&8."
- if {state} is "INGAME":
- if "%player%" is {blau}:
- set {state} to "LOBBY"
- send all players title "&8● &6MLGRush &8●" with subtitle "&7Der Spieler &c%{rot}% &7hat gewonnen&8!"
- teleport {rot} to {lobby}
- loop all players:
- launch firework at loop-player timed 0 coloured blue
- wait 10 seconds
- loop all players:
- kick loop-player due to "§8» &6MlgRush §8┃ &7Der &6Server &7wurde nun &cgeschlossen&8."
- if "%player%" is {rot}:
- set {state} to "LOBBY"
- send all players title "&8● &6MLGRush &8●" with subtitle "&7Der Spieler &9%{blau}% &7hat gewonnen&8!"
- teleport {blau} to {lobby}
- loop all players:
- launch firework at loop-player timed 0 coloured blue
- wait 10 seconds
- loop all players:
- kick loop-player due to "§8» &6MlgRush §8┃ &7Der &6Server &7wurde nun &cgeschlossen&8."
- #LOBBY
- on rightclick:
- if held item of player is a nether star named "&8» &eStats &8● &8&o<&7Rechtsklick&8>":
- if {dealy::%player%} was less than 3 seconds:
- send player title "&8● &6MLGRush &8●" with subtitle "&cWarte bitte noch einen Moment."
- play sound "ITEM_BREAK" to player with volume 5000 and pitch 50
- stop
- set {dealy::%player%} to now
- make player execute command "stats"
- on spawn:
- if event-entity is not a player:
- kill event-entity
- on drop:
- cancel event
- on pickup:
- if player's gamemode is not creative:
- cancel event
- on inventory click:
- if player's gamemode is not creative:
- if {state} is "LOBBY":
- cancel event
- on damage:
- if {state} is "LOBBY":
- cancel event
- on any movement:
- if {state} is "LOBBY":
- if player's y-coordinate < 0:
- teleport player to {lobby}
- on break:
- if player's gamemode is not creative:
- if {state} is "LOBBY":
- cancel event
- on build:
- if player's gamemode is not creative:
- if {state} is "LOBBY":
- cancel event
- on weather change:
- set weather to sun
- #LOBBY LOOP LISTENER
- every 1 second:
- if {state} is "Lobby":
- set {online_listener} to number of all players
- if {online_listener} is 1:
- set {start_counter} to 30
- loop all players:
- set the loop-player's level to 30
- if {online_listener} is 2:
- remove 1 from {start_counter}
- loop all players:
- set the loop-player's level to {start_counter}
- if {start_counter} is 15:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &e15 Sekunden&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &e15 Sekunden&8."
- if {start_counter} is 10:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &e10 Sekunden&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &e10 Sekunden&8."
- if {start_counter} is 5:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &e5 Sekunden&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &e5 Sekunden&8."
- if {start_counter} is 4:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &e4 Sekunden&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &e4 Sekunden&8."
- if {start_counter} is 3:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &e3 Sekunden&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &e3 Sekunden&8."
- if {start_counter} is 2:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &e2 Sekunden&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &e2 Sekunden&8."
- if {start_counter} is 1:
- play sound "ORB_PICKUP" to loop-player with volume 5000 and pitch 50
- send "§8» &6MlgRush §8┃ &7Das Spiel beginnt in &eeiner Sekunde&8." to loop-player
- send loop-player title "&8● &6MLGRush &8●" with subtitle "&7Das Spiel beginnt in &eeiner Sekunde&8."
- if {start_counter} is 0:
- make console execute command "/serverhide true"
- clear loop-player's inventory
- wait 1 tick
- clear loop-player's inventory
- wait 1 tick
- clear loop-player's inventory
- set slot 0 of loop-player to stick of knockback 1 named "&6Stick"
- set slot 1 of loop-player to iron pickaxe named "&6Spitzhake"
- set slot 2 of loop-player to 32 sandstone named "&6Blöcke"
- if {rot} is not set:
- set {rot} to loop-player
- send "§8» &6MlgRush §8┃ &7Du bist im Team &cRot&8." to loop-player
- teleport loop-player to {spawn.rot}
- launch firework at loop-player timed 0 coloured red
- if {blau} is not set:
- if {rot} is not loop-player:
- set {blau} to loop-player
- send "§8» &6MlgRush §8┃ &7Du bist im Team &9Blau&8." to loop-player
- teleport loop-player to {spawn.blau}
- launch firework at loop-player timed 0 coloured blue
- play sound "NOTE_PLING" to loop-player with volume 5000 and pitch 50
- set {state} to "INGAME"
- #GAMEMANAGER
- on hunger meter change:
- set player's food level to 20
- every 1 minute:
- make console execute command "time set 0"
- #MOTD MANAGER
- on load:
- set {map::%server%} to "Tree"
- on server list ping:
- set motd to "%{map::%server%}%"
Add Comment
Please, Sign In to add comment