description: Stores the item in your hand as a book with a unique ID
permission: setbook.use
trigger:
if player's tool is air:
send "&cYou must be holding an item to store!" to player
stop
set {_books::%arg-1%} to player's tool
send "&aBook stored as ID #%arg-1%!" to player
command /bookgive <player> <number>:
description: Gives the stored book to a player
permission: bookgive.use
trigger:
if {_books::%arg-2%} is not set:
send "&cNo book stored with ID #%arg-2%!" to player
stop
give {_books::%arg-2%} to arg-1
send "&aYou gave book ID #%arg-2% to %arg-1%!" to player
send "&aYou received a book!" to arg-1```
In my skript there is no errors but when i try doing /bookgive <player> <number> after i set the book it still doesn't give me it, does anyone know how i can fix it?
#help
1 messages · Page 1 of 1 (latest)
It's because {_books::*} is a local variable