Skip to content
This repository has been archived by the owner on Sep 8, 2018. It is now read-only.

Commit

Permalink
Fixed duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Enes5519 committed Jul 3, 2018
1 parent 2a1a86b commit a9d0d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/command/defaults/MakeServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function execute(CommandSender $sender, string $commandLabel, array $args
}

$server = $sender->getServer();
$pharPath = Server::getInstance()->getPluginPath() . "Altay" . DIRECTORY_SEPARATOR . $server->getName() . "_" . $server->getPocketMineVersion() . "_" . $server->getApiVersion() . ".phar";
$pharPath = Server::getInstance()->getPluginPath() . "Altay" . DIRECTORY_SEPARATOR . $server->getName() . "_v" . $server->getApiVersion() . ".phar";
if (file_exists($pharPath)) {
$sender->sendMessage("Phar file already exists, overwriting...");
@unlink($pharPath);
Expand Down

0 comments on commit a9d0d03

Please sign in to comment.