Some breaking changes for plugins >:D

This commit is contained in:
Dylan K. Taylor 2017-07-05 18:22:37 +01:00
parent 8fc1501e89
commit 46a2e6cbf8
3 changed files with 5 additions and 5 deletions

View File

@ -34,6 +34,6 @@ interface CommandExecutor{
* *
* @return bool * @return bool
*/ */
public function onCommand(CommandSender $sender, Command $command, $label, array $args); public function onCommand(CommandSender $sender, Command $command, string $label, array $args) : bool;
} }

View File

@ -156,11 +156,11 @@ abstract class PluginBase implements Plugin{
* @param CommandSender $sender * @param CommandSender $sender
* @param Command $command * @param Command $command
* @param string $label * @param string $label
* @param array $args * @param string[] $args
* *
* @return bool * @return bool
*/ */
public function onCommand(CommandSender $sender, Command $command, $label, array $args){ public function onCommand(CommandSender $sender, Command $command, string $label, array $args) : bool{
return false; return false;
} }

View File

@ -61,11 +61,11 @@ abstract class Task{
/** /**
* Actions to execute when run * Actions to execute when run
* *
* @param $currentTick * @param int $currentTick
* *
* @return void * @return void
*/ */
abstract public function onRun($currentTick); abstract public function onRun(int $currentTick);
/** /**
* Actions to execute if the Task is cancelled * Actions to execute if the Task is cancelled