mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed Tree Feller not playing nice with NoCheat
This commit is contained in:
parent
7003311b7e
commit
c942feb868
@ -1,5 +1,6 @@
|
||||
Changelog:
|
||||
#Versions without changelogs probably had very small misc fixes, like tweaks to the source code
|
||||
|
||||
Version 1.3.00-dev
|
||||
- Fixed /mcability not respecting permissions
|
||||
- Changed to use Bukkit's built-in ignoreCancelledEvents system
|
||||
@ -7,6 +8,8 @@ Version 1.3.00-dev
|
||||
- Added configuration option to control mcMMO reporting damage events
|
||||
- Added hunger regain bonuses to Herbalism skill
|
||||
- Changed chat logging for /p & /a
|
||||
- Fixed Tree Feller not playing nice with NoCheat
|
||||
- Added framework for new Blast Mining skill
|
||||
|
||||
Version 1.2.12
|
||||
- Fixed issue that caused terrible MySQL performance and negative XP on levelup (Issue #134)
|
||||
@ -19,7 +22,6 @@ Version 1.2.12
|
||||
- Fixed config.yml not having values for End Stone & other new mining blocks
|
||||
- Fixed Green Thumb/Green Terra not correctly planting wheat (Issue #133)
|
||||
|
||||
|
||||
Version 1.2.11
|
||||
- Removed legacy Permission & PEX dependency. (PEX still works fine with mcMMO)
|
||||
- Made Smooth Brick to Mossy Brick and Dirt to Grass for green thumb configurable (Issue #120)
|
||||
|
8
pom.xml
8
pom.xml
@ -3,10 +3,10 @@
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/TheYeti/mcMMO</url>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<issueManagement>
|
||||
<system>GitHub</system>
|
||||
<url>https://github.com/TheYeti/mcMMO/issues</url>
|
||||
<url>http://issues.mcmmo.org</url>
|
||||
<system>JIRA</system>
|
||||
</issueManagement>
|
||||
<build>
|
||||
<finalName>mcMMO</finalName>
|
||||
@ -121,5 +121,5 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<version>2.0.00-dev</version>
|
||||
<version>1.3.00-dev</version>
|
||||
</project>
|
||||
|
@ -93,11 +93,11 @@ public class mcBlockListener implements Listener
|
||||
if (id == 17 || id == 73 || id == 74 || id == 81 || id == 83 || id == 86 || id == 91 || id == 106 || id == 98)
|
||||
plugin.misc.blockWatchList.add(block);
|
||||
else {
|
||||
//block.setData((byte) 5); //Change the byte
|
||||
block.setData((byte) 5); //Change the byte
|
||||
//The following is a method to get around a breakage in 1.1-R2 and onward
|
||||
//it should be removed as soon as functionality to change a block
|
||||
//in this event returns.
|
||||
plugin.changeQueue.push(block);
|
||||
// plugin.changeQueue.push(block);
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,10 +151,10 @@ public class mcBlockListener implements Listener
|
||||
*/
|
||||
|
||||
//TNT removal checks - needed for Blast Mining
|
||||
if(block.getTypeId() == 46)
|
||||
{
|
||||
plugin.misc.tntTracker.remove(block);
|
||||
}
|
||||
// if(block.getTypeId() == 46 && inhand != )
|
||||
// {
|
||||
// plugin.misc.tntTracker.remove(block);
|
||||
// }
|
||||
|
||||
//Green Terra
|
||||
if(PP.getHoePreparationMode() && mcPermissions.getInstance().herbalismAbility(player) && block.getTypeId() == 59 && block.getData() == (byte) 0x07)
|
||||
@ -216,6 +216,9 @@ public class mcBlockListener implements Listener
|
||||
if(LoadProperties.spoutEnabled)
|
||||
SpoutStuff.playSoundForPlayer(SoundEffect.EXPLODE, player, block.getLocation());
|
||||
|
||||
PlayerAnimationEvent armswing = new PlayerAnimationEvent(player);
|
||||
Bukkit.getPluginManager().callEvent(armswing);
|
||||
|
||||
WoodCutting.treeFeller(block, player, plugin);
|
||||
for(Block blockx : plugin.misc.treeFeller)
|
||||
{
|
||||
@ -283,8 +286,6 @@ public class mcBlockListener implements Listener
|
||||
plugin.misc.blockWatchList.remove(block);
|
||||
}
|
||||
}
|
||||
|
||||
//System.out.println("DEBUG: "+event.isCancelled()+", BLOCK_TYPE: "+event.getBlock().getType().toString()+", BLOCK_DATA: "+event.getBlock().getData());
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
|
@ -240,7 +240,7 @@ public class mcEntityListener implements Listener
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler (priority = EventPriority.MONITOR)
|
||||
@EventHandler (priority = EventPriority.LOW)
|
||||
public void onFoodLevelChange(FoodLevelChangeEvent event)
|
||||
{
|
||||
if(event.getEntity() instanceof Player)
|
||||
|
Loading…
Reference in New Issue
Block a user