Examples of SignEntry


Examples of uk.co.oliwali.HawkEye.entry.SignEntry

  @HawkEvent(dataType = DataType.BLOCK_BREAK)
  public void onBlockBreak(BlockBreakEvent event) {
    Block block = event.getBlock();
    if (block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST)
      DataManager.addEntry(new SignEntry(event.getPlayer(), DataType.SIGN_BREAK, event.getBlock()));
    else
      DataManager.addEntry(new BlockEntry(event.getPlayer(), DataType.BLOCK_BREAK, block));
  }
View Full Code Here

Examples of uk.co.oliwali.HawkEye.entry.SignEntry

    DataManager.addEntry(new BlockChangeEntry(event.getPlayer(), DataType.BLOCK_PLACE, block.getLocation(), event.getBlockReplacedState(), block.getState()));
  }

  @HawkEvent(dataType = DataType.SIGN_PLACE)
  public void onSignChange(SignChangeEvent event) {
    DataManager.addEntry(new SignEntry(event.getPlayer(), DataType.SIGN_PLACE, event.getBlock(), event.getLines()));
  }
View Full Code Here

Examples of uk.co.oliwali.HawkEye.entry.SignEntry

    Block block = event.getBlock();

    // Enderman picking up block
    if (event.getTo() == Material.AIR && Config.isLogged(DataType.ENDERMAN_PICKUP)) {
      if (block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST)
        DataManager.addEntry(new SignEntry("Environment", DataType.SIGN_BREAK, event.getBlock()));
      DataManager.addEntry(new BlockEntry("Environment", DataType.ENDERMAN_PICKUP, block));
    } else if (Config.isLogged(DataType.ENDERMAN_PLACE)) {
      // Enderman placing block
      Enderman enderman = (Enderman) event.getEntity();
      BlockState newState = block.getState();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.