Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] Jak się nazywa ten plugin do minecrafta 1.6.4?


Gość MrPingwin

Rekomendowane odpowiedzi

Opublikowano

Jak wiemy, jest taki plugin, którego głównie się używa na serwerach do parkourów, chodzi mi o jego nazwę, bo chciałbym zrobić tak, że jak jakiś gracz spadnie do wody to teleportuje go na początek parkoura, jeśli wiecie jak ten plugin się nazywa, powiedzcie, a ja na yt znajdę poradnik na jego temat.

Opublikowano

Nie polecam pluginu. Zastąp go skryptem UniqueParkour by dzikoysk. Łatwa konfiguracja itp. Gotowy kod:

 

 

#---------------------#
# Script by Dzikoysk  #
# Name: UniqueParkour #
# Version: 1.0        #
# Skript: Beta 10     #
#---------------------#

#================================#
#    Licencja | UniqueParkour    #
#         by Dzikoysk            #
#--------------------------------#
# ~ Nie zezwalam na:             #
# - Zarabianie na skrypcie       #
# - Przerabianie/modyfikowanie   #
# zmienianie tresci dla grona    #
# publicznego                    #
# - Wykorzystywanie kodu skryptu #
# w swoich skryptach (np. kod na #
# licnik w exp, timmer)          #
# - Udostepnianiu skryptu innym* #
# - Udostepniania skryptu w      #
# paczkach plikow serwerowch itp #
# - Usuwanie tresci              #
# zawierajacych autora           #
# - Podszywaniu sie pod autora   #
# ~ Zezwalam na:                 #
# - Modyfikowanie wiadomosci     #
# skryptu na wlasne potrzeby     #
# - Dopisywanie fragmentow na    #
# wlasne potrzeby                #
# * - Tylko za zgoda autora      #
#--------------------------------#
# Mylnie odczytana licencja nie  #
# zwalnia z przestrzegania jej   #
#================================#

#---------------------------------------------------------------#
#                                                               #
#                                                               #
#                                                               #
#                             Config                            #
#                                                               #
#                                                               #
#                                                               #
#---------------------------------------------------------------#
options:

#----------------------#
#    General Config    #
#----------------------#

	# Tag wyswietlany przed wiadomosciami skryptu:
	tag: &6[Parkour]
	
	# Tag na tabliczkach:
	sign.tag: &l[Parkour]
	
	# Nazwa pliku sk:
	sk: UniqueParkour
	
	# Jezyk komend (pl/eng):
	lang: pl
	
	# Color function:
	c1: &a
	c2: &6
	error: &c

#----------------------#
#    Timmer Config     #
#----------------------#

	xpTimmer: true

#----------------------#
# Teleportation Config #
#----------------------#
	
	# Czy po przejsciu/wyjsciu z parkoura ma teleportowac do lobby(true), czy na poprzednia pozycje gracza(false):
	tpLobby: true
	
	# Czy wylaczyc cooldown przed teleportacja:
	tpCooldown: true

	# Czy trzeba czekać przed ponownym wejściem na parkour
	tpJoinCooldown: false

	# Ile czasu trzeba czekać
	tpJoinTime: 1 hour

	
	
	
#---------------------------------------------------------------#
#                                                               #
#                                                               #
#                                                               #
#                             Skrypt                            #
#                              Code                             #
#                                                               #
#                                                               #
#                                                               #
#---------------------------------------------------------------#

# Variables
variables:
	{parkour.player.%player%.lvl} = 0
	{parkour.player.%player%.timmer-mili} = 0
	{parkour.player.%player%.timmer-sec} = 0
	{parkour.player.%player%.start} = false
	{monety.%player%} = 0
	
# Manage options
options:
	version: 1.0
	permissions: &cNie masz uprawnien do tej komendy	

