/[projects]/miscJava/hmod-minecraft-plugins/hoeruputils/src/AdminDestroy.java
ViewVC logotype

Diff of /miscJava/hmod-minecraft-plugins/hoeruputils/src/AdminDestroy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

miscJava/minecraft-plugins/hoeruputils/src/AdminDestroy.java revision 1196 by torben, Sat Nov 20 08:59:03 2010 UTC miscJava/hmod-minecraft-plugins/hoeruputils/src/AdminDestroy.java revision 1234 by torben, Sun Mar 20 13:39:37 2011 UTC
# Line 4  import java.util.*; Line 4  import java.util.*;
4    
5  public class AdminDestroy  extends PluginListener {      public class AdminDestroy  extends PluginListener {    
6    
7          final static Logger log = Logger.getLogger("HoerupUtils");          final static Logger log = Logger.getLogger("Minecraft");
8    
9          //private boolean adminDestroy = false;          //private boolean adminDestroy = false;
10          private Set<String> adminDestroyers = new HashSet<String>();          private Set<String> adminDestroyers = new HashSet<String>();
# Line 19  public class AdminDestroy  extends Plugi Line 19  public class AdminDestroy  extends Plugi
19    
20          @Override          @Override
21          public boolean onBlockDestroy(Player player, Block block) {          public boolean onBlockDestroy(Player player, Block block) {
22                  if (player.isAdmin() && adminDestroyers.contains(player.getName() ) ) {                  if (adminDestroyers.contains(player.getName() ) ) {
23                          if (player.getItemInHand() == HAND_EMPTY) {                          if (player.getItemInHand() == HAND_EMPTY) {
24    
25                                  int oldType = block.getType();                                  int oldType = block.getType();

Legend:
Removed from v.1196  
changed lines
  Added in v.1234

  ViewVC Help
Powered by ViewVC 1.1.20