Skocz do zawartości
  • 0

nie działa dawanie itemów z lore


Pytanie

Witam, robię skrypt na zegar (XD), ale potrzebuje do tego itemka z lore i mam coś takiego:

 

command /zegar [<text&gt] [<text&gt] [<integer&gt]:
[tab]permission: zegar.admin
[tab]permission message: Nie masz uprawnien !!!
[tab]trigger:
[tab][tab]if arg 1 is "ustaw":
[tab][tab][tab]if arg 2 is "sekundy":
[tab][tab][tab][tab]if arg 3 is set:
[tab][tab][tab][tab][tab]give sponge named "{@TAG}&r sekundy" with lore "%arg 3%" to player

 

i za chińskie chiny nie chce działać tylko cały czas wywala ten błąd:

2014-11-11 20:24:29 [sEVERE] [skript] '"&4&l[&cEpic Watch&r&4]&r sekundy" with lore "kupa"' is not a text (epicki zegar.sk, line 764: 'give sponge named "{@TAG}&r sekundy" with lore "kupa" to player')


2014-11-11 20:24:29 [iNFO] [skript] loaded 3 scripts with a total of 2 triggers and 2 commands in 2.22 seconds
2014-11-11 20:24:29 [iNFO] [skript] Skript finished loading!

 

Błagam pomóżcie mam WD [1.8], SkAddonLib [1.4], SK+ [2.2.4], Skript [2.0.2] i nic nie działa. Dodam jeszcze że jestem na wersji 1.6.4

wersja serwera:

This server is running CraftBukkit version git-Spigot-1112 (MC: 1.6.4) (Implementing API version 1.6.4-R0.1-SNAPSHOT)

 

 

logi:

2014-11-11 21:10:09 [iNFO] Starting minecraft server version 1.6.4


