mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-14 19:51:20 +01:00
Tweak the way SkillCommands are constructed.
This commit is contained in:
parent
d15e189b7c
commit
5b3b9fbc30
@ -13,8 +13,8 @@ public class AcrobaticsCommand extends SkillCommand {
|
|||||||
private boolean canRoll;
|
private boolean canRoll;
|
||||||
private boolean canGracefulRoll;
|
private boolean canGracefulRoll;
|
||||||
|
|
||||||
public AcrobaticsCommand(SkillType skill) {
|
public AcrobaticsCommand() {
|
||||||
super(skill);
|
super(SkillType.ACROBATICS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.gmail.nossr50;
|
package com.gmail.nossr50;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.datatypes.SkillType;
|
|
||||||
import com.gmail.nossr50.commands.skills.*;
|
import com.gmail.nossr50.commands.skills.*;
|
||||||
import com.gmail.nossr50.commands.spout.*;
|
import com.gmail.nossr50.commands.spout.*;
|
||||||
import com.gmail.nossr50.commands.mc.*;
|
import com.gmail.nossr50.commands.mc.*;
|
||||||
@ -285,7 +284,7 @@ public class mcMMO extends JavaPlugin {
|
|||||||
|
|
||||||
//Register commands
|
//Register commands
|
||||||
//Skills commands
|
//Skills commands
|
||||||
getCommand("acrobatics").setExecutor(new AcrobaticsCommand(SkillType.ACROBATICS));
|
getCommand("acrobatics").setExecutor(new AcrobaticsCommand());
|
||||||
getCommand("archery").setExecutor(new ArcheryCommand());
|
getCommand("archery").setExecutor(new ArcheryCommand());
|
||||||
getCommand("axes").setExecutor(new AxesCommand());
|
getCommand("axes").setExecutor(new AxesCommand());
|
||||||
getCommand("excavation").setExecutor(new ExcavationCommand());
|
getCommand("excavation").setExecutor(new ExcavationCommand());
|
||||||
|
Loading…
Reference in New Issue
Block a user