Skip to content

Commit

Permalink
Merge pull request #9 from YaBoiLewis/3.0.0-ALPHA7
Browse files Browse the repository at this point in the history
Latest API Changes Update. - API 3.0.0-ALPHA7
  • Loading branch information
liam-wiltshire authored Jul 31, 2017
2 parents bb94edd + 858169c commit e17f2ef
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: BuycraftPM
main: Buycraft\PocketMine\BuycraftPlugin
version: 0.4.1
author: Tebex Limited
api: [2.0.0, 3.0.0, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6]
api: [2.0.0, 3.0.0, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7]
2 changes: 1 addition & 1 deletion src/Buycraft/PocketMine/Commands/BuycraftCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(BuycraftPlugin $plugin)
*
* @return mixed
*/
public function execute(CommandSender $sender, $commandLabel, array $args)
public function execute(CommandSender $sender, string$commandLabel, array $args) :bool
{
if (!$sender->hasPermission('buycraft.admin')) {
$sender->sendMessage(TextFormat::RED . "You don't have permission to use Buycraft administrative commands.");
Expand Down
4 changes: 2 additions & 2 deletions src/Buycraft/PocketMine/Execution/CommandExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct()
*
* @return void
*/
public function onRun($currentTick)
public function onRun(int$currentTick)
{
$successfully_executed = array();

Expand Down Expand Up @@ -60,4 +60,4 @@ public function queue($command, $username, $online)
{
$this->commands[$command->id] = new QueuedCommand($command, $username, $online);
}
}
}
4 changes: 2 additions & 2 deletions src/Buycraft/PocketMine/Execution/DeleteCommandsTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(PluginApi $pluginApi)
*
* @return void
*/
public function onRun($currentTick)
public function onRun(int$currentTick)
{
$available = count($this->commandIds);
if ($available > self::MAXIMUM_COMMANDS_TO_POST) {
Expand Down Expand Up @@ -74,4 +74,4 @@ public function queue($id)
$this->commandIds[] = $id;
}
}
}
}
4 changes: 2 additions & 2 deletions src/Buycraft/PocketMine/Util/RunAsyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function __construct(BuycraftPlugin $plugin, $asyncTask)
*
* @return void
*/
public function onRun($currentTick)
public function onRun(int$currentTick)
{
Server::getInstance()->getScheduler()->scheduleAsyncTask($this->asyncTask);
}
}
}

0 comments on commit e17f2ef

Please sign in to comment.