ServerTutorial

133k Downloads

One time tutorial

mrequinox3 opened this issue ยท 6 comments

commented

Is it possible to make the plugin run the tutorial only one time for that player? I have added rewards and if players play the tutorial more than one time they will get more money than necessary.

commented

I somehow missed this. The plugin should only ever give money once, regardless of how many times they do the tutorial.

commented

Ohh, I have somehow forgotten about this thread.
Yea, exactly.

commented

Is this not the case? I check if the player has done that tutorial before giving the money already:

if (!seenTutorial(player.getName(), event.getTutorial().getName())) {

commented

Well, you have responded to the thread and I said yes, you are right - you missed that feature.
If you have something that is preventing the case we are talking about in the code, well your code is not working then and you might have to change it.
Check if the if-statement is in the right position, in the right event, and its' expression is correct - including the methods you are using inside it.

commented

Found the bug. Didn't even realize it existed. Thank you! Will patch with next version.

commented

Congratz! Let's nail that sh*t! :D
Thank you too! ^_^