mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Some breaking changes for plugins >:D
This commit is contained in:
parent
8fc1501e89
commit
46a2e6cbf8
@ -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;
|
||||||
|
|
||||||
}
|
}
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user