add ActionBar with health & mana
This commit is contained in:
parent
75d89e7974
commit
8111b2b8f2
3 changed files with 20 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
package me.unurled.sacredrealms.sr.components.player;
|
||||
|
||||
import static me.unurled.sacredrealms.sr.utils.Logger.error;
|
||||
import static me.unurled.sacredrealms.sr.utils.SRPlayerUtils.updateActionBar;
|
||||
|
||||
import com.destroystokyo.paper.event.player.PlayerArmorChangeEvent;
|
||||
import com.google.gson.Gson;
|
||||
|
@ -100,6 +101,8 @@ public class PlayerManager extends Manager {
|
|||
e.getPlayer().getInventory().clear();
|
||||
e.getPlayer().getInventory().setContents(srPlayer.getInventory().getContents());
|
||||
|
||||
updateActionBar(e.getPlayer(), srPlayer);
|
||||
|
||||
e.getPlayer().updateInventory();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue