Kick function is not working properly as it used too.
Will crash the whole server when executed.
Picture of console error; http://prntscr.com/5fvdrh
It worked fine in older builds such as #650
It seems like you are kicking the player between some special calls, could you point out on which event?
Possible fix for #2394
Here is the code.
It works perfectly for me :/
Its not only me, Some people where complaining about this problem on a similar plugin too (http://forums.pocketmine.net/threads/advertisingkick.4311/) that worked fine in older builds such as #650. Im not sure if its the same cause but something seems to be wrong with the kick function.
Mabe something related with kicking a player on player interact event?
I can give you the plugin if you want.
Ok it seems like its starting to work again with the latest possible fix. :D