Change Server->getConfigBoolean() to getConfigBool()

to be consistent, deprecated the original
This commit is contained in:
Dylan K. Taylor
2017-10-25 16:30:39 +01:00
parent 2635c85873
commit b6264d188e
3 changed files with 27 additions and 15 deletions

View File

@ -116,7 +116,7 @@ abstract class Achievement{
public static function broadcast(Player $player, string $achievementId) : bool{
if(isset(Achievement::$list[$achievementId])){
$translation = new TranslationContainer("chat.type.achievement", [$player->getDisplayName(), TextFormat::GREEN . Achievement::$list[$achievementId]["name"] . TextFormat::RESET]);
if(Server::getInstance()->getConfigBoolean("announce-player-achievements", true) === true){
if(Server::getInstance()->getConfigBool("announce-player-achievements", true) === true){
Server::getInstance()->broadcastMessage($translation);
}else{
$player->sendMessage($translation);