-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
when u switch dimensions your health goes back to 10 hearths
plase fix it
@eventhandler
public void onWorldSwitch(PlayerChangedWorldEvent event) {
Player player = event.getPlayer();
World fromWorld = event.getFrom();
World toWorld = player.getLocation().getWorld();
List<String> worldWhitelist = plugin.getConfig().getStringList("worlds");
if (worldWhitelist.contains(toWorld.getName())) {
handleWhitelistedWorld(player, fromWorld, worldWhitelist);
} else {
**LifeStealZ.setMaxHealth(player, 20.0);**
}
}
Expected behavior
when u go to a difrent dimension hp goes back to 10 full hearths
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working