# Basic command	
command /parkour [<text>] [<text>] [<text>]:
	aliases: pk, pa, park
	trigger:
		if arg 1 is "list" or "lista":
			if {parkour.list-number} is 0:
				send "{@error}Nie ma zadnych Parkour'ow!"
				stop
			if {parkour.list-number} is greater than 0:
				send "{@tag} {@c1}Parkour {@c2}({@c1}%{parkour.list-number}%{@c2}){@c1}: {@c2}%{parkour.list.list::*}%"
				stop
		if arg 1 is "create" or "stworz":
			if player has permissions "parkour.create" or "parkour.admin":
				if arg 2 is set:
					if {parkour.%arg 2%.parkour} is true:
						send "{@tag} {@error}Istnieje juz Parkour o takiej nazwie!"
						stop
					else:
						set {parkour.parkour.%arg 2%.parkour} to true
						set {parkour.parkour.%arg 2%.name} to "%arg 2%"
						add "%arg 2%" to {parkour.list.list::*}
						add 1 to {parkour.list-number}
						send "{@tag} {@c1}Stworzono parkour o nazwie {@c2}%arg 2%{@c1}!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe parkoura"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "delete" or "usun":
			if player has permissions "parkour.delete" or "parkour.admin":
				if arg 2 is set:
					if {parkour.parkour.%arg 2%.parkour} is true:
						set {parkour.parkour.%arg 2%.parkour} to false
						set {parkour.parkour.%arg 2%.endset} to false
						remove {parkour.parkour.%arg 2%.name} from {parkour.list.list::*}
						remove 1 from {parkour.list-number}
						clear {parkour.parkour.%arg 2%.spawn}
						clear {parkour.parkour.%arg 2%.name}
						send "{@tag} {@c1}Usunieto parkour {@c2}%arg 2%"
						stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe Parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "setlobby" or "ustawlobby":
			if player has permissions "parkour.setlobby" or "parkour.admin":
				set {parkour.lobby} to location of player
				send "{@tag} {@c1}Ustawiono lobby!"
				stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "setspawn" or "ustawspawn":
			if player has permissions "parkour.setspawn":
				if arg 2 is set:
					if {parkour.parkour.%arg 2%.parkour} is true:
						set {parkour.parkour.%arg 2%.spawn} to location of player
						set {parkour.parkour.%arg 2%.endset} to true
						send "{@tag} {@c1}Ustawiono spawn dla {@c2}%arg 2%{@c1}!"
						stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "setprize":
			if player has permissions "parkour.setprize":
				if arg 2 is set:
					if arg 3 is set:
						if {parkour.parkour.%arg 2%.parkour} is true:
							set {parkour.parkour.%arg 2%.prize} to arg 3
							send "&aUstawiono nagrode!"
							stop
						else:
							send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
							stop
					else:
						send "{@tag} {@error}Podaj ilosc monet!"
				else:
					send "{@tag} {@error}Podaj nazwe parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "join" or "dolacz":
			if player has permissions "parkour.join" or "parkour.default":
				if arg 2 is set:
					if {parkour.parkour.%arg 2%.parkour} is true:
						if {parkour.parkour.%arg 2%.endset} is true:
							if {parkour.config.tpJoinCooldown} is true:
								if difference between {parkour.player.%name of player%.lu.%arg 2%} and now is less than {@tpJoinTime}:
									send "{@tag} {@error} Musisz odczekac {@c2}%difference between {parkour.player.%name of player%.lu.%arg 2%} {@error} and now% aby ponownie skorzystac z tego parkouru"
									stop
							if {parkour.config.tpCooldown} is true:
								set {parkour.player.%name of player%.back} to location of player
								wait 1 tick
								set {parkour.player.%name of player%.lvl} to player's level
								loop all items in the player's inventory:
									add the loop-item to {inventory.%name of player%::*}
									remove loop-item from player's inventory
								set the player's level to 0
								set level progress of the player to 0.0
								teleport player to {parkour.parkour.%arg 2%.spawn}
								set {parkour.player.%name of player%.parkour} to true
								set {parkour.player.%name of player%.parkour.name} to "%arg 2%"
								set {parkour.player.%name of player%.start} to false
								send "{@tag} {@c1}Witaj na parkourze!"
								set {parkour.player.%name of player%.lu.%arg 2%} to now
								stop
							else:
								send "&7Czekaj 5 sekund"
								apply slowness 2 to player for 10 seconds
								apply blindness 1 to player for 10 seconds
								wait 5 seconds
								set {parkour.player.%name of player%.lvl} to player's level
								set {parkour.player.%name of player%.back} to location of player
								set {parkour.player.%name of player%.parkour} to true
								set {parkour.player.%name of player%.parkour.name} to "%arg 2%"
								loop all items in the player's inventory:
									add the loop-item to {inventory.%name of player%::*}
									remove loop-item from player's inventory
								set the player's level to 0
								set level progress of the player to 0.0
								teleport player to {parkour.parkour.%arg 2%.spawn}
								set {parkour.player.%name of player%.start} to false
								remove blindness from player
								remove slowness from player
								send "{@tag} {@c1}Witaj na parkourze!"
								stop
						else:
							send "{@tag} {@error}Nie mozna dolaczyc, poniewaz parkour nie zostal jeszcze skonfigurowany!"
							stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "lobby":
			if player has permissions "parkour.lobby" or "parkour.default":
				if {parkour.config.tpCooldown} is true:
					send "&6Teleportacja..."
					teleport player to {parkour.lobby}
					stop
				else:
					send "&7Czekaj 5 sekund"
					apply slowness 2 to player for 10 seconds
					apply blindness 1 to player for 10 seconds
					wait 5 seconds
					send "&6Teleportacja..."
					teleport player to {parkour.lobby}
					remove blindness from player
					remove slowness from player
					stop
		if arg 1 is "leave" or "wyjdz" or "opusc":
			if player has permissions "parkour.leave" or "parkour.default":
				if {parkour.player.%name of player%.parkour} is true:
					set {parkour.player.%name of player%.parkour} to false
					set {parkour.player.%name of player%.timmer} to false
					set {parkour.player.%name of player%.start} to false
					if {parkour.config.tpLobby} is true:
						teleport player to {parkour.lobby}
					if {parkour.config.tpLobby} is false:
						teleport player to {parkour.player.%name of player%.back}
					clear {parkour.player.%name of player%.parkour.name}
					clear {parkour.player.%name of player%.back}
					set the player's level to 0
					set level progress of the player to 0.0
					set {parkour.player.%name of player%.timmer-sec} to 0
					set {parkour.player.%name of player%.timmer-mili} to 0
					set the player's level to {parkour.player.%name of player%.lvl}
					clear {parkour.player.%name of player%.lvl}
					loop {inventory.%name of player%::*}:
						add loop-value to the player
					clear {inventory.%name of player%::*}
					delete {inventory.%name of player%::*}
					send "{@tag} {@c1}Opuszczono parkour!"
					stop
				else:
					send "{@tag} {@error}Nie jestes na parkourze!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "broadcast":
			if {parkour.broadcast.%name of player%} is not set:
				set {parkour.broadcast.%name of player%} to true
				send "{@tag} &aWlaczono broadcast!"
				stop
			if {parkour.broadcast.%name of player%} is false:
				set {parkour.broadcast.%name of player%} to true
				send "{@tag} &aWlaczono broadcast!"
				stop
			if {parkour.broadcast.%name of player%} is true:
				set {parkour.broadcast.%name of player%} to false
				send "{@tag} &cWylaczono broadcast!"
				stop
		if arg 1 is "reload" or "przeladuj":
			if player has permissions "parkour.reload" or "parkour.przeladuj":
				make console execute command "sk reload Parkour"
				wait 1 tick
				set {parkour.config.tpCooldown} to {@tpCooldown}
				set {parkour.config.tpLobby} to {@tpLobby}
				set {parkour.config.xpTimmer} to {@xpTimmer}
				set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}
				wait 1 tick
				send "{@tag} &aPrzeladowano"
				stop
		if arg 1 is "info" or "author" or "autor":
			send "&8--------------------------------"
			send " &7Autor: &aDzikoysk"
			send " &7Nazwa: &aUniqueParkour"
			send "&7 &7&nStrona:&a &nwww.Dzikoysk.net"
			send "&8--------------------------------"
			stop
		if arg 1 is "help" or "pomoc":
			send "&6/parkour list &8– &aLista parkourów"
			send "&6/parkour join [name] &8– &aDolaczanie do parkoura"
			send "&6/parkour leave &8– &aWyjscie z parkoura"
			send "&6/parkour setlobby &8– &aUstawienie lobby"
			send "&6/parkour create [name] &8– &aStworzenie parkoura"
			send "&6/parkour setspawn [name] &8– &aUstawienie spawnu dla parkoura"
			send "&6/parkour delete [nazwa] &8– &aUsuniecie parkoura"
			send "&6/parkour author &8– &aNotka o autorze"
			send "&6/parkour reload &8– &aPrzeladowanie"
			stop
		if arg 1 is not set:
			send "&6/parkour list &8– &aLista parkourów"
			send "&6/parkour join [name] &8– &aDolaczanie do parkoura"
			send "&6/parkour leave &8– &aWyjscie z parkoura"
			send "&6/parkour setlobby &8– &aUstawienie lobby"
			send "&6/parkour create [name] &8– &aStworzenie parkoura"
			send "&6/parkour setspawn [name] &8– &aUstawienie spawnu dla parkoura"
			send "&6/parkour delete [nazwa] &8– &aUsuniecie parkoura"
			send "&6/parkour author &8– &aNotka o autorze"
			send "&6/parkour reload &8– &aPrzeladowanie"
			stop
		if arg 1 is not "list" or "broadcast" or "lista" or "create" or "stworz" or "delete" or "usun" or "ustawlobby" or "setlobby" or "setspawn" or "ustawspawn" or "lobby" or "join" or "dolacz" or "leave" or "wyjdz" or "opusc" or "reload" or "przeladuj" or "info" or "author" or "autor" or "":
			send "{@tag} {@error}Nie ma takiej komendy!"
			stop				
	
# Config load
on skript start:
	send "&8Unique Parkour wymaga wersji Skript Beta 10 ..." to the console
	wait 1 seconds
	send "&8Serwer pracuje na wersji: %skript version%" to the console
	send "" to the console
	send "&8--------------------------------------------------------------" to the console
	send "&8|                                                            |" to the console
	send "&8|                  Enable &9UniqueParkour                  &8|" to the console
	send "&8|                                                            |" to the console
	send "&8--------------------------------------------------------------" to the console
	send "" to the console
	send "&8Author: &eDzikoysk" to the console
	send "&8Version: &7{@version}" to the console
	send "" to the console
	set {parkour.config.tpCooldown} to {@tpCooldown}
	set {parkour.config.tpLobby} to {@tpLobby}
	set {parkour.config.xpTimmer} to {@xpTimmer}
	set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}

on skript load:
	set {parkour.config.tpCooldown} to {@tpCooldown}
	set {parkour.config.tpLobby} to {@tpLobby}
	set {parkour.config.xpTimmer} to {@xpTimmer}
	set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}

on command "parkour reload":
	send "{@tag} &aReload ..."
	wait 1 tick
	make console execute command "skirpt reload Parkour"
	wait 1 tick
	send "&aPrzeladowano!"
	
on command "pk reload":
	send "{@tag} &aReload ..."
	wait 1 tick
	make console execute command "skirpt reload Parkour"
	wait 1 tick
	send "&aPrzeladowano!"

# Author & Test Command
command /dzikoysktest:
	trigger:
		set {_dzikoysk} to "%name of player%"
		if {_dzikoysk} is "Dzikoysk":
			send "&cWitaj Dzikoysk! Ten serwer oparty jest o: &9UniqueParkour"
		send "&c* Dzikoysk say:"
		send "&8----------------------------"
		send "&8Serwerowa wersja Skript: %skript version%"
		send "&8Wymagana: Skript Beta 10"
		send "&8----------------------------"
		send "&8Wersja skryptu: {@version}"
		send "&8----------------------------"
		send "&8[Args] = None ="
		stop

# Walking:
# - Start
on walking on red wool:
	if {parkour.player.%name of player%.parkour} is true:
		if block 2 under player is stained clay:
			if {parkour.player.%name of player%.start} is false:
				set {parkour.player.%name of player%.start} to true
				if {parkour.config.xpTimmer} is true:
					set {parkour.player.%name of player%.timmer} to true
					send "{@c1}Start! Czas jest liczony!"
					stop
				else:
					send "{@c1}Start!"
					stop
					
# - Meta
on walking on double stone slab:
	if {parkour.player.%name of player%.parkour} is true:
		if block 2 under player is command block:
			if {parkour.player.%name of player%.start} is true:
				set {parkour.player.%name of player%.start} to false
				set {parkour.player.%name of player%.parkour} to false
				if {parkour.config.xpTimmer} is true:
					set {parkour.player.%name of player%.timmer} to false
					if {parkour.config.tpLobby} is true:
						teleport player to {parkour.lobby}
					if {parkour.config.tpLobby} is false:
						teleport player to {parkour.player.%name of player%.back}
						clear {parkour.player.%name of player%.back}
					loop {inventory.%name of player%::*}:
						give loop-value to player
					clear {inventory.%name of player%::*}
					clear {inventory.%name of player%::*}
					wait 1 tick
					delete {inventory.%name of player%::*}
					send "{@c1}Ukonczono parkour w czasie: {@c2}%{parkour.player.%name of player%.timmer-sec}%,%{parkour.player.%name of player%.timmer-mili}% {@c1}(s)"
					make console execute command "addmonety %player% %{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%"
					send "&aOtrzymano monety! [&6%{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%&a]" to player
					loop all players:
						if {parkour.broadcast.%loop-player%} is true:
							send "{@c1}Gracz {@c2}%name of player% {@c1}ukonczyl parkour {@c2}%{parkour.player.%name of player%.parkour.name}% {@c1}w czasie: {@c2}%{parkour.player.%name of player%.timmer-sec}%,%{parkour.player.%name of player%.timmer-mili}% {@c1}(s)" to loop-player
							exit loop
						else:
							exit loop
					set the player's level to 0
					set level progress of the player to 0.0
					set {parkour.player.%name of player%.timmer-sec} to 0
					set {parkour.player.%name of player%.timmer-mili} to 0
					clear {parkour.player.%name of player%.parkour.name}
					clear {parkour.player.%name of player%.back}
					stop
				else:
					loop {inventory.%name of player%::*}:
						give loop-value to player
					clear {inventory.%name of player%::*}
					wait 1 tick
					delete {inventory.%name of player%::*}
					send "{@c1}Ukonczono parkour!"
					make console execute command "addmonety %name of player% %{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%"
					send "&aOtrzymano monety! [&6%{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%&a]"
					stop 				

# Fall					
on walking on white wool or red wool or orange wool or brown wool or green wool or light green wool or purple wool or cyan wool or pink wool or gray wool or stone or grass or glass or water or lava or any wood or sand or dirt:
	if block 2 under player is command block:
		if {parkour.player.%name of player%.parkour} is true:
			teleport player to {parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.spawn}
			set {parkour.player.%name of player%.timmer} to false
			set {parkour.player.%name of player%.start} to false
			set the player's level to 0
			set level progress of the player to 0.0
			set {parkour.player.%name of player%.timmer-sec} to 0
			set {parkour.player.%name of player%.timmer-mili} to 0
			stop
				
# Timmer								
every 0.1 second:
	if {parkour.config.xpTimmer} is true:
		loop all players:
			if {parkour.player.%loop-player%.timmer} is true:
				add 1 to {parkour.player.%loop-player%.timmer-mili}
				add 0.2 to level progress of the loop-player
				if {parkour.player.%loop-player%.timmer-mili} is 10:
					set level progress of the loop-player to 0.0
					set {parkour.player.%loop-player%.timmer-mili} to 0
					add 1 to {parkour.player.%loop-player%.timmer-sec}
					set the loop-player's level to {parkour.player.%loop-player%.timmer-sec}
					add 10 to loop-player's hunger bar
					
# Signs:
# - Ustawienie
On sign change:
	if line 1 is "{@sign.tag}":
		if player has permissions "parkour.sign.create" or "parkour.sign.*" or "parkour.admin":
			if line 2 is not "Dolacz" or "Join" or "" or "Leave" or "Wyjdz" or "Opusc":
				send "{@tag} {@error}Wpisz odpowiednie polecenie w 2 linii!"
				cancel event
				stop
			if line 2 is "":
				if line 3 is "Leave" or "Wyjdz" or "Opusc":
					send "{@tag} {@c1}Ustawiono tabliczke do opuszczania parkoura"
					stop
				else if line 3 is set:
					if {parkour.parkour.%line 3%.parkour} is true:
						send "{@tag} {@c1}Ustawiono tabliczke dla parkoura {@c2}%line 3%{@c1}!"
						stop
					else:	
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						cancel event
						stop
				else:	
					send "{@tag} {@error}Zle uzupelniona 3 linia!"
					cancel event
					stop
			if line 2 is "Join" or "Dolacz":
				if line 3 is set:
					if {parkour.parkour.%line 3%.parkour} is true:
						send "{@tag} {@c1}Ustawiono tabliczke dla parkoura {@c2}%line 3%{@c1}!"
						stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						cancel event
						stop
				else:
					send "{@tag} {@error} Podaj nazwe parkoura w 3 linii!"
					stop

# - Rightcllick					
on rightclick on sign:
	if line 1 of clicked block is "{@sign.tag}":
		if line 2 of clicked block is "Join" or "Dolacz":
			if line 3 of clicked block is set:
				if player has permissions "parkour.sign.join" or "parkour.sign.*" or "parkour.admin" or "parkour.default":
					if {parkour.parkour.%line 3 of clicked block%.parkour} is true:
						if {parkour.parkour.%line 3 of clicked block%.endset} is true:
							if {parkour.config.tpJoinCooldown} is true:
								if difference between {parkour.player.%name of player%.lu.%line 3 of clicked block%} and now is less than {@tpJoinTime}:
									send "{@tag} {@error} Musisz odczekac {@c2}%difference between {parkour.player.%name of player%.lu.%line 3 of clicked block%} {@error} and now% aby ponownie skorzystac z tego parkouru"
									stop
							set {parkour.player.%name of player%.back} to location of player
							wait 1 tick
							set {parkour.player.%name of player%.lvl} to player's level
							loop all items in the player's inventory:
								add the loop-item to {inventory.%name of player%::*}
								remove loop-item from player's inventory
							set the player's level to 0
							set level progress of the player to 0.0
							teleport player to {parkour.parkour.%line 3 of clicked block%.spawn}
							set {parkour.player.%name of player%.parkour} to true
							set {parkour.player.%name of player%.parkour.name} to "%line 3 of clicked block%"
							set {parkour.player.%name of player%.start} to false
							send "{@tag} {@c1}Witaj na parkourze!"
							set {parkour.player.%name of player%.lu.%line 3 of clicked block%} to now
							stop
						else:
							send "{@tag} {@error}Nie mozna dolaczyc, poniewaz parkour nie zostal jeszcze skonfigurowany!"
							stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@permissions}"
					stop
			else:
				send "{@tag} {@error}Linia 3 nie ustawiona!"
				stop
		else if line 2 of clicked block is "Leave" or "Opusc" or "Wyjdz":
			if player has permissions "parkour.sign.leave" or "parkour.sign.*" or "parkour.admin" or "parkour.default":
				if {parkour.player.%name of player%.parkour} is true:
					set {parkour.player.%name of player%.parkour} to false
					set {parkour.player.%name of player%.timmer} to false
					set {parkour.player.%name of player%.start} to false
					if {parkour.config.tpLobby} is true:
						teleport player to {parkour.lobby}
					if {parkour.config.tpLobby} is false:
						teleport player to {parkour.player.%name of player%.back}
					clear {parkour.player.%name of player%.parkour.name}
					clear {parkour.player.%name of player%.back}
					set the player's level to 0
					set level progress of the player to 0.0
					set {parkour.player.%name of player%.timmer-sec} to 0
					set {parkour.player.%name of player%.timmer-mili} to 0
					set the player's level to {parkour.player.%name of player%.lvl}
					clear {parkour.player.%name of player%.lvl}
					clear {parkour.player.%name of player%.lvl}
					loop {inventory.%name of player%::*}:
						give loop-value to player
					clear {inventory.%name of player%::*}
					clear {inventory.%name of player%::*}
					delete {inventory.%name of player%::*}
					send "{@tag} {@c1}Opuszczono parkour!"
					stop
				else:
					send "{@tag} {@error}Nie jestes na parkourze!"
					stop
			else:
				send "{@permissions}"
				stop
		else if line 2 of clicked block is "":
			if line 3 of clicked block is "Leave" or "Opusc" or "Wyjdz":
				if player has permissions "parkour.sign.leave" or "parkour.sign.*" or "parkour.admin" or "parkour.default":
					if {parkour.player.%name of player%.parkour} is true:
						set {parkour.player.%name of player%.parkour} to false
						set {parkour.player.%name of player%.timmer} to false
						set {parkour.player.%name of player%.start} to false
						if {parkour.config.tpLobby} is true:
							teleport player to {parkour.lobby}
						if {parkour.config.tpLobby} is false:
							teleport player to {parkour.player.%name of player%.back}
						clear {parkour.player.%name of player%.parkour.name}
						clear {parkour.player.%name of player%.back}
						set the player's level to 0
						set level progress of the player to 0.0
						set {parkour.player.%name of player%.timmer-sec} to 0
						set {parkour.player.%name of player%.timmer-mili} to 0
						set the player's level to {parkour.player.%name of player%.lvl}
						clear {parkour.player.%name of player%.lvl}
						clear {parkour.player.%name of player%.lvl}
						loop {inventory.%name of player%::*}:
							give loop-value to player
						clear {inventory.%name of player%::*}
						clear {inventory.%name of player%::*}
						delete {inventory.%name of player%::*}
						send "{@tag} {@c1}Opuszczono parkour!"
						stop
					else:
						send "{@tag} {@error}Nie jestes na parkourze!"
						stop
				else:
					send "{@permissions}"
					stop
			else:
				send "{@tag} {@error}Linia 3 nie ustawiona!"
				stop

on command:
	if player exists:
		if {parkour.player.%name of player%.parkour} is true:
			if command is "/pk leave" or "/parkour leave" or "/parkour opusc" or "/pk opusc" or "/parkour wyjdz" or "/pk wyjdz" or "/parkour help" or "/pk help" or "/parkour pomoc" or "/pk pomoc":
				stop
			else:
				send "&cNie mozesz uzywac komend na parkourze!"
				cancel event
				
On hunger meter change:
	if {parkour.player.%name of player%.parkour} is true:
		cancel event
				
on damage:
	if {parkour.player.%name of victim%.start} is true:
		cancel event
		stop
	else if {parkour.player.%name of victim%.parkour} is true:
		cancel event
		stop
	

command /monety [<text>]:
	trigger:
		if arg 1 is not set:
			send "&aMonety: &6%{monety.%player%}%"
			stop
		if arg 1 is set:
			send "&aMonety gracza &6%arg 1%&a: &6%{monety.%arg 1%}%"
			stop
		 

 

 

1394047278-U990178.png

Opublikowano

Nie polecam pluginu. Zastąp go skryptem UniqueParkour by dzikoysk. Łatwa konfiguracja itp. Gotowy kod:

 

 

# ~ Nie zezwalam na:             #
# - Zarabianie na skrypcie       #
# - Przerabianie/modyfikowanie   #
# zmienianie tresci dla grona    #
# publicznego                    #
# - Wykorzystywanie kodu skryptu #
# w swoich skryptach (np. kod na #
# licnik w exp, timmer)          #
# - Udostepnianiu skryptu innym* #
# - Udostepniania skryptu w      #
# paczkach plikow serwerowch itp #
# - Usuwanie tresci              #
# zawierajacych autora           #
# - Podszywaniu sie pod autora   #
# ~ Zezwalam na:                 #
# - Modyfikowanie wiadomosci     #
# skryptu na wlasne potrzeby     #
# - Dopisywanie fragmentow na    #
# wlasne potrzeby                #
# * - Tylko za zgoda autora      #
#--------------------------------#
# Mylnie odczytana licencja nie  #
# zwalnia z przestrzegania jej   #
#================================#

#---------------------------------------------------------------#
#                                                               #
#                                                               #
#                                                               #
#                             Config                            #
#                                                               #
#                                                               #
#                                                               #
#---------------------------------------------------------------#
options:

#----------------------#
#    General Config    #
#----------------------#

	# Tag wyswietlany przed wiadomosciami skryptu:
	tag: &6[Parkour]
	
	# Tag na tabliczkach:
	sign.tag: &l[Parkour]
	
	# Nazwa pliku sk:
	sk: UniqueParkour
	
	# Jezyk komend (pl/eng):
	lang: pl
	
	# Color function:
	c1: &a
	c2: &6
	error: &c

#----------------------#
#    Timmer Config     #
#----------------------#

	xpTimmer: true

#----------------------#
# Teleportation Config #
#----------------------#
	
	# Czy po przejsciu/wyjsciu z parkoura ma teleportowac do lobby(true), czy na poprzednia pozycje gracza(false):
	tpLobby: true
	
	# Czy wylaczyc cooldown przed teleportacja:
	tpCooldown: true

	# Czy trzeba czekać przed ponownym wejściem na parkour
	tpJoinCooldown: false

	# Ile czasu trzeba czekać
	tpJoinTime: 1 hour

	
	
	
#---------------------------------------------------------------#
#                                                               #
#                                                               #
#                                                               #
#                             Skrypt                            #
#                              Code                             #
#                                                               #
#                                                               #
#                                                               #
#---------------------------------------------------------------#

# Variables
variables:
	{parkour.player.%player%.lvl} = 0
	{parkour.player.%player%.timmer-mili} = 0
	{parkour.player.%player%.timmer-sec} = 0
	{parkour.player.%player%.start} = false
	{monety.%player%} = 0
	
# Manage options
options:
	version: 1.0
	permissions: &cNie masz uprawnien do tej komendy	

# Basic command	
command /parkour [<text>] [<text>] [<text>]:
	aliases: pk, pa, park
	trigger:
		if arg 1 is "list" or "lista":
			if {parkour.list-number} is 0:
				send "{@error}Nie ma zadnych Parkour'ow!"
				stop
			if {parkour.list-number} is greater than 0:
				send "{@tag} {@c1}Parkour {@c2}({@c1}%{parkour.list-number}%{@c2}){@c1}: {@c2}%{parkour.list.list::*}%"
				stop
		if arg 1 is "create" or "stworz":
			if player has permissions "parkour.create" or "parkour.admin":
				if arg 2 is set:
					if {parkour.%arg 2%.parkour} is true:
						send "{@tag} {@error}Istnieje juz Parkour o takiej nazwie!"
						stop
					else:
						set {parkour.parkour.%arg 2%.parkour} to true
						set {parkour.parkour.%arg 2%.name} to "%arg 2%"
						add "%arg 2%" to {parkour.list.list::*}
						add 1 to {parkour.list-number}
						send "{@tag} {@c1}Stworzono parkour o nazwie {@c2}%arg 2%{@c1}!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe parkoura"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "delete" or "usun":
			if player has permissions "parkour.delete" or "parkour.admin":
				if arg 2 is set:
					if {parkour.parkour.%arg 2%.parkour} is true:
						set {parkour.parkour.%arg 2%.parkour} to false
						set {parkour.parkour.%arg 2%.endset} to false
						remove {parkour.parkour.%arg 2%.name} from {parkour.list.list::*}
						remove 1 from {parkour.list-number}
						clear {parkour.parkour.%arg 2%.spawn}
						clear {parkour.parkour.%arg 2%.name}
						send "{@tag} {@c1}Usunieto parkour {@c2}%arg 2%"
						stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe Parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "setlobby" or "ustawlobby":
			if player has permissions "parkour.setlobby" or "parkour.admin":
				set {parkour.lobby} to location of player
				send "{@tag} {@c1}Ustawiono lobby!"
				stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "setspawn" or "ustawspawn":
			if player has permissions "parkour.setspawn":
				if arg 2 is set:
					if {parkour.parkour.%arg 2%.parkour} is true:
						set {parkour.parkour.%arg 2%.spawn} to location of player
						set {parkour.parkour.%arg 2%.endset} to true
						send "{@tag} {@c1}Ustawiono spawn dla {@c2}%arg 2%{@c1}!"
						stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "setprize":
			if player has permissions "parkour.setprize":
				if arg 2 is set:
					if arg 3 is set:
						if {parkour.parkour.%arg 2%.parkour} is true:
							set {parkour.parkour.%arg 2%.prize} to arg 3
							send "&aUstawiono nagrode!"
							stop
						else:
							send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
							stop
					else:
						send "{@tag} {@error}Podaj ilosc monet!"
				else:
					send "{@tag} {@error}Podaj nazwe parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "join" or "dolacz":
			if player has permissions "parkour.join" or "parkour.default":
				if arg 2 is set:
					if {parkour.parkour.%arg 2%.parkour} is true:
						if {parkour.parkour.%arg 2%.endset} is true:
							if {parkour.config.tpJoinCooldown} is true:
								if difference between {parkour.player.%name of player%.lu.%arg 2%} and now is less than {@tpJoinTime}:
									send "{@tag} {@error} Musisz odczekac {@c2}%difference between {parkour.player.%name of player%.lu.%arg 2%} {@error} and now% aby ponownie skorzystac z tego parkouru"
									stop
							if {parkour.config.tpCooldown} is true:
								set {parkour.player.%name of player%.back} to location of player
								wait 1 tick
								set {parkour.player.%name of player%.lvl} to player's level
								loop all items in the player's inventory:
									add the loop-item to {inventory.%name of player%::*}
									remove loop-item from player's inventory
								set the player's level to 0
								set level progress of the player to 0.0
								teleport player to {parkour.parkour.%arg 2%.spawn}
								set {parkour.player.%name of player%.parkour} to true
								set {parkour.player.%name of player%.parkour.name} to "%arg 2%"
								set {parkour.player.%name of player%.start} to false
								send "{@tag} {@c1}Witaj na parkourze!"
								set {parkour.player.%name of player%.lu.%arg 2%} to now
								stop
							else:
								send "&7Czekaj 5 sekund"
								apply slowness 2 to player for 10 seconds
								apply blindness 1 to player for 10 seconds
								wait 5 seconds
								set {parkour.player.%name of player%.lvl} to player's level
								set {parkour.player.%name of player%.back} to location of player
								set {parkour.player.%name of player%.parkour} to true
								set {parkour.player.%name of player%.parkour.name} to "%arg 2%"
								loop all items in the player's inventory:
									add the loop-item to {inventory.%name of player%::*}
									remove loop-item from player's inventory
								set the player's level to 0
								set level progress of the player to 0.0
								teleport player to {parkour.parkour.%arg 2%.spawn}
								set {parkour.player.%name of player%.start} to false
								remove blindness from player
								remove slowness from player
								send "{@tag} {@c1}Witaj na parkourze!"
								stop
						else:
							send "{@tag} {@error}Nie mozna dolaczyc, poniewaz parkour nie zostal jeszcze skonfigurowany!"
							stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@tag} {@error}Podaj nazwe parkoura!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "lobby":
			if player has permissions "parkour.lobby" or "parkour.default":
				if {parkour.config.tpCooldown} is true:
					send "&6Teleportacja..."
					teleport player to {parkour.lobby}
					stop
				else:
					send "&7Czekaj 5 sekund"
					apply slowness 2 to player for 10 seconds
					apply blindness 1 to player for 10 seconds
					wait 5 seconds
					send "&6Teleportacja..."
					teleport player to {parkour.lobby}
					remove blindness from player
					remove slowness from player
					stop
		if arg 1 is "leave" or "wyjdz" or "opusc":
			if player has permissions "parkour.leave" or "parkour.default":
				if {parkour.player.%name of player%.parkour} is true:
					set {parkour.player.%name of player%.parkour} to false
					set {parkour.player.%name of player%.timmer} to false
					set {parkour.player.%name of player%.start} to false
					if {parkour.config.tpLobby} is true:
						teleport player to {parkour.lobby}
					if {parkour.config.tpLobby} is false:
						teleport player to {parkour.player.%name of player%.back}
					clear {parkour.player.%name of player%.parkour.name}
					clear {parkour.player.%name of player%.back}
					set the player's level to 0
					set level progress of the player to 0.0
					set {parkour.player.%name of player%.timmer-sec} to 0
					set {parkour.player.%name of player%.timmer-mili} to 0
					set the player's level to {parkour.player.%name of player%.lvl}
					clear {parkour.player.%name of player%.lvl}
					loop {inventory.%name of player%::*}:
						add loop-value to the player
					clear {inventory.%name of player%::*}
					delete {inventory.%name of player%::*}
					send "{@tag} {@c1}Opuszczono parkour!"
					stop
				else:
					send "{@tag} {@error}Nie jestes na parkourze!"
					stop
			else:
				send "{@permissions}"
				stop
		if arg 1 is "broadcast":
			if {parkour.broadcast.%name of player%} is not set:
				set {parkour.broadcast.%name of player%} to true
				send "{@tag} &aWlaczono broadcast!"
				stop
			if {parkour.broadcast.%name of player%} is false:
				set {parkour.broadcast.%name of player%} to true
				send "{@tag} &aWlaczono broadcast!"
				stop
			if {parkour.broadcast.%name of player%} is true:
				set {parkour.broadcast.%name of player%} to false
				send "{@tag} &cWylaczono broadcast!"
				stop
		if arg 1 is "reload" or "przeladuj":
			if player has permissions "parkour.reload" or "parkour.przeladuj":
				make console execute command "sk reload Parkour"
				wait 1 tick
				set {parkour.config.tpCooldown} to {@tpCooldown}
				set {parkour.config.tpLobby} to {@tpLobby}
				set {parkour.config.xpTimmer} to {@xpTimmer}
				set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}
				wait 1 tick
				send "{@tag} &aPrzeladowano"
				stop
		if arg 1 is "info" or "author" or "autor":
			send "&8--------------------------------"
			send " &7Autor: &aDzikoysk"
			send " &7Nazwa: &aUniqueParkour"
			send "&7 &7&nStrona:&a &nwww.Dzikoysk.net"
			send "&8--------------------------------"
			stop
		if arg 1 is "help" or "pomoc":
			send "&6/parkour list &8– &aLista parkourów"
			send "&6/parkour join [name] &8– &aDolaczanie do parkoura"
			send "&6/parkour leave &8– &aWyjscie z parkoura"
			send "&6/parkour setlobby &8– &aUstawienie lobby"
			send "&6/parkour create [name] &8– &aStworzenie parkoura"
			send "&6/parkour setspawn [name] &8– &aUstawienie spawnu dla parkoura"
			send "&6/parkour delete [nazwa] &8– &aUsuniecie parkoura"
			send "&6/parkour author &8– &aNotka o autorze"
			send "&6/parkour reload &8– &aPrzeladowanie"
			stop
		if arg 1 is not set:
			send "&6/parkour list &8– &aLista parkourów"
			send "&6/parkour join [name] &8– &aDolaczanie do parkoura"
			send "&6/parkour leave &8– &aWyjscie z parkoura"
			send "&6/parkour setlobby &8– &aUstawienie lobby"
			send "&6/parkour create [name] &8– &aStworzenie parkoura"
			send "&6/parkour setspawn [name] &8– &aUstawienie spawnu dla parkoura"
			send "&6/parkour delete [nazwa] &8– &aUsuniecie parkoura"
			send "&6/parkour author &8– &aNotka o autorze"
			send "&6/parkour reload &8– &aPrzeladowanie"
			stop
		if arg 1 is not "list" or "broadcast" or "lista" or "create" or "stworz" or "delete" or "usun" or "ustawlobby" or "setlobby" or "setspawn" or "ustawspawn" or "lobby" or "join" or "dolacz" or "leave" or "wyjdz" or "opusc" or "reload" or "przeladuj" or "info" or "author" or "autor" or "":
			send "{@tag} {@error}Nie ma takiej komendy!"
			stop				
	
# Config load
on skript start:
	send "&8Unique Parkour wymaga wersji Skript Beta 10 ..." to the console
	wait 1 seconds
	send "&8Serwer pracuje na wersji: %skript version%" to the console
	send "" to the console
	send "&8--------------------------------------------------------------" to the console
	send "&8|                                                            |" to the console
	send "&8|                  Enable &9UniqueParkour                  &8|" to the console
	send "&8|                                                            |" to the console
	send "&8--------------------------------------------------------------" to the console
	send "" to the console
	send "&8Author: &eDzikoysk" to the console
	send "&8Version: &7{@version}" to the console
	send "" to the console
	set {parkour.config.tpCooldown} to {@tpCooldown}
	set {parkour.config.tpLobby} to {@tpLobby}
	set {parkour.config.xpTimmer} to {@xpTimmer}
	set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}

