Skocz do zawartości
  • 0

Skrypt na "kwadraty"


placki

Pytanie

Bardzo proszę o pomoc z skryptem a w sumie o napisanie go... 
Jeśli gracz postawi blok stone to tworzy Sie kwadrat z dirta stone jest po środku kwadrat 10 na 10. Stone musi mieć nazwę i lore tam dajcie cokolwiek. A z bloku złota to samo ale platforma 20 na 20 Bardzo proszę o ten skrypt bo sam nie jestem w stanie go napisać. Najlepiej gdyby były permisje (Na to aby nie każdy mógł tego używać). I limit takich operacji na dzień 3 razy z stone i 2 razy z złotem. Fajnie gdyby były jakieś powiadomienia typu "Stworzyłeś kwadrat" I oczywiście jeden stone nie maze być odnawialny wiec po ustawieniu i stworzeniu kwadratu jak by Sie usuwał (to samo z goldem).  Z góry dzieki. 

Edytowane przez placki
Bład
Odnośnik do komentarza
Udostępnij na innych stronach

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
59 minut temu, placki napisał:

Bardzo proszę o pomoc z skryptem a w sumie o napisanie go... 
Jeśli gracz postawi blok stone to tworzy Sie kwadrat z dirta stone jest po środku kwadrat 10 na 10. Stone musi mieć nazwę i lore tam dajcie cokolwiek. A z bloku złota to samo ale platforma 20 na 20 Bardzo proszę o ten skrypt bo sam nie jestem w stanie go napisać. Najlepiej gdyby były permisje (Na to aby nie każdy mógł tego używać). I limit takich operacji na dzień 3 razy z stone i 2 razy z złotem. Fajnie gdyby były jakieś powiadomienia typu "Stworzyłeś kwadrat" I oczywiście jeden stone nie maze być odnawialny wiec po ustawieniu i stworzeniu kwadratu jak by Sie usuwał (to samo z goldem).  Z góry dzieki. 

Proszę.

function createBlockSquare(b: block, i: item, i1: integer):
	set {_1} to location of {_b}
	set {_2} to location of {_b}
	set {_b} to air
	add (({_i1} / 2) - 1) to (x-loc of {_1}) and (z-loc of {_2})
	remove ({_i2} / 2) from (x-loc of {_2}) and (z-loc of {_2})
	set blocks within {_i1} and {_i2} to {_i}

on place:
	if event-block is stone:
		{placedStone::%player%} >= 3:
			send "&cJuż przekroczyłeś limit stawianego kamienia na dzień!" to player
			stop
		createBlockSquare(event-block, stone, 10)
		send "&aStworzyłeś kamienny kwadrat!" to player
		add 1 to {placedStone::%player%}
	else if event-block is gold block:
		{placedGoldBlock::%player%} >= 2:
			send "&cJuż przekroczyłeś limit stawianego złota na dzień!" to player
			stop
		createBlockSquare(event-block, gold block, 20)
		send "&aStworzyłeś złoty kwadrat!" to player
		add 1 to {placedGoldBlock::%player%}
	
every 1 minute:
	(now formatted as "HH:mm") is "00:00"
	clear {placedGoldBlock::*}
	clear {placedStone::*}
	broadcast "&aZresetowano wszystkim ilość utworzonych kwadratów!"

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
10 minut temu, Kormic napisał:

Proszę.



function createBlockSquare(b: block, i: item, i1: integer):
	set {_1} to location of {_b}
	set {_2} to location of {_b}
	set {_b} to air
	add (({_i1} / 2) - 1) to (x-loc of {_1}) and (z-loc of {_2})
	remove ({_i2} / 2) from (x-loc of {_2}) and (z-loc of {_2})
	set blocks within {_i1} and {_i2} to {_i}

on place:
	if event-block is stone:
		{placedStone::%player%} >= 3:
			send "&cJuż przekroczyłeś limit stawianego kamienia na dzień!" to player
			stop
		createBlockSquare(event-block, stone, 10)
		send "&aStworzyłeś kamienny kwadrat!" to player
		add 1 to {placedStone::%player%}
	else if event-block is gold block:
		{placedGoldBlock::%player%} >= 2:
			send "&cJuż przekroczyłeś limit stawianego złota na dzień!" to player
			stop
		createBlockSquare(event-block, gold block, 20)
		send "&aStworzyłeś złoty kwadrat!" to player
		add 1 to {placedGoldBlock::%player%}
	
every 1 minute:
	(now formatted as "HH:mm") is "00:00"
	clear {placedGoldBlock::*}
	clear {placedStone::*}
	broadcast "&aZresetowano wszystkim ilość utworzonych kwadratów!"

 

hejka dzieki za odpowiedz! skrypt niestety nie działa poprawnie. Limit działa ale niestety po postawieniu stone lub złota nie tworzy sie kwadrat 10 na 10 z dirta (lub jak w przypadku złota 20 na 20). 

Brak błędów podczas odswierzania. 

Edytowane przez placki
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 minutę temu, placki napisał:

