parent
							
								
									2dcd9ec74a
								
							
						
					
					
						commit
						695686873b
					
				| 
						 | 
					@ -55,8 +55,9 @@ command /minigame_skybattle_start:
 | 
				
			||||||
    executable by: the console and players
 | 
					    executable by: the console and players
 | 
				
			||||||
    permission: skript.op
 | 
					    permission: skript.op
 | 
				
			||||||
    trigger:
 | 
					    trigger:
 | 
				
			||||||
        #execute console command "/gamerule doImmediateRespawn true"
 | 
					        execute console command "/gamerule doImmediateRespawn true"
 | 
				
			||||||
        set {skybattle::time} to 120
 | 
					        # časomíra podle které se nastaví zbytek skriptu
 | 
				
			||||||
 | 
					        set {skybattle::time} to 240
 | 
				
			||||||
        clear {skybattle::gaming_players::*}
 | 
					        clear {skybattle::gaming_players::*}
 | 
				
			||||||
        loop 10 times:
 | 
					        loop 10 times:
 | 
				
			||||||
            loop entries of team "IDList%loop-number%":
 | 
					            loop entries of team "IDList%loop-number%":
 | 
				
			||||||
| 
						 | 
					@ -202,14 +203,14 @@ command /minigame_skybattle_start:
 | 
				
			||||||
                wait 1 second
 | 
					                wait 1 second
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if {skybattle::game_status} is "end":
 | 
					            if {skybattle::game_status} is "end":
 | 
				
			||||||
 | 
					                send title "&4Konec hry" to all players
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                make console execute command "/function sky:battle"
 | 
					                make console execute command "/function sky:battle"
 | 
				
			||||||
 | 
					                set {skybattle::game_on} to "False"
 | 
				
			||||||
 | 
					                wait 3 seconds
 | 
				
			||||||
 | 
					                teleport all players to {skybattle::lobbylocation}
 | 
				
			||||||
 | 
					                set {skybattle::gaming_players::*}'s gamemode to adventure
 | 
				
			||||||
 | 
					                wait 5 seconds
 | 
				
			||||||
 | 
					                execute console command "/stopscript_skybattle"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function setbordercenter():
 | 
					function setbordercenter():
 | 
				
			||||||
        set {_x} to {skybattle::arena%{skybattle::current_arena}%::border}'s x coord
 | 
					        set {_x} to {skybattle::arena%{skybattle::current_arena}%::border}'s x coord
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue