SHARE
TWEET

Untitled

a guest Nov 15th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         if {VaruX.MLGRUSH.State.InGame.%player%} is set:
  2.             if file "plugins/MLGRush/Games/%player%.yml" exists:
  3.                 set {_Map} to value "Map" get of "plugins/MLGRush/Games/%player%.yml"
  4.                 set {_Player1} to value "Spieler1" get of "plugins/MLGRush/Games/%player%.yml"
  5.                 set {_Player1} to {_Player1} parsed as a player
  6.                 set {_Player2} to value "Spieler2" get of "plugins/MLGRush/Games/%player%.yml"
  7.                 set {_Player2} to {_Player2} parsed as a player
  8.             else:
  9.                 set {_Map} to value "Map" get of "plugins/MLGRush/Games/%{VaruX.MLGRUSH.GAME.PLAYER.%player%}%.yml"
  10.                 set {_Player1} to value "Spieler1" get of "plugins/MLGRush/Games/%{VaruX.MLGRUSH.GAME.PLAYER.%player%}%.yml"
  11.                 set {_Player1} to {_Player1} parsed as a player
  12.                 set {_Player2} to value "Spieler2" get of "plugins/MLGRush/Games/%{VaruX.MLGRUSH.GAME.PLAYER.%player%}%.yml"
  13.                 set {_Player2} to {_Player2} parsed as a player
  14.             invoke "RemoveBlocks" from {_Player1}
  15.             invoke "RemoveBlocks" from {_Player2}
  16.             if {VaruX.MLGRUSH.GAME.STATS.%{_Player1}%} > {VaruX.MLGRUSH.GAME.STATS.%{_Player2}%}:
  17.                 set {_Winner} to {_Player1}
  18.             if {VaruX.MLGRUSH.GAME.STATS.%{_Player1}%} < {VaruX.MLGRUSH.GAME.STATS.%{_Player2}%}:
  19.                 set {_Winner} to {_Player2}
  20.             if {VaruX.MLGRUSH.GAME.STATS.%{_Player1}%} = {VaruX.MLGRUSH.GAME.STATS.%{_Player2}%}:
  21.                 set {_Winner} to "Keiner"
  22.             delete file "plugins/MLGRush/Games/%{_Player1}%.yml"
  23.             delete file "plugins/MLGRush/Games/%{_Player2}%.yml"
  24.             delete {VaruX.MLGRUSH.GAME.STATS.%{_Player1}%}
  25.             delete {VaruX.MLGRUSH.GAME.STATS.%{_Player2}%}
  26.             send "{@P} &7Das Spiel ist vorbei!" to {_Player1}
  27.             send "{@P} &7Das Spiel ist vorbei!" to {_Player2}
  28.             send "{@P} &7Gewinner&8: &6%{_Winner}%" to {_Player1}
  29.             send "{@P} &7Gewinner&8: &6%{_Winner}%" to {_Player2}
  30.             delete {VaruX.MLGRUSH.MAPS.STATE.INFO::%{_Map}%}
  31.             delete {VaruX.MLGRUSH.State.InGame.%{_Player1}%}
  32.             delete {VaruX.MLGRUSH.State.InGame.%{_Player2}%}
  33.             clear {_Player1}'s inventory
  34.             clear {_Player2}'s inventory
  35.             set slot 0 of {_Player1} to golden sword named "&3•&b● &eChallenger"
  36.             set slot 4 of {_Player1} to redstone comparator item named "&3•&b● &6Einstellungen"
  37.             set slot 8 of {_Player1} to red dye named "&3•&b● &cLobby"
  38.             set slot 0 of {_Player2} to golden sword named "&3•&b● &eChallenger"
  39.             set slot 4 of {_Player2} to redstone comparator item named "&3•&b● &6Einstellungen"
  40.             set slot 8 of {_Player2} to red dye named "&3•&b● &cLobby"
  41.             teleport {_Player1} to {VaruX.MLGRUSH.Warp.Spawn}
  42.             teleport {_Player2} to {VaruX.MLGRUSH.Warp.Spawn}
  43.             stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top