Permalink
Browse files

Preparing for a bugfix release. Also made sure mcMMO saves info on

shutdown.
  • Loading branch information...
nossr50 committed Feb 11, 2012
1 parent 3d60c05 commit 70756c2a2ef5c003c9b536e958128ab4795b28b7
View
@@ -1,12 +1,17 @@
Changelog:
#Versions without changelogs probably had very small misc fixes, like tweaks to the source code
-Version 2.0-dev
+Version 1.2.11
- Removed legacy Permission & PEX support. SuperPerms support only now.
- - Added framework for new Mining sub-skill: Blast Mining.
- Made Smooth Brick to Mossy Brick and Dirt to Grass for green thumb configurable (Issue #120)
- - Changed mcMMO to save data periodically to optimize performance with FlatFile & MySQL
+ - Added MagmaCube to XP tables
+ - Made optimizations to Skull Splitter/Serrated Strikes
+ - Made it so players take damage if they try to log out with Serrated Strikes stacked onto them (Issue #131)
+ - Changed mcMMO to save data periodically to optimize performance with FlatFile & MySQL (Issue #138)
- Added a configurable save interval for the new save system
+ - Fixed a bug with the odds calculations for Serrated Strikes
+ - Fixed several commands not working from console (mmoedit, etc..) (Issue #150)
+ - Added a success message when executing xprate from console
Version 1.2.10
- Fixed issue with receiving Woodcutting XP for all blocks broken (Issue #103)
View
@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
- <version>2.0-dev</version>
+ <version>1.2.11</version>
<name>mcMMO</name>
<url>https://github.com/TheYeti/mcMMO</url>
<issueManagement>
@@ -118,12 +118,6 @@ public static void combatChecks(EntityDamageEvent event, mcMMO pluginx)
int xp = (int) (xpinc * 2 * LoadProperties.pvpxprewardmodifier);
- if(xp < 0)
- {
- //Debug messages here
- xp = Math.abs(xp); //Temporary fix
- }
-
if(m.isAxes(attacker.getItemInHand()) && mcPermissions.getInstance().axes(attacker))
PPa.addXP(SkillType.AXES, xp*10, attacker);
if(m.isSwords(attacker.getItemInHand()) && mcPermissions.getInstance().swords(attacker))
@@ -84,7 +84,7 @@ public void onEntityDamage(EntityDamageEvent event)
/*
* Demolitions Expert
- */
+
if(event.getCause() == DamageCause.BLOCK_EXPLOSION)
{
if(event.getEntity() instanceof Player)
@@ -93,6 +93,7 @@ public void onEntityDamage(EntityDamageEvent event)
BlastMining.demolitionsExpertise(player, event);
}
}
+ */
if(event.getEntity() instanceof LivingEntity)
{
@@ -213,6 +214,7 @@ public void onCreatureSpawn(CreatureSpawnEvent event)
}
}
+ /*
@EventHandler (priority = EventPriority.LOW)
public void onExplosionPrime(ExplosionPrimeEvent event)
{
@@ -228,6 +230,7 @@ public void onExplosionPrime(ExplosionPrimeEvent event)
}
}
+
@EventHandler (priority = EventPriority.LOW)
public void onEnitityExplode(EntityExplodeEvent event)
{
@@ -242,7 +245,8 @@ public void onEnitityExplode(EntityExplodeEvent event)
}
}
}
-
+ */
+
public boolean isBow(ItemStack is){
if (is.getTypeId() == 261){
return true;
@@ -166,17 +166,6 @@ public void onEnable()
FileManager FM = SpoutManager.getFileManager();
FM.addToPreLoginCache(this, SpoutStuff.getFiles());
-
- /*
- Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this,
- new Runnable() {
-
- @Override
- public void run() {
- mmoHelper.updateAll();
- }
- }, 20, 20);
- */
}
}
@@ -239,9 +228,17 @@ public static boolean inParty(Player player){
return PP.inParty();
}
- public void onDisable() {
- Bukkit.getServer().getScheduler().cancelTasks(this);
- System.out.println("mcMMO was disabled.");
+ public void onDisable()
+ {
+ //Make sure to save player information if the server shuts down
+ for(Player x : Bukkit.getServer().getOnlinePlayers())
+ {
+ Users.getProfile(x).save();
+ }
+
+ Bukkit.getServer().getScheduler().cancelTasks(this); //This removes our tasks
+
+ System.out.println("mcMMO was disabled."); //How informative!
}
private void registerCommands() {

0 comments on commit 70756c2

Please sign in to comment.