mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Whoops. Can't initialize something that doesn't exist.
This commit is contained in:
parent
f3074461ed
commit
7d05d53f9e
@ -41,8 +41,6 @@ import org.getspout.spoutapi.sound.SoundEffect;
|
|||||||
|
|
||||||
public class BlockListener implements Listener {
|
public class BlockListener implements Listener {
|
||||||
private final mcMMO plugin;
|
private final mcMMO plugin;
|
||||||
private static Config configInstance = Config.getInstance();
|
|
||||||
private static Permissions permInstance = Permissions.getInstance();
|
|
||||||
|
|
||||||
public BlockListener(final mcMMO plugin) {
|
public BlockListener(final mcMMO plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
@ -95,6 +93,8 @@ public class BlockListener implements Listener {
|
|||||||
*/
|
*/
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onBlockPlace(BlockPlaceEvent event) {
|
public void onBlockPlace(BlockPlaceEvent event) {
|
||||||
|
Config configInstance = Config.getInstance();
|
||||||
|
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
int id = block.getTypeId();
|
int id = block.getTypeId();
|
||||||
@ -136,6 +136,9 @@ public class BlockListener implements Listener {
|
|||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
ItemStack inHand = player.getItemInHand();
|
ItemStack inHand = player.getItemInHand();
|
||||||
|
|
||||||
|
Config configInstance = Config.getInstance();
|
||||||
|
Permissions permInstance = Permissions.getInstance();
|
||||||
|
|
||||||
if (event instanceof FakeBlockBreakEvent) {
|
if (event instanceof FakeBlockBreakEvent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -225,6 +228,9 @@ public class BlockListener implements Listener {
|
|||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
Material material = block.getType();
|
Material material = block.getType();
|
||||||
|
|
||||||
|
Config configInstance = Config.getInstance();
|
||||||
|
Permissions permInstance = Permissions.getInstance();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ABILITY PREPARATION CHECKS
|
* ABILITY PREPARATION CHECKS
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user