Don't do acrobatics when you don't have permission.

This commit is contained in:
t00thpick1 2013-05-13 20:50:38 -03:00
parent 0261d16140
commit c96df03341

View File

@ -171,6 +171,10 @@ public class EntityListener implements Listener {
switch (cause) {
case FALL:
if (!Permissions.skillEnabled(mcMMOPlayer.getPlayer(), SkillType.ACROBATICS)) {
break;
}
AcrobaticsManager acrobaticsManager = mcMMOPlayer.getAcrobaticsManager();
if (acrobaticsManager.canRoll()) {