mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-04-02 22:53:14 +00:00
- Removed unnecessary config options - Added config explanations - Fixed Typos - Minor code cleanup - Removed outdated, hardcoded, voxelwiki links - Minor message changes
36 lines
869 B
Java
36 lines
869 B
Java
package com.thevoxelbox.voxelsniper.brush;
|
|
|
|
import com.thevoxelbox.voxelsniper.Message;
|
|
import com.thevoxelbox.voxelsniper.SnipeData;
|
|
|
|
/**
|
|
* @author Gavjenks
|
|
*/
|
|
public class LightningBrush extends Brush {
|
|
|
|
public LightningBrush() {
|
|
this.setName("Lightning");
|
|
}
|
|
|
|
@Override
|
|
public final void info(final Message vm) {
|
|
vm.brushName(this.getName());
|
|
vm.brushMessage("Lightning Brush! Please use in moderation.");
|
|
}
|
|
|
|
@Override
|
|
protected final void arrow(final SnipeData v) {
|
|
this.getWorld().strikeLightning(this.getTargetBlock().getLocation());
|
|
}
|
|
|
|
@Override
|
|
protected final void powder(final SnipeData v) {
|
|
this.getWorld().strikeLightning(this.getTargetBlock().getLocation());
|
|
}
|
|
|
|
@Override
|
|
public String getPermissionNode() {
|
|
return "voxelsniper.brush.lightning";
|
|
}
|
|
}
|