Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Conflicts:
	src/main/java/com/crimsonrpg/admin/listeners/CAEntityListener.java
  • Loading branch information
macalinao committed Nov 27, 2011
2 parents e4aeda8 + 172a6dc commit c4df6f7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -15,6 +15,7 @@

import com.crimsonrpg.admin.CrimsonAdmin;
import com.crimsonrpg.items.api.ItemAPI;
import org.bukkit.Location;

/**
*
Expand Down Expand Up @@ -47,6 +48,8 @@ public void onEntityDamage(EntityDamageEvent event) {

if (entity instanceof Player) {
SpoutPlayer target = (SpoutPlayer) event.getEntity();
Location loc = new Location(target.getWorld(), target.getLocation().getBlockX(), target.getLocation().getBlockY(), target.getLocation().getBlockZ());
SpoutManager.getSoundManager().playGlobalCustomSoundEffect(ca, "http://resources.crimsonrpg.com/s/audio/BanHammerAudio.ogg", true, loc);
target.setBanned(true);
target.kickPlayer("Teh BanHammer haz spokez!! :D");
event.setCancelled(true);
Expand Down

0 comments on commit c4df6f7

Please sign in to comment.