mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
enable-explosions option(allows you to turn off tnt explosions)
This commit is contained in:
parent
d9d18c6a47
commit
099bd3b695
2 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ class Explosion{
|
|||
DIAMOND_ORE => DIAMOND,
|
||||
REDSTONE_ORE => REDSTONE,
|
||||
);
|
||||
public static $enableExplosions = true;
|
||||
private $rays = 16; //Rays
|
||||
public $level;
|
||||
public $source;
|
||||
|
|
@ -64,6 +65,9 @@ class Explosion{
|
|||
return $send;
|
||||
}
|
||||
public function explode(){
|
||||
if(!Explosion::$enableExplosions){ /*Disable Explosions*/
|
||||
return;
|
||||
}
|
||||
$server = ServerAPI::request();
|
||||
if($this->size < 0.1 or $server->api->dhandle("entity.explosion", array(
|
||||
"level" => $this->level,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue