Theguyhere0 / villager-defense-minigame

A Minecraft plugin that adds a fun, customizable minigame where players defend villagers against waves of monsters
GNU General Public License v3.0
6 stars 4 forks source link

Need Help for Reward Commands #160

Open UBSMentis opened 1 year ago

UBSMentis commented 1 year ago

Describe the bug I wnat to set a Rewar every 10 Waves (Wave 10,20,30,40,50 etc) but the command is not executed. how exactly do i have to enter it? i test it with onWaveComplete:

unlimited:

These commands are run when a given wave is COMPLETE (as opposed to simply reaching it)

Use positive integer keys to indicate which wave to run at, followed by the command to run

Ex. 1: "/give %player% taxes"

onWaveComplete:

Server and plugin versions (please complete the following information):

Theguyhere0 commented 1 year ago

What are you trying to reward players? If you're trying to reward gems, unfortunately that is not supported, as it will only run commands that you'd be able to yourself in chat.

UBSMentis commented 1 year ago

i want to set the command /case add 10 %player% 1, this is the command for giving players cases for the CaseOpening. but every test dosnt work and give that player the chests. i want to set the command every 10 waves but i dont know how to set the command with the EX and < or 15-20.i am very confused with ways to set, i need an example to set it. in the right possion every 10 Waves.

Theguyhere0 commented 1 year ago

Can you confirm that the command /case add 10 [player name] 1 works when you type it in yourself in chat?

I tested with this command on the latest production build and it worked fine. If you want this command to fire after players complete wave 10, 20, 30, etc., then just replace "1:" with "10:", etc. up to probably wave 50 ish. image

Let me know if you still have questions here. If you're still having problems, can you screenshot the customEffects.yml file that has the relevant commands?

UBSMentis commented 1 year ago

Yes the /case add 10 %player% 1 command is correct. I test it no lie the picture but only the /msg command works command The case command will not be performed