Classic Scaling is now Retro Mode to avoid confusion

This commit is contained in:
nossr50
2019-01-12 22:14:23 -08:00
parent cde11b64ed
commit a21b4585c5
7 changed files with 20 additions and 12 deletions

View File

@ -19,12 +19,15 @@ import java.util.List;
/**
* This is the command that retrieves data about skills from in-game sources
*/
public class MmoInfo implements TabExecutor {
public class MmoInfoCommand implements TabExecutor {
@Override
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] args) {
if(commandSender instanceof Player)
{
if(args.length < 1)
return false;
Player player = (Player) commandSender;
if(Permissions.mmoinfo(player))
{

View File

@ -246,13 +246,13 @@ public class Config extends AutoUpdateConfigLoader {
/* General Settings */
//Classic mode will default the value to true if the config file doesn't contain the entry (server is from a previous mcMMO install)
public boolean getUseOldLevelScaling() { return config.getBoolean("General.UseOldLevelScaling", true); }
public boolean getUseOldLevelScaling() { return config.getBoolean("General.RetroMode", true); }
//XP needed to level is multiplied by this when using classic mode
public int getClassicModeXPFormulaFactor() { return config.getInt("General.Skill_Scaling.Classic_XP_Formula_Factor", 1); }
public int getClassicModeXPFormulaFactor() { return config.getInt("General.Skill_Scaling.RetroMode_XP_Formula_Factor", 1); }
//Level requirements for subskills is multiplied by this when using classic mode
public int getClassicModeLevelReqFactor() { return config.getInt("General.Skill_Scaling.Classic_LevelReq_Factor", 10); }
public int getClassicModeLevelReqFactor() { return config.getInt("General.Skill_Scaling.RetroMode_LevelReq_Factor", 10); }
public String getLocale() { return config.getString("General.Locale", "en_us"); }
public boolean getMOTDEnabled() { return config.getBoolean("General.MOTD_Enabled", true); }

View File

@ -516,6 +516,10 @@ public class McMMOPlayer {
SoundManager.sendSound(player, player.getLocation(), SoundType.LEVEL_UP);
}
/*
* Check to see if the player unlocked any new skills
*/
NotificationManager.sendPlayerLevelUpNotification(UserManager.getPlayer(player), primarySkill, profile.getSkillLevel(primarySkill));
}

View File

@ -162,7 +162,7 @@ public final class CommandRegistrationManager {
command.setPermission("mcmmo.commands.mmoinfo");
command.setPermissionMessage(permissionsMessage);
command.setUsage(LocaleLoader.getString("Commands.Usage.1", "mmoinfo", "[" + LocaleLoader.getString("Commands.Usage.SubSkill") + "]"));
command.setExecutor(new MmoInfo());
command.setExecutor(new MmoInfoCommand());
}
private static void registerMcChatSpyCommand() {