Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit d8875ec

Browse files
author
Emre Yavuzyiğit
authored
Merge pull request #177 from yoraze/stable
Implemented "new" gamerule
2 parents e8f65c8 + 6b3b60c commit d8875ec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/pocketmine/command/defaults/GameRuleCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function execute(CommandSender $sender, string $commandLabel, array $args
7474
public function getKnownGameRules() : array{
7575
return [
7676
"commandblockoutput", "dodaylightcycle", "doentitydrops", "dofiretick", "doinsomnia", "domobloot",
77-
"domobspawning", "dotiledrops", "doweathercycle", "drowningdamage", "falldamage", "firedamage",
77+
"domobspawning", "dotiledrops", "doimmediaterespawn", "doweathercycle", "drowningdamage", "falldamage", "firedamage",
7878
"keepinventory", "maxcommandchainlength", "mobgriefing", "naturalregeneration", "pvp",
7979
"sendcommandfeedback", "showcoordinates", "tntexplodes"
8080
];

src/pocketmine/level/GameRules.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class GameRules{
4040
public const RULE_DO_MOB_LOOT = "doMobLoot";
4141
public const RULE_DO_MOB_SPAWNING = "doMobSpawning";
4242
public const RULE_DO_TILE_DROPS = "doTileDrops";
43+
public const RULE_DO_IMMEDIATE_RESPAWN = "doimmediaterespawn";
4344
public const RULE_DO_WEATHER_CYCLE = "doWeatherCycle";
4445
public const RULE_DROWNING_DAMAGE = "drowningdamage";
4546
public const RULE_FALL_DAMAGE = "falldamage";
@@ -73,6 +74,7 @@ public function __construct(){
7374
$this->setBool(self::RULE_DO_MOB_LOOT, true);
7475
$this->setBool(self::RULE_DO_MOB_SPAWNING, false);
7576
$this->setBool(self::RULE_DO_TILE_DROPS, true);
77+
$this->setBool(self::RULE_DO_IMMEDIATE_RESPAWN, false);
7678
$this->setBool(self::RULE_DO_WEATHER_CYCLE, true);
7779
$this->setBool(self::RULE_DROWNING_DAMAGE, true);
7880
$this->setBool(self::RULE_FALL_DAMAGE, true);

0 commit comments

Comments
 (0)