NicoNekoDev / AstralBooks

Github repository of CitizensBooks.
https://www.spigotmc.org/resources/citizensbooks.37465/
Apache License 2.0
9 stars 3 forks source link

Quests with commands [Bug] #33

Closed zaccieslak closed 4 years ago

zaccieslak commented 4 years ago

Version: 2.5.3

So the commands work now with Paper, but executing commands through quest actions/events aren't working. Are you familiar with the Quests?

NicoNekoDev commented 4 years ago

Yes. Can you tell me exactly what you're trying/wanting to do?

zaccieslak commented 4 years ago

So I have a quest called "Leaving the Nest"

I have 10 stages in the quest, so I've made 10 books.

LeavingTheNestStage1 LeavingTheNestStage2 LeavingTheNestStage3 And so on. I've made all the npcbook commands, for all of these books and they all work.

I've made Quest Actions that have the command that is associated with the npcbook, but I guess that the command isn't being recognized.

zaccieslak commented 4 years ago

image

So here you can see the command to execute is "LeavingTheNestStage2"

zaccieslak commented 4 years ago

image When I type it out, it works. But when I try to execute the command through Quest Actions, it doesn't recognize (I'm guessing) that it is a command.

zaccieslak commented 4 years ago

UnknownCommand

yeah, I'm guessing that consoles can't recognize the commands that are set with npcbooks, which means that there's no way to set up books to open with stages then where they auto-open

NicoNekoDev commented 4 years ago

OH, well... you trying to force the console to open a book for a player, right?

zaccieslak commented 4 years ago

I mean, I'm just using the Quest Actions to execute a command (the command to open the book).

So when a player finishes a stage in a Quest, a book opens

NicoNekoDev commented 4 years ago

So I pushed a quick fix for you, but i'm not gonna push it to spigot yet, because there was some bugs with the updater. You can download the jar from here: http://repo.pikacraft.ro/ro/nicuch/CitizensBooks/2.5.3/CitizensBooks-2.5.3.jar

It adds the command /npcbook forceopen [filter-name] [player-name] which forces a book (from the filter) to open for the given player.

zaccieslak commented 4 years ago

ok thanks!! Hopefully the placeholder works, I'll try it out now!

Also, do you know if I'll have to replace every book now?

zaccieslak commented 4 years ago

BEAUTIFUL! It works!:) You're freaking awesome.