Expected result: What were you expecting to happen?
I coded a Custom Xp Bottle and it uses "addXp()" to add the Xp to the player. However this doenst work. In the past it was working but it suddenly stopped working and I have no clue why.
Actual result: What actually happened?
The "addXp()" doenst add the experience to the player.
"$player->getXpManager()->addXp($amount);".
Steps to reproduce the issue
...
...
OS and versions
PocketMine-MP:4.80
PHP:???
Using JIT: yes/no (delete as appropriate)
Server OS:
Game version: Android
Plugins
If you remove all plugins, does the issue still occur?
It's in my core so I honestly have no clue. My guess is yes.
If the issue is not reproducible without plugins:
Have you asked for help on our forums before creating an issue?
Yes
Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section
public function onItemUse(PlayerItemUseEvent $event): void{
Issue description
Expected result: What were you expecting to happen? I coded a Custom Xp Bottle and it uses "addXp()" to add the Xp to the player. However this doenst work. In the past it was working but it suddenly stopped working and I have no clue why.
Actual result: What actually happened? The "addXp()" doenst add the experience to the player. "$player->getXpManager()->addXp($amount);".
Steps to reproduce the issue
OS and versions
Plugins
It's in my core so I honestly have no clue. My guess is yes.
public function onItemUse(PlayerItemUseEvent $event): void{
} }
Crashdump, backtrace or other files
There is no crash error.
(Sorry if I haven't provided enough information on this)