Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BloodFX 1.1.0

An advanced blood spray plugin - fully customizable!! :D (You will love it!!)

New API documentation (For v1.1.0)
There is only one method to use with:
PHP:
sprayBlood(Entity $entity, (int) $damage=2, (string) $entity_name)
To access, you have to put these code into onEnable() method of your main class:
PHP:
private $blood false;

public function 
onEnable(){
    
$this->bloodfx $this->getServer()->getPluginManager()->getPlugin("BloodFX");
    if(
$this->bloodfx !== null){
        
$this->blood true;
        
$this->getLogger()->info("Loaded with BloodFX!");
    }
}

public function 
getBloodFX(){
    if(
$this->blood !== false){
        return 
$this->blood;
    }
    return 
null;
}
For example to use the sprayBlood() method, do it like this:
PHP:
if($this->getBloodFX() !== null){
    
$this->getBloodFX()->getInstance()->sprayBlood($entity_object2"squid");
}
Advertisement