2014-11-11 21:10:09 [iNFO] Loading properties
2014-11-11 21:10:09 [iNFO] Default game type: CREATIVE
2014-11-11 21:10:09 [iNFO] This server is running CraftBukkit version git-Spigot-1112 (MC: 1.6.4) (Implementing API version 1.6.4-R0.1-SNAPSHOT)
2014-11-11 21:10:09 [iNFO] Generating keypair
2014-11-11 21:10:10 [iNFO] Starting Minecraft server on *:25565
2014-11-11 21:10:10 [iNFO] [skAddonLib] Loading SkAddonLib v1.4
2014-11-11 21:10:10 [iNFO] [skript] Loading Skript v2.0.2
2014-11-11 21:10:10 [iNFO] [WildSkript] Loading WildSkript v1.8
2014-11-11 21:10:10 [iNFO] [skQuery] Loading SkQuery v3.21.4
2014-11-11 21:10:10 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
2014-11-11 21:10:10 [WARNING] The server will make no attempt to authenticate usernames. Beware.
2014-11-11 21:10:10 [WARNING] 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.
2014-11-11 21:10:10 [WARNING] To change this, set "online-mode" to "true" in the server.properties file.
2014-11-11 21:10:10 [iNFO] Preparing level "world"
2014-11-11 21:10:10 [iNFO] -------- World Settings For [world] --------
2014-11-11 21:10:10 [iNFO] View Distance: 10
2014-11-11 21:10:10 [iNFO] Chunks to Grow per Tick: 650
2014-11-11 21:10:10 [iNFO] Experience Merge Radius: 3.0
2014-11-11 21:10:10 [iNFO] Item Merge Radius: 2.5
2014-11-11 21:10:10 [iNFO] Anti X-Ray: true
2014-11-11 21:10:10 [iNFO] Engine Mode: 1
2014-11-11 21:10:10 [iNFO] Blocks: [1, 5, 14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
2014-11-11 21:10:10 [iNFO] Mob Spawn Range: 4
2014-11-11 21:10:10 [iNFO] Cactus Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Cane Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Melon Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Mushroom Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Pumpkin Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Sapling Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Wheat Growth Modifier: 100%
2014-11-11 21:10:10 [iNFO] Entity Activation Range: An 32 / Mo 32 / Mi 16
2014-11-11 21:10:10 [iNFO] Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
2014-11-11 21:10:10 [iNFO] Hopper Transfer: 8 Hopper Check: 8
2014-11-11 21:10:10 [iNFO] Random Lighting Updates: false
2014-11-11 21:10:10 [iNFO] Structure Info Saving: true
2014-11-11 21:10:11 [iNFO] -------- World Settings For [world_nether] --------
2014-11-11 21:10:11 [iNFO] View Distance: 10
2014-11-11 21:10:11 [iNFO] Chunks to Grow per Tick: 650
2014-11-11 21:10:11 [iNFO] Experience Merge Radius: 3.0
2014-11-11 21:10:11 [iNFO] Item Merge Radius: 2.5
2014-11-11 21:10:11 [iNFO] Anti X-Ray: true
2014-11-11 21:10:11 [iNFO] Engine Mode: 1
2014-11-11 21:10:11 [iNFO] Blocks: [1, 5, 14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
2014-11-11 21:10:11 [iNFO] Mob Spawn Range: 4
2014-11-11 21:10:11 [iNFO] Cactus Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Cane Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Melon Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Mushroom Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Pumpkin Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Sapling Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Wheat Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Entity Activation Range: An 32 / Mo 32 / Mi 16
2014-11-11 21:10:11 [iNFO] Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
2014-11-11 21:10:11 [iNFO] Hopper Transfer: 8 Hopper Check: 8
2014-11-11 21:10:11 [iNFO] Random Lighting Updates: false
2014-11-11 21:10:11 [iNFO] Structure Info Saving: true
2014-11-11 21:10:11 [iNFO] -------- World Settings For [world_the_end] --------
2014-11-11 21:10:11 [iNFO] View Distance: 10
2014-11-11 21:10:11 [iNFO] Chunks to Grow per Tick: 650
2014-11-11 21:10:11 [iNFO] Experience Merge Radius: 3.0
2014-11-11 21:10:11 [iNFO] Item Merge Radius: 2.5
2014-11-11 21:10:11 [iNFO] Anti X-Ray: true
2014-11-11 21:10:11 [iNFO] Engine Mode: 1
2014-11-11 21:10:11 [iNFO] Blocks: [1, 5, 14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
2014-11-11 21:10:11 [iNFO] Mob Spawn Range: 4
2014-11-11 21:10:11 [iNFO] Cactus Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Cane Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Melon Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Mushroom Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Pumpkin Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Sapling Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Wheat Growth Modifier: 100%
2014-11-11 21:10:11 [iNFO] Entity Activation Range: An 32 / Mo 32 / Mi 16
2014-11-11 21:10:11 [iNFO] Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
2014-11-11 21:10:11 [iNFO] Hopper Transfer: 8 Hopper Check: 8
2014-11-11 21:10:11 [iNFO] Random Lighting Updates: false
2014-11-11 21:10:11 [iNFO] Structure Info Saving: true
2014-11-11 21:10:11 [iNFO] Preparing start region for level 0 (Seed: -5038531574343029968)
2014-11-11 21:10:11 [iNFO] Preparing start region for level 1 (Seed: -3123448230705333607)
2014-11-11 21:10:12 [iNFO] Preparing start region for level 2 (Seed: -3123448230705333607)
2014-11-11 21:10:13 [iNFO] [skAddonLib] Enabling SkAddonLib v1.4
2014-11-11 21:10:13 [iNFO] [skript] Enabling Skript v2.0.2
2014-11-11 21:10:14 [iNFO] [skript] Loaded a total of 10567 english aliases
2014-11-11 21:10:14 [iNFO] [skript] ~ created by & © Peter Güttinger aka Njol ~
2014-11-11 21:10:14 [iNFO] [WildSkript] Enabling WildSkript v1.8
2014-11-11 21:10:14 [iNFO] [WildSkript] skQuery hooked!
2014-11-11 21:10:14 [sEVERE] Error occurred while enabling WildSkript v1.8 (Is it up to date?)
java.lang.IncompatibleClassChangeError: class net.dzikoysk.wildskript.classes.RegionClasses$2 has interface ch.njol.skript.classes.Serializer as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName0(JavaPluginLoader.java:300)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:76)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at net.dzikoysk.wildskript.classes.RegionClasses.(RegionClasses.java:69)
at net.dzikoysk.wildskript.register.Classes.registerClasses(Classes.java:29)
at net.dzikoysk.wildskript.register.Register.register(Register.java:9)
at net.dzikoysk.wildskript.WildSkript.onEnable(WildSkript.java:66)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:382)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:286)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:268)
at net.minecraft.server.v1_6_R3.MinecraftServer.l(MinecraftServer.java:321)
at net.minecraft.server.v1_6_R3.MinecraftServer.f(MinecraftServer.java:298)
at net.minecraft.server.v1_6_R3.MinecraftServer.a(MinecraftServer.java:258)
at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:165)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
2014-11-11 21:10:14 [iNFO] [skQuery] Enabling SkQuery v3.21.4
2014-11-11 21:10:14 [iNFO] [skQuery] Snooping enabled from com.w00tmast3r.skquery.SkQuery
2014-11-11 21:10:14 [iNFO] [skQuery] Locating classes from SkQuery...
2014-11-11 21:10:14 [sEVERE] Error occurred while enabling SkQuery v3.21.4 (Is it up to date?)
java.lang.IncompatibleClassChangeError: class com.w00tmast3r.skquery.elements.Types$1 has interface ch.njol.skript.classes.Serializer as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName0(JavaPluginLoader.java:300)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:76)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.w00tmast3r.skquery.Registration.enableSnooper(Registration.java:53)
at com.w00tmast3r.skquery.SkQuery.onEnable(SkQuery.java:25)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:382)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:286)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:268)
at net.minecraft.server.v1_6_R3.MinecraftServer.l(MinecraftServer.java:321)
at net.minecraft.server.v1_6_R3.MinecraftServer.f(MinecraftServer.java:298)
at net.minecraft.server.v1_6_R3.MinecraftServer.a(MinecraftServer.java:258)
at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:165)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
2014-11-11 21:10:14 [iNFO] Server permissions file permissions.yml is empty, ignoring it
2014-11-11 21:10:14 [iNFO] Done (3,733s)! For help, type "help" or "?"
2014-11-11 21:10:14 [iNFO] [0;37;22m[[0;33;22mSkript[0;37;22m][m Checking for the latest version of Skript...[m
2014-11-11 21:10:15 [iNFO] [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mAn internal error occurred while checking for the latest version of Skript. Please refer to the server log for details.[m
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! [skript] Severe Error:
2014-11-11 21:10:15 [sEVERE] #!#! Unexpected error while checking for a new version of Skript
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
2014-11-11 21:10:15 [sEVERE] #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
2014-11-11 21:10:15 [sEVERE] #!#! and check whether this error has already been reported.
2014-11-11 21:10:15 [sEVERE] #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
2014-11-11 21:10:15 [sEVERE] #!#! and describe what you did before it happened and/or what you think caused the error.
2014-11-11 21:10:15 [sEVERE] #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
2014-11-11 21:10:15 [sEVERE] #!#! By following this guide fixing the error should be easy and done fast.
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! Stack trace:
2014-11-11 21:10:15 [sEVERE] #!#! java.lang.StringIndexOutOfBoundsException: String index out of range: -1
2014-11-11 21:10:15 [sEVERE] #!#! at java.lang.String.substring(Unknown Source)
2014-11-11 21:10:15 [sEVERE] #!#! at ch.njol.skript.Updater$2.run(Updater.java:170)
2014-11-11 21:10:15 [sEVERE] #!#! at java.lang.Thread.run(Unknown Source)
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! Version Information:
2014-11-11 21:10:15 [sEVERE] #!#! Skript: 2.0.2
2014-11-11 21:10:15 [sEVERE] #!#! Bukkit: 1.6.4-R0.1-SNAPSHOT
2014-11-11 21:10:15 [sEVERE] #!#! Minecraft: 1.6.4
2014-11-11 21:10:15 [sEVERE] #!#! Java: 1.8.0_25
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! Running CraftBukkit: false
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! Current node: loop {s.1.2::*}, {s.1.5::*} and {s.2.5::*}: (epicki zegar.sk, line 230)
2014-11-11 21:10:15 [sEVERE] #!#! Current item: null
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! Thread: Skript update thread
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:15 [sEVERE] #!#! End of Error.
2014-11-11 21:10:15 [sEVERE] #!#!
2014-11-11 21:10:16 [sEVERE] [skript] '"&4&l[&cEpic Watch&r&4]&r sekundy" with lore "%arg 3%"' is not a text (epicki zegar.sk, line 764: 'give sponge named "{@TAG}&r sekundy" with lore "%arg 3%" to the player')
2014-11-11 21:10:16 [iNFO] [skript] loaded 3 scripts with a total of 2 triggers and 2 commands in 2.3 seconds
2014-11-11 21:10:16 [iNFO] [skript] Skript finished loading!

Edytowane przez ziemniaczek320
Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/
Udostępnij na innych stronach

17 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /zegar [<text&gt] [<text&gt] [<integer&gt]:[tab]permission: zegar.admin[tab]permission message: Nie masz uprawnien !!![tab]trigger:[tab][tab]if arg 1 is "ustaw":[tab][tab][tab]if arg 2 is "sekundy":[tab][tab][tab][tab]if arg 3 is set:[tab][tab][tab][tab][tab]give sponge named "{@TAG}&r sekundy" with lore "%arg 3%" to the player
Edytowane przez Norbiak
Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35703
Udostępnij na innych stronach

  • 0

@up

wiem, ale "teoretycznie" działa bo pod /pl jest na zielono. A te wersje mam bo nie znalazłem typowych pod 1.6.4 w całym internecie, więc jakby ktoś miał to prosiłbym o podlinkowanie i wtedy jeszcze bym popróbował.

Edytowane przez ziemniaczek320
Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35717
Udostępnij na innych stronach

  • 0
command /zegar [<text&gt] [<text&gt] [<text&gt]:	permission: zegar.admin	permission message: Nie masz uprawnien !!!	trigger:		if arg 1 is "ustaw":			if arg 2 is "sekundy":				if arg 3 is set:					add 1 sponge named "{@TAG}&r sekundy" with lore "%arg 3%" to player's inventory
Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35721
Udostępnij na innych stronach

  • 0

@2up nadal to samo

 

@up bo mój kolego ma za słaby komputer na 1.7.x (ma za starą grafikę(OpenGL)) a robię ten skrypt na nasz serwer na modach :(

Edytowane przez ziemniaczek320
Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35723
Udostępnij na innych stronach

  • 0

@2up nadal to samo

 

@norbiak bo mój kolego ma za słaby komputer na 1.7.x (ma za starą grafikę(OpenGL)) a robię ten skrypt na nasz serwer na modach :(

daj teraz ss wiadomosci o reoladzie skryptu.

Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35724
Udostępnij na innych stronach

  • 0
Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35727
Udostępnij na innych stronach

  • 0
command /zegar [<text&gt] [<text&gt] [<text&gt]:    permission: zegar.admin    permission message: Nie masz uprawnien !!!    trigger:        if arg 1 is "ustaw":            if arg 2 is "sekundy":                if arg 3 is set:                    add 1 sponge named "{@TAG} &rsekundy" with lore "%arg-3%" to player's inventory
Jak to nie działa to zainstaluj jeszcze raz:

SkQuery3

wildskript 1.8

skript

Odnośnik do komentarza
https://skript.pl/temat/4236-nie-dzia%C5%82a-dawanie-item%C3%B3w-z-lore/#findComment-35730
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ę...