Search in sources :

Example 1 with SinglePickaxe

use of com.sk89q.worldedit.command.tool.SinglePickaxe in project FastAsyncWorldEdit by IntellectualSites.

the class SuperPickaxeCommands method single.

@Command(name = "single", desc = "Enable the single block super pickaxe mode")
@CommandPermissions("worldedit.superpickaxe")
public void single(Player player, LocalSession session) throws WorldEditException {
    session.setSuperPickaxe(new SinglePickaxe());
    session.enableSuperPickAxe();
    player.print(Caption.of("worldedit.tool.superpickaxe.mode.single"));
}
Also used : SinglePickaxe(com.sk89q.worldedit.command.tool.SinglePickaxe) Command(org.enginehub.piston.annotation.Command) CommandPermissions(com.sk89q.worldedit.command.util.CommandPermissions)

Aggregations

SinglePickaxe (com.sk89q.worldedit.command.tool.SinglePickaxe)1 CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 Command (org.enginehub.piston.annotation.Command)1