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

@ -10,7 +10,7 @@ Key:
Version 2.1.0 Version 2.1.0
+ Prevented exploits involving blocks made from entities (snowmen, etc..) + Prevented exploits involving blocks made from entities (snowmen, etc..)
+ Added JSON integration to all Skill Commands + Added JSON integration to all Skill Commands
+ Added config setting to enable or disable old mcMMO skill scaling (General.UseOldLevelScaling) this is on by default for existing installs + Added config setting to enable or disable old mcMMO skill scaling (General.RetroMode) this is on by default for existing installs
+ You can now disable specific skills in coreskills.yml without the need for permissions + You can now disable specific skills in coreskills.yml without the need for permissions
+ Added links to mcMMO related websites to various commands + Added links to mcMMO related websites to various commands
+ Certain elements of mcMMO's UI have been restyled + Certain elements of mcMMO's UI have been restyled
@ -20,12 +20,13 @@ Version 2.1.0
+ (Skills) Tool alerts now are sent to the Action Bar + (Skills) Tool alerts now are sent to the Action Bar
+ (Skills) Super Ability activation alerts are now sent to the Action Bar + (Skills) Super Ability activation alerts are now sent to the Action Bar
+ (Skills) Certain Skill messages are now sent to the Action Bar + (Skills) Certain Skill messages are now sent to the Action Bar
+ (Config) Skill Ranks are now defined in skillranks.yml if a skill does not have a rank it's unlocked right away
+ (Config) Added option to use SSL for MySQL in config.yml + (Config) Added option to use SSL for MySQL in config.yml
+ (Config) Added option to disable the new URL links to config.yml + (Config) Added option to disable the new URL links to config.yml
+ (Config) New config file added coreskills.yml + (Config) New config file added coreskills.yml
+ (Config) Added rank settings for the new Woodcutting skill + (Config) Added rank settings for the new Woodcutting skill
+ (Config) Added configurable parameters for the new Tree Feller + (Config) Added configurable parameters for the new Tree Feller
+ (Config) Added classic toggle for Tree Feller + (Config) Added retro toggle for Tree Feller
+ (Config) Added toggle to disable all scoreboards + (Config) Added toggle to disable all scoreboards
+ (Chat) Added ability for admins to spy on party chat (off unless toggled on) + (Chat) Added ability for admins to spy on party chat (off unless toggled on)
+ (Commands) Added new info command /mmoinfo or /mcinfo + (Commands) Added new info command /mmoinfo or /mcinfo

View File

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

View File

@ -246,13 +246,13 @@ public class Config extends AutoUpdateConfigLoader {
/* General Settings */ /* 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) //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 //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 //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 String getLocale() { return config.getString("General.Locale", "en_us"); }
public boolean getMOTDEnabled() { return config.getBoolean("General.MOTD_Enabled", true); } 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); 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)); 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.setPermission("mcmmo.commands.mmoinfo");
command.setPermissionMessage(permissionsMessage); command.setPermissionMessage(permissionsMessage);
command.setUsage(LocaleLoader.getString("Commands.Usage.1", "mmoinfo", "[" + LocaleLoader.getString("Commands.Usage.SubSkill") + "]")); 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() { private static void registerMcChatSpyCommand() {

View File

@ -12,13 +12,13 @@ General:
# Turning this on will scale mcMMO around 1-1000 with default scaling factor # Turning this on will scale mcMMO around 1-1000 with default scaling factor
# Everything in your config related to skill level requirements, skill level bonuses, etc will be multiplied by 10 when this mode is on # Everything in your config related to skill level requirements, skill level bonuses, etc will be multiplied by 10 when this mode is on
# This change is purely cosmetic, it retains the old feel of mcMMO where you could level up thousands of times # This change is purely cosmetic, it retains the old feel of mcMMO where you could level up thousands of times
UseOldLevelScaling: true RetroMode: true
Skill_Scaling: Skill_Scaling:
# This is the value that is skill level requirements are multiplied by in Classic Mode (Default is 10) # This is the value that is skill level requirements are multiplied by in Retro Mode (Default is 10)
Classic_LevelReq_Factor: 10 RetroMode_LevelReq_Factor: 10
# This is the value that the xp required to level is multiplied by when in classic mode # This is the value that the xp required to level is multiplied by when in Retro mode
# Default is 1 # Default is 1
Classic_XP_Formula_Factor: 1 RetroMode_XP_Formula_Factor: 1
Locale: en_US Locale: en_US
MOTD_Enabled: true MOTD_Enabled: true
# Send a message to the player when his profile was successfully loaded # Send a message to the player when his profile was successfully loaded

View File