update comments and player-stats.yml

This commit is contained in:
Indyuce 2019-09-01 18:27:01 +02:00
parent ecf0515149
commit e528cc925a
2 changed files with 10 additions and 1 deletions

View File

@ -11,11 +11,20 @@ import net.Indyuce.mmocore.api.player.PlayerData;
public class VanillaExperienceOverride implements Listener {
/*
* when picking up exp orbs or any action like that
*/
@EventHandler
public void a(PlayerExpChangeEvent event) {
event.setAmount(0);
}
/*
* this event is not supported by the expChangeEvent. since the event is
* actually called before applying the enchant and consuming levels, we must
* update the player level using a delayed task. setExpLevelCost(level) DOES
* NOT WORK
*/
@EventHandler
public void b(EnchantItemEvent event) {
Bukkit.getScheduler().runTask(MMOCore.plugin, () -> event.getEnchanter().setLevel(PlayerData.get(event.getEnchanter()).getLevel()));

View File

@ -202,7 +202,7 @@ items:
- '✦ Attack Speed: &c{attack_speed} &7(&c{attack_speed_base}&7+&c{attack_speed_extra}&7)'
- ''
- '❤ Max Health: &c{max_health} &7(&c{max_health_base}&7+&c{max_health_extra}&7)'
- '❤ Health Regen: &c{attack_speed} &7(&c{attack_speed_base}&7+&c{attack_speed_extra}&7)'
- '❤ Health Regen: &c{health_regeneration} &7(&c{health_regeneration_base}&7+&c{health_regeneration_extra}&7)'
- ''
- '❖ Armor: &c{armor} &7(&c{armor_base}&7+&c{armor_extra}&7)'
- '❖ Armor Toughness: &c{armor_toughness} &7(&c{armor_toughness_base}&7+&c{armor_toughness_extra}&7)'