on skript load:
	set {parkour.config.tpCooldown} to {@tpCooldown}
	set {parkour.config.tpLobby} to {@tpLobby}
	set {parkour.config.xpTimmer} to {@xpTimmer}
	set {parkour.config.tpJoinCooldown} to {@tpJoinCooldown}

on command "parkour reload":
	send "{@tag} &aReload ..."
	wait 1 tick
	make console execute command "skirpt reload Parkour"
	wait 1 tick
	send "&aPrzeladowano!"
	
on command "pk reload":
	send "{@tag} &aReload ..."
	wait 1 tick
	make console execute command "skirpt reload Parkour"
	wait 1 tick
	send "&aPrzeladowano!"

# Author & Test Command
command /dzikoysktest:
	trigger:
		set {_dzikoysk} to "%name of player%"
		if {_dzikoysk} is "Dzikoysk":
			send "&cWitaj Dzikoysk! Ten serwer oparty jest o: &9UniqueParkour"
		send "&c* Dzikoysk say:"
		send "&8----------------------------"
		send "&8Serwerowa wersja Skript: %skript version%"
		send "&8Wymagana: Skript Beta 10"
		send "&8----------------------------"
		send "&8Wersja skryptu: {@version}"
		send "&8----------------------------"
		send "&8[Args] = None ="
		stop

# Walking:
# - Start
on walking on red wool:
	if {parkour.player.%name of player%.parkour} is true:
		if block 2 under player is stained clay:
			if {parkour.player.%name of player%.start} is false:
				set {parkour.player.%name of player%.start} to true
				if {parkour.config.xpTimmer} is true:
					set {parkour.player.%name of player%.timmer} to true
					send "{@c1}Start! Czas jest liczony!"
					stop
				else:
					send "{@c1}Start!"
					stop
					
# - Meta
on walking on double stone slab:
	if {parkour.player.%name of player%.parkour} is true:
		if block 2 under player is command block:
			if {parkour.player.%name of player%.start} is true:
				set {parkour.player.%name of player%.start} to false
				set {parkour.player.%name of player%.parkour} to false
				if {parkour.config.xpTimmer} is true:
					set {parkour.player.%name of player%.timmer} to false
					if {parkour.config.tpLobby} is true:
						teleport player to {parkour.lobby}
					if {parkour.config.tpLobby} is false:
						teleport player to {parkour.player.%name of player%.back}
						clear {parkour.player.%name of player%.back}
					loop {inventory.%name of player%::*}:
						give loop-value to player
					clear {inventory.%name of player%::*}
					clear {inventory.%name of player%::*}
					wait 1 tick
					delete {inventory.%name of player%::*}
					send "{@c1}Ukonczono parkour w czasie: {@c2}%{parkour.player.%name of player%.timmer-sec}%,%{parkour.player.%name of player%.timmer-mili}% {@c1}(s)"
					make console execute command "addmonety %player% %{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%"
					send "&aOtrzymano monety! [&6%{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%&a]" to player
					loop all players:
						if {parkour.broadcast.%loop-player%} is true:
							send "{@c1}Gracz {@c2}%name of player% {@c1}ukonczyl parkour {@c2}%{parkour.player.%name of player%.parkour.name}% {@c1}w czasie: {@c2}%{parkour.player.%name of player%.timmer-sec}%,%{parkour.player.%name of player%.timmer-mili}% {@c1}(s)" to loop-player
							exit loop
						else:
							exit loop
					set the player's level to 0
					set level progress of the player to 0.0
					set {parkour.player.%name of player%.timmer-sec} to 0
					set {parkour.player.%name of player%.timmer-mili} to 0
					clear {parkour.player.%name of player%.parkour.name}
					clear {parkour.player.%name of player%.back}
					stop
				else:
					loop {inventory.%name of player%::*}:
						give loop-value to player
					clear {inventory.%name of player%::*}
					wait 1 tick
					delete {inventory.%name of player%::*}
					send "{@c1}Ukonczono parkour!"
					make console execute command "addmonety %name of player% %{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%"
					send "&aOtrzymano monety! [&6%{parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.prize}%&a]"
					stop 				

# Fall					
on walking on white wool or red wool or orange wool or brown wool or green wool or light green wool or purple wool or cyan wool or pink wool or gray wool or stone or grass or glass or water or lava or any wood or sand or dirt:
	if block 2 under player is command block:
		if {parkour.player.%name of player%.parkour} is true:
			teleport player to {parkour.parkour.%{parkour.player.%name of player%.parkour.name}%.spawn}
			set {parkour.player.%name of player%.timmer} to false
			set {parkour.player.%name of player%.start} to false
			set the player's level to 0
			set level progress of the player to 0.0
			set {parkour.player.%name of player%.timmer-sec} to 0
			set {parkour.player.%name of player%.timmer-mili} to 0
			stop
				
# Timmer								
every 0.1 second:
	if {parkour.config.xpTimmer} is true:
		loop all players:
			if {parkour.player.%loop-player%.timmer} is true:
				add 1 to {parkour.player.%loop-player%.timmer-mili}
				add 0.2 to level progress of the loop-player
				if {parkour.player.%loop-player%.timmer-mili} is 10:
					set level progress of the loop-player to 0.0
					set {parkour.player.%loop-player%.timmer-mili} to 0
					add 1 to {parkour.player.%loop-player%.timmer-sec}
					set the loop-player's level to {parkour.player.%loop-player%.timmer-sec}
					add 10 to loop-player's hunger bar
					
# Signs:
# - Ustawienie
On sign change:
	if line 1 is "{@sign.tag}":
		if player has permissions "parkour.sign.create" or "parkour.sign.*" or "parkour.admin":
			if line 2 is not "Dolacz" or "Join" or "" or "Leave" or "Wyjdz" or "Opusc":
				send "{@tag} {@error}Wpisz odpowiednie polecenie w 2 linii!"
				cancel event
				stop
			if line 2 is "":
				if line 3 is "Leave" or "Wyjdz" or "Opusc":
					send "{@tag} {@c1}Ustawiono tabliczke do opuszczania parkoura"
					stop
				else if line 3 is set:
					if {parkour.parkour.%line 3%.parkour} is true:
						send "{@tag} {@c1}Ustawiono tabliczke dla parkoura {@c2}%line 3%{@c1}!"
						stop
					else:	
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						cancel event
						stop
				else:	
					send "{@tag} {@error}Zle uzupelniona 3 linia!"
					cancel event
					stop
			if line 2 is "Join" or "Dolacz":
				if line 3 is set:
					if {parkour.parkour.%line 3%.parkour} is true:
						send "{@tag} {@c1}Ustawiono tabliczke dla parkoura {@c2}%line 3%{@c1}!"
						stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						cancel event
						stop
				else:
					send "{@tag} {@error} Podaj nazwe parkoura w 3 linii!"
					stop

