mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
update comments and player-stats.yml
This commit is contained in:
parent
ecf0515149
commit
e528cc925a
@ -11,11 +11,20 @@ import net.Indyuce.mmocore.api.player.PlayerData;
|
|||||||
|
|
||||||
public class VanillaExperienceOverride implements Listener {
|
public class VanillaExperienceOverride implements Listener {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* when picking up exp orbs or any action like that
|
||||||
|
*/
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void a(PlayerExpChangeEvent event) {
|
public void a(PlayerExpChangeEvent event) {
|
||||||
event.setAmount(0);
|
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
|
@EventHandler
|
||||||
public void b(EnchantItemEvent event) {
|
public void b(EnchantItemEvent event) {
|
||||||
Bukkit.getScheduler().runTask(MMOCore.plugin, () -> event.getEnchanter().setLevel(PlayerData.get(event.getEnchanter()).getLevel()));
|
Bukkit.getScheduler().runTask(MMOCore.plugin, () -> event.getEnchanter().setLevel(PlayerData.get(event.getEnchanter()).getLevel()));
|
||||||
|
@ -202,7 +202,7 @@ items:
|
|||||||
- '✦ Attack Speed: &c{attack_speed} &7(&c{attack_speed_base}&7+&c{attack_speed_extra}&7)'
|
- '✦ 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)'
|
- '❤ 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: &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)'
|
- '❖ Armor Toughness: &c{armor_toughness} &7(&c{armor_toughness_base}&7+&c{armor_toughness_extra}&7)'
|
||||||
|
Loading…
Reference in New Issue
Block a user