mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Preparing for a bugfix release. Also made sure mcMMO saves info on
shutdown.
This commit is contained in:
parent
3d60c057ea
commit
70756c2a2e
@ -1,12 +1,17 @@
|
|||||||
Changelog:
|
Changelog:
|
||||||
#Versions without changelogs probably had very small misc fixes, like tweaks to the source code
|
#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.
|
- 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)
|
- 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
|
- 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
|
Version 1.2.10
|
||||||
- Fixed issue with receiving Woodcutting XP for all blocks broken (Issue #103)
|
- Fixed issue with receiving Woodcutting XP for all blocks broken (Issue #103)
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.0-dev</version>
|
<version>1.2.11</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/TheYeti/mcMMO</url>
|
<url>https://github.com/TheYeti/mcMMO</url>
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
|
@ -118,12 +118,6 @@ public class Combat
|
|||||||
|
|
||||||
int xp = (int) (xpinc * 2 * LoadProperties.pvpxprewardmodifier);
|
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))
|
if(m.isAxes(attacker.getItemInHand()) && mcPermissions.getInstance().axes(attacker))
|
||||||
PPa.addXP(SkillType.AXES, xp*10, attacker);
|
PPa.addXP(SkillType.AXES, xp*10, attacker);
|
||||||
if(m.isSwords(attacker.getItemInHand()) && mcPermissions.getInstance().swords(attacker))
|
if(m.isSwords(attacker.getItemInHand()) && mcPermissions.getInstance().swords(attacker))
|
||||||
|
@ -84,7 +84,7 @@ public class mcEntityListener implements Listener
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Demolitions Expert
|
* Demolitions Expert
|
||||||
*/
|
|
||||||
if(event.getCause() == DamageCause.BLOCK_EXPLOSION)
|
if(event.getCause() == DamageCause.BLOCK_EXPLOSION)
|
||||||
{
|
{
|
||||||
if(event.getEntity() instanceof Player)
|
if(event.getEntity() instanceof Player)
|
||||||
@ -93,6 +93,7 @@ public class mcEntityListener implements Listener
|
|||||||
BlastMining.demolitionsExpertise(player, event);
|
BlastMining.demolitionsExpertise(player, event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if(event.getEntity() instanceof LivingEntity)
|
if(event.getEntity() instanceof LivingEntity)
|
||||||
{
|
{
|
||||||
@ -213,6 +214,7 @@ public class mcEntityListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
@EventHandler (priority = EventPriority.LOW)
|
@EventHandler (priority = EventPriority.LOW)
|
||||||
public void onExplosionPrime(ExplosionPrimeEvent event)
|
public void onExplosionPrime(ExplosionPrimeEvent event)
|
||||||
{
|
{
|
||||||
@ -228,6 +230,7 @@ public class mcEntityListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@EventHandler (priority = EventPriority.LOW)
|
@EventHandler (priority = EventPriority.LOW)
|
||||||
public void onEnitityExplode(EntityExplodeEvent event)
|
public void onEnitityExplode(EntityExplodeEvent event)
|
||||||
{
|
{
|
||||||
@ -242,6 +245,7 @@ public class mcEntityListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
public boolean isBow(ItemStack is){
|
public boolean isBow(ItemStack is){
|
||||||
if (is.getTypeId() == 261){
|
if (is.getTypeId() == 261){
|
||||||
|
@ -166,17 +166,6 @@ public class mcMMO extends JavaPlugin
|
|||||||
|
|
||||||
FileManager FM = SpoutManager.getFileManager();
|
FileManager FM = SpoutManager.getFileManager();
|
||||||
FM.addToPreLoginCache(this, SpoutStuff.getFiles());
|
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 class mcMMO extends JavaPlugin
|
|||||||
return PP.inParty();
|
return PP.inParty();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDisable() {
|
public void onDisable()
|
||||||
Bukkit.getServer().getScheduler().cancelTasks(this);
|
{
|
||||||
System.out.println("mcMMO was disabled.");
|
//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() {
|
private void registerCommands() {
|
||||||
|
Loading…
Reference in New Issue
Block a user