BoxOfDevs / Functions

Create your own commands with ease! For PocketMine, a Minecraft PE server software
Other
17 stars 11 forks source link

still unknown command when running custom commands #4

Closed kabluinc closed 7 years ago

kabluinc commented 7 years ago

So I did /function create lobby Then did /function ac lobby warp lobby I set perms for func.use.lobby and func.use.default

Still says unknown command when doing /lobby or ./lobby

Ad5001 commented 7 years ago

Hmmm.... Any message in the console?

kabluinc commented 7 years ago

Nope. Nothing in console. Just none of the commands created can ever be run. Just shows unknown command. Worked fine in 0.15

catgirlinspace commented 7 years ago

It's probably something with 0.16 then.

Ad5001 commented 7 years ago

Looks like PlayerCommandPreprocessEvent is no longer fired.

kabluinc commented 7 years ago

I did one thing as a test. I added one of the functions I create (lobby) to the plugin.yml like this


name: Functions author: Ad5001 version: "1.0" api:

After doing this the command /warp lobby that was added to the function "lobby" worked and I was able to run /lobby fine.

Adding all the functions created to the plugin.yml makes them work if not it just says unknown command

Ad5001 commented 7 years ago

I see... It's command registering for 0.16.

kabluinc commented 7 years ago

Can this be fixed?

Ad5001 commented 7 years ago

it could, but rn, I have some IRL things that makes me reaaaalllyyy buzy so coding & bug fixing is not my current priority.

Ad5001 commented 7 years ago

Fixed.