Название темы должно быть информативным, максимально четко отражая смысл проблемы
- Плагин
- Skript: Dungeons
- Ядро сервера
- Paper
- Версия сервера
- 1.21
- Память сервера ОЗУ
- 9Gb
- Ссылка
- Я не знаю
Ошибка: 1 of tool of argument - 1 can't be removed from an inventory because the former is neither an item type nor an inventory
Код:
command /opendungeoneasy [<player>]:
permission: op
trigger:
if name of tool of arg-1 is "&8 » &fКлюч Подземелья &8 - &aПростой":
remove 1 of tool of arg-1 from arg-1's inventory
send "&f &dХранитель: &fВы немедленно прибудете на арену! Помните, что выйти можно только с помощью команды телепортации, например &e/dleave.&f." to arg-1
wait 2 ticks
make console execute command "effect give %arg-1% minecraft:nausea 8 5"
wait 5 seconds
make console execute command "gms %arg-1%"
set arg-1's flight mode to false
make console execute command "god %arg-1% disable"
teleport arg-1 to {spawnlocarena1}
Код:
command /opendungeoneasy [<player>]:
permission: op
trigger:
if name of tool of arg-1 is "&8 » &fКлюч Подземелья &8 - &aПростой":
remove 1 of tool of arg-1 from arg-1's inventory
send "&f &dХранитель: &fВы немедленно прибудете на арену! Помните, что выйти можно только с помощью команды телепортации, например &e/dleave.&f." to arg-1
wait 2 ticks
make console execute command "effect give %arg-1% minecraft:nausea 8 5"
wait 5 seconds
make console execute command "gms %arg-1%"
set arg-1's flight mode to false
make console execute command "god %arg-1% disable"
teleport arg-1 to {spawnlocarena1}