Skocz do zawartości
  • 0

Długie lore crashuje serwer


Pixeel133
 Udostępnij

Pytanie

Witam. Zrobiłem skrypt aby odwzorować gui z hypixela tak dla zabawy bo się nudzę i coś tam sobie robie.

Napotkałem się na błąd w którym przy ustawieniu długiego lore serwer crashuje.

command /skills:
	trigger:
		open chest with 6 row named "Your Skills" to player
		wait 2 tick
		format slot 0 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 1 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 2 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 3 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 4 of player with 1 of diamond sword named "&aYour Skills" with lore "&7View your Skill progression and rewards. || ||&eClick to show rankings!" to be unstealable
		format slot 5 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 6 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 7 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 8 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 9 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 10 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 11 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 12 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 13 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 14 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 15 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 16 of player with 1 of gray stained glass pane named " " to be unstealable
		format slot 17 of player with 1 of gray stained glass pane named " " to be unstealable
		set slot 18 of player's current inventory to golden hoe named "&aFarming I" with lore "&7Harvest crops and shear sheep to earn Farming XP! || ||&7Progress to Level II: &e0% || &f-------------------- &e0&6/&e10 || ||&7Level II Rewards: ||  &eFarmhand II ||    &84 > &a8% &fchance to get ||double crops. ||  &8+&a2 HP &cHealth ||  &8+&650 &7Coins || ||&eClick to view!" to be unstealable
		set slot 19 of player's current inventory to stone pickaxe named "&aMining I" with lore "&7Spelunk islands for ores and ||&7valuable materials to earn||&7Mining XP! || ||&7Progress to Level II: &e0% || &f-------------------- &e0&6/&e10 || ||&7Level II Rewards: ||  &eSpelunker II ||    &84 > &a8% &fchance to get ||double ores. ||  &8+&a1 Defense ||&1Onyx &7Reforge ||  &8+&650 &7Coins || ||&eClick to view!" to be unstealable

Żadnych błędów w konsoli po prostu crash

Odnośnik do komentarza
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1

Nie kumam po co raz robisz format slotem, a raz set slotem..
 

command /skills [<text>]:
  	trigger:
  		if arg isn't set:
  			open inventory chest with 3 rows named "Cos" to player
  			loop 27 times:
  				set slot loop-number - 1 of current inventory of player to gray stained glass pane named ""
  			set slot 10 of current inventory of player to stone pickaxe named "&eMining" with lore "&7Lore...", "&7Lore...", "&7Lore..." and "&7Lore..."
  			set slot 11 of current inventory of player to gold hoe named "&eFarming" with lore "&7Lore...", "&7Lore...", "&7Lore..." and "&7Lore..."
  
on inventory click:
  	if inventory name of current inventory of player is "Cos":
  		cancel event

Spróbuj tego użyć, wymagana wersja Skripta 2.2+, znajdziesz tutaj tę wersję Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
25 minut temu, CountingDogs napisał:

Nie kumam po co raz robisz format slotem, a raz set slotem..
 


command /skills [<text>]:
  	trigger:
  		if arg isn't set:
  			open inventory chest with 3 rows named "Cos" to player
  			loop 27 times:
  				set slot loop-number - 1 of current inventory of player to gray stained glass pane named ""
  			set slot 10 of current inventory of player to stone pickaxe named "&eMining" with lore "&7Lore...", "&7Lore...", "&7Lore..." and "&7Lore..."
  			set slot 11 of current inventory of player to gold hoe named "&eFarming" with lore "&7Lore...", "&7Lore...", "&7Lore..." and "&7Lore..."
  
on inventory click:
  	if inventory name of current inventory of player is "Cos":
  		cancel event