hejka dzieki za odpowiedz! skrypt niestety nie działa poprawnie. Limit działa ale niestety po postawieniu stone lub złota nie tworzy sie kwadrat 10 na 10 z dirta (lub jak w przypadku złota 20 na 20). 

Brak błędów podczas odswierzania. 

Prosiłbym o parę informacji dot. twojego serwera.

  • wersja serwera
  • silnik serwera
  • wersja Skripta
  • lista dodatków do Skripta wraz z wersjami
  • błędy w konsoli
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 minutę temu, Kormic napisał:

Prosiłbym o parę informacji dot. twojego serwera.

  • wersja serwera
  • silnik serwera
  • wersja Skripta
  • lista dodatków do Skripta wraz z wersjami
  • błędy w konsoli

Silnik: Paper

Wersja: 1.16.5

Brak dodatków do skripta

Brak błędów w konsoli. Przesyłam latest log. (Tak wiem my pet nie działa nie musisz mówić jak cos) 

[15:19:30] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[15:19:30] [main/INFO]: Reloading ResourceManager: Default, bukkit
[15:19:31] [Worker-Main-2/INFO]: Loaded 7 recipes
[15:19:31] [Server thread/INFO]: Starting minecraft server version 1.16.5
[15:19:31] [Server thread/INFO]: Loading properties
[15:19:31] [Server thread/INFO]: This server is running Paper version git-Paper-469 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
[15:19:31] [Server thread/INFO]: Debug logging is disabled
[15:19:31] [Server thread/INFO]: Using 4 threads for Netty based IO
[15:19:31] [Server thread/INFO]: Server Ping Player Sample Count: 12
[15:19:31] [Server thread/INFO]: Default game type: SURVIVAL
[15:19:31] [Server thread/INFO]: Generating keypair
[15:19:31] [Server thread/INFO]: Starting Minecraft server on 25.93.246.254:25565
[15:19:31] [Server thread/INFO]: Using default channel type
[15:19:33] [Server thread/INFO]: [LuckPerms] Loading LuckPerms v5.2.76
[15:19:33] [Server thread/INFO]: [PlaceholderAPI] Loading PlaceholderAPI v2.10.9
[15:19:33] [Server thread/INFO]: [NoteBlockAPI] Loading NoteBlockAPI v1.6.1-SNAPSHOT
[15:19:33] [Server thread/INFO]: [AutoMessage] Loading AutoMessage v1.4
[15:19:33] [Server thread/INFO]: [Vault] Loading Vault v1.7.3-b131
[15:19:33] [Server thread/INFO]: [ProtocolLib] Loading ProtocolLib v4.6.0
[15:19:33] [Server thread/INFO]: [JukeBox] Loading JukeBox v1.20.3
[15:19:33] [Server thread/INFO]: [WorldEdit] Loading WorldEdit v7.2.2+fc3c499
[15:19:34] [Server thread/INFO]: Got request to register class com.sk89q.worldedit.bukkit.BukkitServerInterface with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@773bcbf4]
[15:19:34] [Server thread/INFO]: [AuctionHouse] Loading AuctionHouse v2.1.12
[15:19:34] [Server thread/INFO]: [ChestCommands] Loading ChestCommands v4.0.3
[15:19:34] [Server thread/INFO]: [EconomyShopGUI] Loading EconomyShopGUI v3.0.2
[15:19:34] [Server thread/INFO]: [WorldGuard] Loading WorldGuard v7.0.4+f7ff984
[15:19:34] [Server thread/INFO]: [CoreProtect] Loading CoreProtect v19.4
[15:19:34] [Server thread/INFO]: [MyPet] Loading MyPet v3.1
[15:19:34] [Server thread/INFO]: [de.Keyle.MyPet.MyPetPlugin] [[0;32;22mMyPet[m] [mError-Reporter ENABLED[m
[15:19:34] [Server thread/INFO]: [Skript] Loading Skript v2.5.3
[15:19:34] [Server thread/INFO]: [WolfyUtilities] Loading WolfyUtilities v1.6.3.8
[15:19:34] [Server thread/INFO]: [WolfyUtilities] Register json serializer/deserializer
[15:19:34] [Server thread/INFO]: [WolfyUtilities] Register Meta Setting providers
[15:19:34] [Server thread/INFO]: [PlayerWarps] Loading PlayerWarps v6.4.0
[15:19:34] [Server thread/INFO]: [CustomCrafting] Loading CustomCrafting v1.6.5.1
[15:19:34] [Server thread/INFO]: [CustomCrafting] WolfyUtilities API: WolfyUtilities v1.6.3.8
[15:19:34] [Server thread/INFO]: [CustomCrafting] Registering custom data
[15:19:34] [Server thread/INFO]: [ProtectionStones] Loading ProtectionStones v2.8.0
[15:19:34] [Server thread/INFO]: [Essentials] Loading Essentials v2.19.0-dev+75-1258d2f
[15:19:34] [Server thread/INFO]: [EssentialsChat] Loading EssentialsChat v2.19.0-dev+75-1258d2f
[15:19:34] [Server thread/INFO]: [EssentialsSpawn] Loading EssentialsSpawn v2.19.0-dev+75-1258d2f
[15:19:34] [Server thread/INFO]: [AuthMe] Loading AuthMe v5.6.0-SNAPSHOT-b2440
[15:19:34] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[15:19:34] [Server thread/INFO]: [LuckPerms] Enabling LuckPerms v5.2.76
[15:19:34] [Server thread/INFO]:         __    
[15:19:34] [Server thread/INFO]:   |    |__)   LuckPerms v5.2.76
[15:19:34] [Server thread/INFO]:   |___ |      Running on Bukkit - Paper
[15:19:34] [Server thread/INFO]: 
[15:19:34] [Server thread/INFO]: [LuckPerms] Loading configuration...
[15:19:34] [Server thread/INFO]: [LuckPerms] Loading storage provider... [H2]
[15:19:35] [Server thread/INFO]: [LuckPerms] Loading internal permission managers...
[15:19:35] [Server thread/INFO]: [LuckPerms] Performing initial data load...
[15:19:35] [Server thread/INFO]: [LuckPerms] Successfully enabled. (took 844ms)
[15:19:35] [Server thread/INFO]: [Vault] Enabling Vault v1.7.3-b131
[15:19:35] [Server thread/WARN]: [Vault] Loaded class com.earth2me.essentials.api.Economy from Essentials v2.19.0-dev+75-1258d2f which is not a depend, softdepend or loadbefore of this plugin.
[15:19:35] [Server thread/INFO]: [Vault] [Economy] Essentials Economy found: Waiting
[15:19:35] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[15:19:35] [Server thread/INFO]: [Vault] Enabled Version 1.7.3-b131
[15:19:35] [Server thread/INFO]: [LuckPerms] Registered Vault permission & chat hook.
[15:19:35] [Server thread/INFO]: [ProtocolLib] Enabling ProtocolLib v4.6.0
[15:19:35] [Server thread/INFO]: [ProtocolLib] Started structure compiler thread.
[15:19:35] [Server thread/INFO]: [WorldEdit] Enabling WorldEdit v7.2.2+fc3c499
[15:19:35] [Server thread/INFO]: WEPIF: Vault detected! Using Vault for permissions
[15:19:35] [Server thread/INFO]: Using com.sk89q.worldedit.bukkit.adapter.impl.Spigot_v1_16_R3 as the Bukkit adapter
[15:19:36] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[15:19:36] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[15:19:36] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[15:19:36] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[15:19:36] [Server thread/INFO]: Preparing level "world"
[15:19:36] [Server thread/INFO]: Registering commands with com.sk89q.worldedit.bukkit.BukkitServerInterface
[15:19:36] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[15:19:36] [Server thread/INFO]: Loaded 0 spawn chunks for world world
[15:19:36] [Server thread/INFO]: Preparing spawn area: 0%
[15:19:36] [Server thread/INFO]: Time elapsed: 130 ms
[15:19:36] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[15:19:36] [Server thread/INFO]: Loaded 0 spawn chunks for world world_nether
[15:19:36] [Server thread/INFO]: Time elapsed: 58 ms
[15:19:36] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[15:19:36] [Server thread/INFO]: Loaded 0 spawn chunks for world world_the_end
[15:19:37] [Server thread/INFO]: Time elapsed: 97 ms
[15:19:37] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.10.9
[15:19:37] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[15:19:37] [Server thread/INFO]: [NoteBlockAPI] Enabling NoteBlockAPI v1.6.1-SNAPSHOT
[15:19:37] [Server thread/INFO]: [AutoMessage] Enabling AutoMessage v1.4
[15:19:37] [Server thread/INFO]: [JukeBox] Enabling JukeBox v1.20.3
[15:19:37] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: jukebox
[15:19:37] [Server thread/INFO]: [JukeBox] Placeholders registered
[15:19:37] [Server thread/INFO]: [JukeBox] This JukeBox version requires NoteBlockAPI version 1.5.0 or more. Please ensure you have the right version before using JukeBox (you are using NBAPI ver. 1.6.1-SNAPSHOT)
[15:19:37] [Server thread/INFO]: [JukeBox] Loaded language file pl.yml
[15:19:38] [Server thread/INFO]: [JukeBox] 60 songs loadeds. Sorting by name... 
[15:19:38] [Server thread/INFO]: [JukeBox] Songs sorted ! 60 songs. Number of pages : 2
[15:19:38] [Server thread/INFO]: [AuctionHouse] Enabling AuctionHouse v2.1.12
[15:19:38] [Server thread/INFO]: [AuctionHouse] Found locale file en_us.json
[15:19:38] [Server thread/WARN]: [AuctionHouse] [1;33mA backup of the database has been saved with .backup extension.[0m
[15:19:38] [Server thread/INFO]: [AuctionHouse] Using NMS version v1_16_R3
[15:19:38] [Server thread/INFO]: [AuctionHouse] Using en_us locale
[15:19:38] [Server thread/INFO]: [AuctionHouse] Loaded 5 listings
[15:19:38] [Server thread/INFO]: [ChestCommands] Enabling ChestCommands v4.0.3
[15:19:38] [Server thread/INFO]: [ChestCommands] Hooked Vault
[15:19:38] [Server thread/INFO]: [ChestCommands] Hooked PlaceholderAPI
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Enabling EconomyShopGUI v3.0.2
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Using lang-en.yml as language file.
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Shops.yml has been found!
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Sections.yml has been found!
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Using plugin default spawners...
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Using minecraft version 1.16.5...
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Updating Shop settings...
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Debug mode is enabled.
[15:19:38] [Server thread/INFO]: [EconomyShopGUI] Loading all items...
[15:19:40] [Server thread/INFO]: [EconomyShopGUI] There is an update available!
[15:19:40] [Server thread/INFO]: [EconomyShopGUI] Done!
[15:19:40] [Server thread/INFO]: [WorldGuard] Enabling WorldGuard v7.0.4+f7ff984
[15:19:40] [Server thread/INFO]: [WorldGuard] (world) TNT ignition is PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world) Lighters are PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world) Lava fire is PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world) Fire spread is UNRESTRICTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world'
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_nether) TNT ignition is PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_nether) Lighters are PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_nether) Lava fire is PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_nether) Fire spread is UNRESTRICTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world_nether'
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_the_end) TNT ignition is PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_the_end) Lighters are PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_the_end) Lava fire is PERMITTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] (world_the_end) Fire spread is UNRESTRICTED.
[15:19:40] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world_the_end'
[15:19:40] [Server thread/INFO]: [WorldGuard] Loading region data...
[15:19:40] [Server thread/INFO]: [CoreProtect] Enabling CoreProtect v19.4
[15:19:40] [Server thread/INFO]: [CoreProtect] CoreProtect has been successfully enabled!
[15:19:40] [Server thread/INFO]: [CoreProtect] Using SQLite for data storage.
[15:19:40] [Server thread/INFO]: --------------------
[15:19:40] [Server thread/INFO]: [CoreProtect] Enjoy CoreProtect? Join our Discord!
[15:19:40] [Server thread/INFO]: [CoreProtect] Discord: www.coreprotect.net/discord/
[15:19:40] [Server thread/INFO]: --------------------
[15:19:40] [Server thread/INFO]: [de.Keyle.MyPet.MyPetPlugin] [[0;32;22mMyPet[m] [mEnabling MyPet v3.1[m
[15:19:41] [Server thread/INFO]: [de.Keyle.MyPet.MyPetPlugin] [[0;32;22mMyPet[m] [mNo Update available.[m
[15:19:41] [Server thread/WARN]: [de.Keyle.MyPet.MyPetPlugin] [[0;32;22mMyPet[m] [m[0;31;1mThis version of MyPet is not compatible with "v1_16_R3". Is MyPet up to date?[m
[15:19:41] [Server thread/INFO]: [Skript] Enabling Skript v2.5.3
[15:19:41] [ForkJoinPool.commonPool-worker-2/INFO]: [Skript] You're currently running the latest stable version of Skript.
[15:19:44] [Server thread/INFO]: [Skript] Loaded 128188 aliases in 3111ms
[15:19:44] [Server thread/INFO]: [Skript]  ~ created by & © Peter Güttinger aka Njol ~
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Enabling WolfyUtilities v1.6.3.8
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Minecraft version: 1.16.5
[15:19:44] [Server thread/INFO]: [WolfyUtilities] WolfyUtilities version: 1.6.3.8
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Register API references
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Loading stored Custom Items
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Loading Player Data
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Loading Creative Mode Tabs
[15:19:44] [Server thread/INFO]: [WolfyUtilities] Loading Particles
[15:19:44] [Server thread/INFO]: [PlayerWarps] Enabling PlayerWarps v6.4.0
[15:19:44] [Server thread/INFO]: [PlayerWarps] Vault found, now enabling PlayerWarps...
[15:19:44] [Server thread/INFO]: [PlayerWarps] Permissions plugin found!
[15:19:44] [Server thread/INFO]: [PlayerWarps] Economy plugin found!
[15:19:44] [Server thread/INFO]: [PlayerWarps] Chat plugin found!
[15:19:44] [Server thread/INFO]: [PlayerWarps] Found PlaceholderAPI adding support...
[15:19:44] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: pw
[15:19:44] [Server thread/WARN]: [PlayerWarps] Loaded class com.earth2me.essentials.Essentials from Essentials v2.19.0-dev+75-1258d2f which is not a depend, softdepend or loadbefore of this plugin.
[15:19:44] [Server thread/INFO]: [PlayerWarps] SQLite database is enabling...
[15:19:44] [Server thread/INFO]: [PlayerWarps] Loading Metrics...
[15:19:44] [Server thread/INFO]: [PlayerWarps] Successfully loaded Metrics!
[15:19:44] [Server thread/INFO]: [CustomCrafting] Enabling CustomCrafting v1.6.5.1
[15:19:44] [Server thread/INFO]: ____ _  _ ____ ___ ____ _  _ ____ ____ ____ ____ ___ _ _  _ ____ 
[15:19:44] [Server thread/INFO]: |    |  | [__   |  |  | |\/| |    |__/ |__| |___  |  | |\ | | __ 
[15:19:44] [Server thread/INFO]: |___ |__| ___]  |  |__| |  | |___ |  \ |  | |     |  | | \| |__]
[15:19:44] [Server thread/INFO]:     v1.6.5.1 Free
[15:19:44] [Server thread/INFO]:  
[15:19:44] [Server thread/INFO]: 
[15:19:44] [Server thread/INFO]: Special thanks to my Patrons for supporting this project: 
[15:19:44] [Server thread/INFO]:     | Nat R               | Apprehentice
[15:19:44] [Server thread/INFO]:     | Alex                | Junye Zhou
[15:19:44] [Server thread/INFO]:     | Vincent Deniau      | gizmonster
[15:19:44] [Server thread/INFO]:     | Thomas Texier       | John
[15:19:44] [Server thread/INFO]:     | HittmanA            | CypherPhyre
[15:19:44] [Server thread/INFO]:     | Alexander           | Vincent Fournier
[15:19:44] [Server thread/INFO]:     | The Hound Brothers  | Jason Asada
[15:19:44] [Server thread/INFO]:     | Inec Ackerr         | ?? ?
[15:19:44] [Server thread/INFO]:     | ValentineDesigns    | Gleaks mania
[15:19:44] [Server thread/INFO]: ------------------------------------------------------------------------
[15:19:44] [Server thread/INFO]: Loaded fallback language "en_US" v5.0.0 translated by WolfyScript
[15:19:44] [Server thread/INFO]: Loaded active language "en_US" v5.0.0 translated by WolfyScript
[15:19:44] [Server thread/WARN]: [CustomCrafting] Could not save recipe_book.json to plugins\CustomCrafting\recipe_book.json because recipe_book.json already exists.
[15:19:44] [Server thread/INFO]: ------------------------------------------------------------------------
[15:19:44] [Server thread/INFO]: [CC] Initiating Inventory GUIs
[15:19:45] [Server thread/INFO]: [CC] Loading Cauldrons
[15:19:45] [Server thread/INFO]: [CC] Registering PlaceHolder
[15:19:45] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: customcrafting
[15:19:45] [Server thread/INFO]: [CC] Loading Recipes & Items
[15:19:45] [Server thread/INFO]: [CC] - - - - [Local Storage] - - - -
[15:19:45] [Server thread/INFO]: [CC] > customcrafting
[15:19:45] [Server thread/INFO]: [CC] > customcraftings
[15:19:45] [Server thread/INFO]: [CC] > itemynowe
[15:19:45] [Server thread/INFO]: [CC] > naodwrot
[15:19:45] [Server thread/INFO]: [CC] 
[15:19:45] [Server thread/INFO]: ------------------------------------------------------------------------
[15:19:45] [Server thread/INFO]: [ProtectionStones] Enabling ProtectionStones v2.8.0
[15:19:45] [Server thread/INFO]: [WorldGuard] Registering session handler dev.espi.protectionstones.flags.GreetingFlagHandler
[15:19:45] [Server thread/INFO]: [WorldGuard] Registering session handler dev.espi.protectionstones.flags.FarewellFlagHandler
[15:19:45] [Server thread/INFO]: [ProtectionStones] PlaceholderAPI support enabled!
[15:19:45] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: protectionstones
[15:19:45] [Server thread/INFO]: [ProtectionStones] LuckPerms support enabled!
[15:19:45] [Thread-21/INFO]: [CC] [WARN] Failed to check for a update on spigot
[15:19:45] [Server thread/INFO]: [ProtectionStones] Protection Stone Blocks:
[15:19:45] [Server thread/INFO]: [ProtectionStones] - NOTE_BLOCK (64)
[15:19:45] [Server thread/INFO]: [ProtectionStones] Building region cache...
[15:19:45] [Server thread/INFO]: [ProtectionStones] Building UUID cache... (if slow change async-load-uuid-cache in the config to true)
[15:19:45] [Server thread/INFO]: [ProtectionStones] Checking if PS regions have been updated to UUIDs...
[15:19:45] [Server thread/INFO]: [ProtectionStones] ProtectionStones has successfully started!
[15:19:45] [Server thread/INFO]: [Essentials] Enabling Essentials v2.19.0-dev+75-1258d2f
[15:19:45] [Server thread/INFO]: [Essentials] Attempting to convert old kits in config.yml to new kits.yml
[15:19:45] [Server thread/INFO]: [Essentials] No kits found to migrate.
[15:19:45] [Server thread/INFO]: [Essentials] Loaded 25599 items from items.json.
[15:19:45] [Server thread/INFO]: [Essentials] Using locale pl_PL
[15:19:45] [Server thread/INFO]: [Essentials] ServerListPingEvent: Spigot iterator API
[15:19:45] [Server thread/INFO]: [Essentials] Starting Metrics. Opt-out using the global bStats config.
[15:19:45] [Server thread/INFO]: [Vault] [Economy] Essentials Economy hooked.
[15:19:45] [Server thread/INFO]: [Essentials] Using Vault based permissions (LuckPerms)
[15:19:45] [Server thread/INFO]: [EssentialsChat] Enabling EssentialsChat v2.19.0-dev+75-1258d2f
[15:19:45] [Server thread/INFO]: [EssentialsChat] Starting Metrics. Opt-out using the global bStats config.
[15:19:45] [Server thread/INFO]: [EssentialsSpawn] Enabling EssentialsSpawn v2.19.0-dev+75-1258d2f
[15:19:45] [Server thread/INFO]: [EssentialsSpawn] Starting Metrics. Opt-out using the global bStats config.
[15:19:45] [Server thread/INFO]: [AuthMe] Enabling AuthMe v5.6.0-SNAPSHOT-b2440
[15:19:45] [Server thread/INFO]: [AuthMe] SQLite Setup finished
[15:19:45] [Server thread/INFO]: [AuthMe] Hooked into LuckPerms!
[15:19:45] [Server thread/INFO]: [AuthMe] Hooked successfully into Essentials
[15:19:45] [Server thread/INFO]: [AuthMe] AuthMe 5.6.0-SNAPSHOT build n.2440 successfully enabled!
[15:19:46] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[15:19:46] [Server thread/INFO]: No expansions were registered!
[15:19:46] [Server thread/INFO]: Starting GS4 status listener
[15:19:46] [Server thread/INFO]: Thread Query Listener started
[15:19:46] [Server thread/INFO]: Running delayed init tasks
[15:19:46] [Query Listener #1/INFO]: Query running on 25.93.246.254:25565
[15:19:46] [Craft Scheduler Thread - 0/INFO]: [PlayerWarps] Loading player warps...
[15:19:46] [Server thread/INFO]: [AuctionHouse] Registered Service Provider Vault for Vault's Economy API
[15:19:46] [Craft Scheduler Thread - 20/INFO]: [AuthMe] Downloading GEO IP database, because the old database is older than 30 days or doesn't exist
[15:19:46] [Server thread/INFO]: [AuctionHouse] Registered Service Provider LuckPerms for Vault's Chat API
[15:19:46] [Craft Scheduler Thread - 24/INFO]: [Vault] Checking for Updates ... 
[15:19:46] [Craft Scheduler Thread - 20/WARN]: [AuthMe] No MaxMind credentials found in the configuration file! GeoIp protections will be disabled.
[15:19:46] [Craft Scheduler Thread - 20/INFO]: [AuthMe] There is no newer GEO IP database uploaded to MaxMind. Using the old one for now.
[15:19:46] [Craft Scheduler Thread - 20/WARN]: [AuthMe] Could not download GeoLiteAPI database [FileNotFoundException]: plugins\AuthMe\GeoLite2-Country.mmdb (Nie można odnaleźć określonego pliku)
[15:19:46] [Server thread/INFO]: [CoreProtect] WorldEdit logging successfully initialized.
[15:19:46] [Server thread/INFO]: [Skript] Loading variables...
[15:19:46] [Server thread/INFO]: [Skript] Loaded 0 variables in 0.0 seconds
[15:19:46] [Server thread/WARN]: [Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (itemy dodaj.sk, line 15: if player has permission "itemy.dodaj.itemy":')
[15:19:46] [Server thread/WARN]: [Skript] Possible name conflict of variables {placedGoldBlock::*} and {placedGoldBlock::%player%} (there might be more conflicts). (EZ.sk, line 27: clear {placedGoldBlock::*}')
[15:19:46] [Server thread/WARN]: [Skript] Possible name conflict of variables {placedStone::*} and {placedStone::%player%} (there might be more conflicts). (EZ.sk, line 28: clear {placedStone::*}')
[15:19:47] [Craft Scheduler Thread - 24/INFO]: [Vault] No new version available
[15:19:49] [Server thread/INFO]: [Skript] All scripts loaded without errors.
[15:19:49] [Server thread/INFO]: [Skript] Loaded 3 scripts with a total of 4 triggers and 2 commands in 3.6 seconds
[15:19:49] [Server thread/INFO]: [Skript] Finished loading.
[15:19:49] [Server thread/INFO]: [AuctionHouse] Found PlaceholderAPI plugin
[15:19:49] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: auctionhouse
[15:19:49] [Server thread/INFO]: [AuctionHouse] Registered PlaceholderAPI placeholders
[15:19:49] [Server thread/INFO]: Done (18.044s)! For help, type "help"
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] ************************************************************
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * WARNING - YOU ARE RUNNING AN OUTDATED VERSION OF JAVA.
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * PAPER WILL STOP BEING COMPATIBLE WITH THIS VERSION OF
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * JAVA WHEN MINECRAFT 1.17 IS RELEASED.
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * Please update the version of Java you use to run Paper
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * to at least Java 11. When Paper for Minecraft 1.17 is
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * released support for versions of Java before 11 will
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * be dropped.
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * Current Java version: 1.8.0_281
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * Check this forum post for more information: 
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *   https://papermc.io/java11
[15:19:49] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] ************************************************************
[15:19:49] [Server thread/INFO]: Timings Reset
[15:19:55] [User Authenticator #1/INFO]: UUID of player Doctor_W is d2cb5082-9df9-3524-b2ba-3afde0daa984
[15:19:55] [Server thread/INFO]: Doctor_W joined the game
[15:19:55] [Server thread/INFO]: Doctor_W[/25.93.246.254:64850] logged in with entity id 96 at ([world]-1.729428269200418E7, 124.36026608292389, 2721117.8274021824)
[15:19:55] [Thread-26/INFO]: [CC] [WARN] Failed to check for a update on spigot
[15:19:55] [Craft Scheduler Thread - 24/INFO]: [AuthMe] Doctor_W logged in 25.93.246.254
[15:19:55] [Craft Scheduler Thread - 24/INFO]: [NoteBlockAPI] New update available!
[15:20:22] [Server thread/INFO]: Doctor_W issued server command: /setspawn
[15:20:50] [Craft Scheduler Thread - 26/INFO]: Elo

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
16 minut temu, placki napisał:

Silnik: Paper

Wersja: 1.16.5

Brak dodatków do skripta

Brak błędów w konsoli. Przesyłam latest log. (Tak wiem my pet nie działa nie musisz mówić jak cos)

Wybacz, pomyliłem zmienne w swoim skrypcie i dlatego ustawianie bloków nie działało tak jak powinno.

Dorzucam komendę "/wyczysc", którą sobie wyczyścisz limity postawionych bloków.

function createBlockSquare(b: block, i1: integer):
	set {_1} to location of {_b}
	set {_2} to location of {_b}
	add (({_i1} / 2) - 1) to (x-loc of {_1}) and (z-loc of {_1})
	remove ({_i1} / 2) from (x-loc of {_2}) and (z-loc of {_2})
	set blocks within {_1} and {_2} to dirt

on place:
	if event-block is stone:
		{placedStone::%player%} >= 3:
			send "&cJuż przekroczyłeś limit stawianego kamienia na dzień!" to player
			stop
		createBlockSquare(event-block, 10)
		send "&aStworzyłeś kamienny kwadrat!" to player
		add 1 to {placedStone::%player%}
	else if event-block is gold block:
		{placedGoldBlock::%player%} >= 2:
			send "&cJuż przekroczyłeś limit stawianego złota na dzień!" to player
			stop
		createBlockSquare(event-block, 20)
		send "&aStworzyłeś złoty kwadrat!" to player
		add 1 to {placedGoldBlock::%player%}
	
every 1 minute:
	(now formatted as "HH:mm") is "00:00"
	clear {placedGoldBlock::*}
	clear {placedStone::*}
	broadcast "&aZresetowano wszystkim ilość utworzonych kwadratów!"
	
command /wyczysc:
	trigger:
		clear {placedGoldBlock::*}
		clear {placedStone::*}

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 minuty temu, Kormic napisał:

Wybacz, pomyliłem zmienne w swoim skrypcie i dlatego ustawianie bloków nie działało tak jak powinno.

Dorzucam komendę "/wyczysc", którą sobie wyczyścisz limity postawionych bloków.


function createBlockSquare(b: block, i1: integer):
	set {_1} to location of {_b}
	set {_2} to location of {_b}
	add (({_i1} / 2) - 1) to (x-loc of {_1}) and (z-loc of {_1})
	remove ({_i1} / 2) from (x-loc of {_2}) and (z-loc of {_2})
	set blocks within {_1} and {_2} to dirt

on place:
	if event-block is stone:
		{placedStone::%player%} >= 3:
			send "&cJuż przekroczyłeś limit stawianego kamienia na dzień!" to player
			stop
		createBlockSquare(event-block, 10)
		send "&aStworzyłeś kamienny kwadrat!" to player
		add 1 to {placedStone::%player%}
	else if event-block is gold block:
		{placedGoldBlock::%player%} >= 2:
			send "&cJuż przekroczyłeś limit stawianego złota na dzień!" to player
			stop
		createBlockSquare(event-block, 20)
		send "&aStworzyłeś złoty kwadrat!" to player
		add 1 to {placedGoldBlock::%player%}
	
every 1 minute:
	(now formatted as "HH:mm") is "00:00"
	clear {placedGoldBlock::*}
	clear {placedStone::*}
	broadcast "&aZresetowano wszystkim ilość utworzonych kwadratów!"
	
command /wyczysc:
	trigger:
		clear {placedGoldBlock::*}
		clear {placedStone::*}

 

/wyczysc działa tylko na gracza który to wpisuje czy na wszystkich? 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
11 minut temu, placki napisał:

Ok i ostania rzecz da sie zrobić permisje ktora usuwa limit tych kwadratów dla danej osoby (dla tej z tą permisja)

Jasne.

command /wyczysc:
	permission: permisja.permisja
	trigger:
		clear {placedGoldBlock::%player%}
		clear {placedStone::%player%}
		send "&aZresetowałeś swoje limity postawionych bloków!"

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
7 minut temu, Kormic napisał:

Jasne.


command /wyczysc:
	permission: permisja.permisja
	trigger:
		clear {placedGoldBlock::%player%}
		clear {placedStone::%player%}
		send "&aZresetowałeś swoje limity postawionych bloków!"

 

Naprawdę przepraszam że tak przesladuje..  Chodzi o to że nimo tego co dopisalem wciąz mozna robić działke z kazdego stone. A po za tym w kórym miejscu moge zmienić grubość kwadratu? 

on place:
	if event-block is stone of unbreaking 100 named "&fDzialka":

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
15 minut temu, placki napisał:

Naprawdę przepraszam że tak przesladuje..  Chodzi o to że nimo tego co dopisalem wciąz mozna robić działke z kazdego stone. A po za tym w kórym miejscu moge zmienić grubość kwadratu? 



on place:
	if event-block is stone of unbreaking 100 named "&fDzialka":

 

Dlatego to nie działa, gdyż blok nie posiada nazwy, enchantów, itd. Tutaj należy sprawdzać przedmiot w ręce gracza. Już to poprawiłem.

Dodałem również wysokość kwadratu. Ustawisz ją w linijce 14. (kamienny kwadrat) i 21. (złoty kwadrat).

function createBlockSquare(b: block, i1: integer, i2: integer):
	set {_1} to location of {_b}
	set {_2} to location of {_b}
	add (({_i1} / 2) - 1) to (x-loc of {_1}) and (z-loc of {_1})
	remove ({_i1} / 2) from (x-loc of {_2}) and (z-loc of {_2})
	add ({_i2} - 1) to y-loc of {_2}
	set blocks within {_1} and {_2} to dirt

on place:
	if player's tool is stone of unbreaking 100 named "&fDzialka":
		{placedStone::%player%} >= 3:
			send "&cJuż przekroczyłeś limit stawianego kamienia na dzień!" to player
			stop
		createBlockSquare(event-block, 10, 1)
		send "&aStworzyłeś kamienny kwadrat!" to player
		add 1 to {placedStone::%player%}
	else if player's tool is gold block of unbreaking 100 named "&fDzialka":
		{placedGoldBlock::%player%} >= 2:
			send "&cJuż przekroczyłeś limit stawianego złota na dzień!" to player
			stop
		createBlockSquare(event-block, 20, 1)
		send "&aStworzyłeś złoty kwadrat!" to player
		add 1 to {placedGoldBlock::%player%}
	
every 1 minute:
	(now formatted as "HH:mm") is "00:00"
	clear {placedGoldBlock::*}
	clear {placedStone::*}
	broadcast "&aZresetowano wszystkim ilość utworzonych kwadratów!"
	
command /wyczysc:
	permission: permisja.permisja
	trigger:
		clear {placedGoldBlock::%player%}
		clear {placedStone::%player%}
		send "&aZresetowałeś swoje limity postawionych bloków!"	

 

Edytowane przez Kormic
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
6 minut temu, Kormic napisał:

Dlatego to nie działa, gdyż blok nie posiada nazwy, enchantów, itd. Tutaj należy sprawdzać przedmiot w ręce gracza. Już to poprawiłem.

Dodałem również wysokość kwadratu. Ustawisz ją w linijce 14. (kamienny kwadrat) i 21. (złoty kwadrat).


function createBlockSquare(b: block, i1: integer, i2: integer):
	set {_1} to location of {_b}
	set {_2} to location of {_b}
	add (({_i1} / 2) - 1) to (x-loc of {_1}) and (z-loc of {_1})
	remove ({_i1} / 2) from (x-loc of {_2}) and (z-loc of {_2})
	add ({_i2} - 1) to y-loc of {_2}
	set blocks within {_1} and {_2} to dirt

on place:
	if player's tool is stone of unbreaking 100 named "&fDzialka":
		{placedStone::%player%} >= 3:
			send "&cJuż przekroczyłeś limit stawianego kamienia na dzień!" to player
			stop
		createBlockSquare(event-block, 10, 1)
		send "&aStworzyłeś kamienny kwadrat!" to player
		add 1 to {placedStone::%player%}
	else if player's tool is gold block of unbreaking 100 named "&fDzialka":
		{placedGoldBlock::%player%} >= 2:
			send "&cJuż przekroczyłeś limit stawianego złota na dzień!" to player
			stop
		createBlockSquare(event-block, 20, 1)
		send "&aStworzyłeś złoty kwadrat!" to player
		add 1 to {placedGoldBlock::%player%}
	
every 1 minute:
	(now formatted as "HH:mm") is "00:00"
	clear {placedGoldBlock::*}
	clear {placedStone::*}
	broadcast "&aZresetowano wszystkim ilość utworzonych kwadratów!"
	
command /wyczysc:
	permission: permisja.permisja
	trigger:
		clear {placedGoldBlock::%player%}
		clear {placedStone::%player%}
		send "&aZresetowałeś swoje limity postawionych bloków!"	

 

Wszystko działa :) Dziekuje ci bardzo <3 ! Temat do zamknięcia!

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...