mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
毎日...
This commit is contained in:
parent
9b3091add4
commit
509ca5ae7f
@ -85,6 +85,7 @@ public final class Motd {
|
|||||||
*/
|
*/
|
||||||
public static void displayXpPerks(Player player) {
|
public static void displayXpPerks(Player player) {
|
||||||
for (PrimarySkillType skill : PrimarySkillType.values()) {
|
for (PrimarySkillType skill : PrimarySkillType.values()) {
|
||||||
|
//TODO: Wow this is horrifying...
|
||||||
if (PerksUtils.handleXpPerks(player, 1, skill) > 1) {
|
if (PerksUtils.handleXpPerks(player, 1, skill) > 1) {
|
||||||
player.sendMessage(PERK_PREFIX + LocaleLoader.getString("Effects.Template", LocaleLoader.getString("Perks.XP.Name"), LocaleLoader.getString("Perks.XP.Desc")));
|
player.sendMessage(PERK_PREFIX + LocaleLoader.getString("Effects.Template", LocaleLoader.getString("Perks.XP.Name"), LocaleLoader.getString("Perks.XP.Desc")));
|
||||||
return;
|
return;
|
||||||
|
@ -50,7 +50,7 @@ public final class PerksUtils {
|
|||||||
double originalXP = xp;
|
double originalXP = xp;
|
||||||
|
|
||||||
if (Permissions.customXpBoost(player, skill)) {
|
if (Permissions.customXpBoost(player, skill)) {
|
||||||
if(UserManager.getPlayer(player).isDebugMode()) {
|
if(UserManager.getPlayer(player) != null && UserManager.getPlayer(player).isDebugMode()) {
|
||||||
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.DARK_GRAY + "XP Perk Multiplier IS CUSTOM! ");
|
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.DARK_GRAY + "XP Perk Multiplier IS CUSTOM! ");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public final class PerksUtils {
|
|||||||
|
|
||||||
float modifiedXP = (float) (xp * modifier);
|
float modifiedXP = (float) (xp * modifier);
|
||||||
|
|
||||||
if(UserManager.getPlayer(player).isDebugMode()) {
|
if(UserManager.getPlayer(player) != null && UserManager.getPlayer(player).isDebugMode()) {
|
||||||
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.RESET + "XP Perk Multiplier - " + ChatColor.GREEN + modifier);
|
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.RESET + "XP Perk Multiplier - " + ChatColor.GREEN + modifier);
|
||||||
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.RESET + "Original XP before perk boosts " + ChatColor.DARK_GRAY + originalXP);
|
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.RESET + "Original XP before perk boosts " + ChatColor.DARK_GRAY + originalXP);
|
||||||
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.RESET + "XP AFTER PERKS " + ChatColor.RED + modifiedXP);
|
player.sendMessage(ChatColor.GOLD + "[DEBUG] " + ChatColor.RESET + "XP AFTER PERKS " + ChatColor.RED + modifiedXP);
|
||||||
|
Loading…
Reference in New Issue
Block a user