Spróbuj tego użyć, wymagana wersja Skripta 2.2+, znajdziesz tutaj tę wersję Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 10: set slot 0 of current inventory of player to gray stained glass pane named ""')
[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 11: set slot 1 of current inventory of player to gray stained glass pane named ""')
[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 12: set slot 2 of current inventory of player to gray stained glass pane named ""')
[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 13: set slot 3 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] 'diamond sword named "&aYour Skills" with lore <...>' can only accept a single text, not more (onjoin.sk, line 14: set slot 4 of current inventory of player to diamond sword named "&aYour Skills" with lore "&7View your Skill progression and rewards", "", "&eClick to show rankings!"')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 15: set slot 5 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 16: set slot 6 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 17: set slot 7 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 18: set slot 8 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 19: set slot 9 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 20: set slot 10 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 21: set slot 11 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 22: set slot 12 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 23: set slot 13 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 24: set slot 14 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 25: set slot 15 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 26: set slot 16 of current inventory of player to gray stained glass pane named ""')
[20:43:50 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 27: set slot 17 of current inventory of player to gray stained glass pane named ""')
[20:43:50 ERROR]: [Skript] Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onjoin.sk, line 28: set slot 18 of current inventory of player to golden hoe named "&aFarming I" with lore "&7Harvest crops and shear sheep to earn Farming XP!", "", "&7Progress to Level II: &e0%", "&f-------------------- &e0&6/&e10", "", "&7Level II Rewards:", "  &eFarmhand II, "    &84 > &a8% &fchance to get", "double crops.", "  &8+&a2 HP &cHealth", "  &8+&650 &7Coins", " ||&eClick to view!"')
[20:43:50 ERROR]: [Skript] Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onjoin.sk, line 29: set slot 19 of current inventory of player to pickaxe named "&aMining I" with lore "&7Spelunk islands for ores and", "&7valuable materials to earn", "&7Mining XP!", "", "&7Progress to Level II: &e0%", "&f-------------------- &e0&6/&e10", "", "&7Level II Rewards:", "  &eSpelunker II, "    &84 > &a8% &fchance to get", "double ores.", "  &8+&a1 Defense", "&1Onyx &7Reforge", "  &8+&650 &7Coins", "", "&eClick to view!"')
[20:43:50 INFO]: [Skript] Loaded 1 script with a total of 2 triggers and 1 command in 2.14 seconds
[20:43:50 INFO]: [Skript] Finished loading.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
29 minut temu, Pixeel133 napisał:

[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 10: set slot 0 of current inventory of player to gray stained glass pane named ""')
[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 11: set slot 1 of current inventory of player to gray stained glass pane named ""')
[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 12: set slot 2 of current inventory of player to gray stained glass pane named ""')
[20:43:48 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 13: set slot 3 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] 'diamond sword named "&aYour Skills" with lore <...>' can only accept a single text, not more (onjoin.sk, line 14: set slot 4 of current inventory of player to diamond sword named "&aYour Skills" with lore "&7View your Skill progression and rewards", "", "&eClick to show rankings!"')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 15: set slot 5 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 16: set slot 6 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 17: set slot 7 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 18: set slot 8 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 19: set slot 9 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 20: set slot 10 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 21: set slot 11 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 22: set slot 12 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 23: set slot 13 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 24: set slot 14 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 25: set slot 15 of current inventory of player to gray stained glass pane named ""')
[20:43:49 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 26: set slot 16 of current inventory of player to gray stained glass pane named ""')
[20:43:50 ERROR]: [Skript] a slot can't be set to 'gray stained glass pane named ""' because the latter is neither an item type nor an item stack (onjoin.sk, line 27: set slot 17 of current inventory of player to gray stained glass pane named ""')
[20:43:50 ERROR]: [Skript] Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onjoin.sk, line 28: set slot 18 of current inventory of player to golden hoe named "&aFarming I" with lore "&7Harvest crops and shear sheep to earn Farming XP!", "", "&7Progress to Level II: &e0%", "&f-------------------- &e0&6/&e10", "", "&7Level II Rewards:", "  &eFarmhand II, "    &84 > &a8% &fchance to get", "double crops.", "  &8+&a2 HP &cHealth", "  &8+&650 &7Coins", " ||&eClick to view!"')
[20:43:50 ERROR]: [Skript] Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onjoin.sk, line 29: set slot 19 of current inventory of player to pickaxe named "&aMining I" with lore "&7Spelunk islands for ores and", "&7valuable materials to earn", "&7Mining XP!", "", "&7Progress to Level II: &e0%", "&f-------------------- &e0&6/&e10", "", "&7Level II Rewards:", "  &eSpelunker II, "    &84 > &a8% &fchance to get", "double ores.", "  &8+&a1 Defense", "&1Onyx &7Reforge", "  &8+&650 &7Coins", "", "&eClick to view!"')
[20:43:50 INFO]: [Skript] Loaded 1 script with a total of 2 triggers and 1 command in 2.14 seconds
[20:43:50 INFO]: [Skript] Finished loading.

Zamiast "" daj " " 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
5 minut temu, CountingDogs napisał:

To nic nie zmienia, bo to tylko nazwa przedmiotu... Nawet nie zrozumiałeś treści błędu. 

Spróbuj ustawić przedmiot na 'grass' i zobacz, czy będzie ustawiało przedmioty.

[21:27:44 ERROR]: a slot can't be set to 'grass named " "' because the latter is neither an item type nor an item stack (onjoin.sk, line 10: set slot 0 of current inventory of player to grass named " "')
[21:27:44 ERROR]: a slot can't be set to 'grass named " "' because the latter is neither an item type nor an item stack (onjoin.sk, line 11: set slot 1 of current inventory of player to grass named " "')
[21:27:44 ERROR]: a slot can't be set to 'grass named " "' because the latter is neither an item type nor an item stack (onjoin.sk, line 12: set slot 2 of current inventory of player to grass named " "')

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Pixeel133 napisał:

[21:27:44 ERROR]: a slot can't be set to 'grass named " "' because the latter is neither an item type nor an item stack (onjoin.sk, line 10: set slot 0 of current inventory of player to grass named " "')
[21:27:44 ERROR]: a slot can't be set to 'grass named " "' because the latter is neither an item type nor an item stack (onjoin.sk, line 11: set slot 1 of current inventory of player to grass named " "')
[21:27:44 ERROR]: a slot can't be set to 'grass named " "' because the latter is neither an item type nor an item stack (onjoin.sk, line 12: set slot 2 of current inventory of player to grass named " "')

Podaj:

  • Wersję i silnik serwera;
  • Wersję pluginu Skript;
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 16.11.2020 o 21:29, CountingDogs napisał:

Podaj:

  • Wersję i silnik serwera;
  • Wersję pluginu Skript;

1.8.8 Spigot
Skript 2.2

 

W dniu 16.11.2020 o 21:46, Helios1993 napisał:

Pobierz skripta 2.5, link: Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

W miarę pomogło bo błędów nie ma już 25 tylko 2

[21:55:31 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onjoin.sk, line 28: set slot 18 of current inventory of player to golden hoe named "&aFarming I" with lore "&7Harvest crops and shear sheep to earn Farming XP!", " ", "&7Progress to Level II: &e0%", "&f-------------------- &e0&6/&e10", " ", "&7Level II Rewards:", "  &eFarmhand II, "    &84 > &a8% &fchance to get", "double crops.", "  &8+&a2 HP &cHealth", "  &8+&650 &7Coins", " " and "&eClick to view!"')
[21:55:31 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (onjoin.sk, line 29: set slot 19 of current inventory of player to pickaxe named "&aMining I" with lore "&7Spelunk islands for ores and", "&7valuable materials to earn", "&7Mining XP!", " ", "&7Progress to Level II: &e0%", "&f-------------------- &e0&6/&e10", " ", "&7Level II Rewards:", "  &eSpelunker II, "    &84 > &a8% &fchance to get", "double ores.", "  &8+&a1 Defense", "&1Onyx &7Reforge", "  &8+&650 &7Coins", " " and "&eClick to view!"')
[21:55:31 INFO]: Loaded 1 script with a total of 2 triggers and 1 command in 0.13 seconds

Nieaktywny

Łączę posty.

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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