Removed files

This commit is contained in:
travja 2013-03-20 15:34:45 -06:00
parent 3975ee193e
commit 3bd1f1f87a
27 changed files with 0 additions and 51 deletions

View File

@ -1,25 +0,0 @@
package me.Travja.HungerArena;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
public class Blocks implements Listener {
public Main plugin;
public Blocks(Main m) {
this.plugin = m;
}
@EventHandler
public void BreakBlock(BlockBreakEvent event){
Player p = event.getPlayer();
String pname = p.getDisplayName();
if(plugin.Playing.contains(pname)){
if(plugin.config.getString("Protected_Arena").equalsIgnoreCase("True")){
event.setCancelled(true);
p.sendMessage(ChatColor.RED + "You can't break blocks when you're playing!");
}
}
}
}

View File

@ -1,26 +0,0 @@
package me.Travja.HungerArena;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
public class Blocks implements Listener {
public Main plugin;
public Blocks(Main m) {
this.plugin = m;
}
@EventHandler
public void BreakBlock(BlockBreakEvent event){
Player p = event.getPlayer();
String pname = p.getDisplayName();
if(plugin.Playing.contains(pname)){
if(plugin.config.getString("Protected_Arena").equalsIgnoreCase("True")){
event.setCancelled(true);
p.sendMessage(ChatColor.RED + "You can't break blocks when you're playing!");
}
}
}
}