# - Rightcllick					
on rightclick on sign:
	if line 1 of clicked block is "{@sign.tag}":
		if line 2 of clicked block is "Join" or "Dolacz":
			if line 3 of clicked block is set:
				if player has permissions "parkour.sign.join" or "parkour.sign.*" or "parkour.admin" or "parkour.default":
					if {parkour.parkour.%line 3 of clicked block%.parkour} is true:
						if {parkour.parkour.%line 3 of clicked block%.endset} is true:
							if {parkour.config.tpJoinCooldown} is true:
								if difference between {parkour.player.%name of player%.lu.%line 3 of clicked block%} and now is less than {@tpJoinTime}:
									send "{@tag} {@error} Musisz odczekac {@c2}%difference between {parkour.player.%name of player%.lu.%line 3 of clicked block%} {@error} and now% aby ponownie skorzystac z tego parkouru"
									stop
							set {parkour.player.%name of player%.back} to location of player
							wait 1 tick
							set {parkour.player.%name of player%.lvl} to player's level
							loop all items in the player's inventory:
								add the loop-item to {inventory.%name of player%::*}
								remove loop-item from player's inventory
							set the player's level to 0
							set level progress of the player to 0.0
							teleport player to {parkour.parkour.%line 3 of clicked block%.spawn}
							set {parkour.player.%name of player%.parkour} to true
							set {parkour.player.%name of player%.parkour.name} to "%line 3 of clicked block%"
							set {parkour.player.%name of player%.start} to false
							send "{@tag} {@c1}Witaj na parkourze!"
							set {parkour.player.%name of player%.lu.%line 3 of clicked block%} to now
							stop
						else:
							send "{@tag} {@error}Nie mozna dolaczyc, poniewaz parkour nie zostal jeszcze skonfigurowany!"
							stop
					else:
						send "{@tag} {@error}Parkour o takiej nazwie nie istnieje!"
						stop
				else:
					send "{@permissions}"
					stop
			else:
				send "{@tag} {@error}Linia 3 nie ustawiona!"
				stop
		else if line 2 of clicked block is "Leave" or "Opusc" or "Wyjdz":
			if player has permissions "parkour.sign.leave" or "parkour.sign.*" or "parkour.admin" or "parkour.default":
				if {parkour.player.%name of player%.parkour} is true:
					set {parkour.player.%name of player%.parkour} to false
					set {parkour.player.%name of player%.timmer} to false
					set {parkour.player.%name of player%.start} to false
					if {parkour.config.tpLobby} is true:
						teleport player to {parkour.lobby}
					if {parkour.config.tpLobby} is false:
						teleport player to {parkour.player.%name of player%.back}
					clear {parkour.player.%name of player%.parkour.name}
					clear {parkour.player.%name of player%.back}
					set the player's level to 0
					set level progress of the player to 0.0
					set {parkour.player.%name of player%.timmer-sec} to 0
					set {parkour.player.%name of player%.timmer-mili} to 0
					set the player's level to {parkour.player.%name of player%.lvl}
					clear {parkour.player.%name of player%.lvl}
					clear {parkour.player.%name of player%.lvl}
					loop {inventory.%name of player%::*}:
						give loop-value to player
					clear {inventory.%name of player%::*}
					clear {inventory.%name of player%::*}
					delete {inventory.%name of player%::*}
					send "{@tag} {@c1}Opuszczono parkour!"
					stop
				else:
					send "{@tag} {@error}Nie jestes na parkourze!"
					stop
			else:
				send "{@permissions}"
				stop
		else if line 2 of clicked block is "":
			if line 3 of clicked block is "Leave" or "Opusc" or "Wyjdz":
				if player has permissions "parkour.sign.leave" or "parkour.sign.*" or "parkour.admin" or "parkour.default":
					if {parkour.player.%name of player%.parkour} is true:
						set {parkour.player.%name of player%.parkour} to false
						set {parkour.player.%name of player%.timmer} to false
						set {parkour.player.%name of player%.start} to false
						if {parkour.config.tpLobby} is true:
							teleport player to {parkour.lobby}
						if {parkour.config.tpLobby} is false:
							teleport player to {parkour.player.%name of player%.back}
						clear {parkour.player.%name of player%.parkour.name}
						clear {parkour.player.%name of player%.back}
						set the player's level to 0
						set level progress of the player to 0.0
						set {parkour.player.%name of player%.timmer-sec} to 0
						set {parkour.player.%name of player%.timmer-mili} to 0
						set the player's level to {parkour.player.%name of player%.lvl}
						clear {parkour.player.%name of player%.lvl}
						clear {parkour.player.%name of player%.lvl}
						loop {inventory.%name of player%::*}:
							give loop-value to player
						clear {inventory.%name of player%::*}
						clear {inventory.%name of player%::*}
						delete {inventory.%name of player%::*}
						send "{@tag} {@c1}Opuszczono parkour!"
						stop
					else:
						send "{@tag} {@error}Nie jestes na parkourze!"
						stop
				else:
					send "{@permissions}"
					stop
			else:
				send "{@tag} {@error}Linia 3 nie ustawiona!"
				stop

on command:
	if player exists:
		if {parkour.player.%name of player%.parkour} is true:
			if command is "/pk leave" or "/parkour leave" or "/parkour opusc" or "/pk opusc" or "/parkour wyjdz" or "/pk wyjdz" or "/parkour help" or "/pk help" or "/parkour pomoc" or "/pk pomoc":
				stop
			else:
				send "&cNie mozesz uzywac komend na parkourze!"
				cancel event
				
On hunger meter change:
	if {parkour.player.%name of player%.parkour} is true:
		cancel event
				
on damage:
	if {parkour.player.%name of victim%.start} is true:
		cancel event
		stop
	else if {parkour.player.%name of victim%.parkour} is true:
		cancel event
		stop
	

command /monety [<text>]:
	trigger:
		if arg 1 is not set:
			send "&aMonety: &6%{monety.%player%}%"
			stop
		if arg 1 is set:
			send "&aMonety gracza &6%arg 1%&a: &6%{monety.%arg 1%}%"
			stop
		 

 

 

Nie jestem właścicielem serwera, poprosiłem tylko, o podanie nazwy tego pluginu :D

Opublikowano

Możesz to zrobić pluginem Multiverse-Portals ;) Tworzysz jeden portal w wodzie, a drugi na początku parkoura :)

Dziękuje ;* :)

Opublikowano

MV parkour ;)


Multiverse-Portals pod całym parkourem zrób jeden portal który tepa na początek

Raczej nie trzeba więcej portali ...:/

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...