Move Event cancellable parts to trait

This commit is contained in:
Dylan K. Taylor
2019-01-16 22:14:25 +00:00
parent 2e7e56de1e
commit 38afe22b79
64 changed files with 225 additions and 35 deletions

View File

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\event\CancellableTrait;
use pocketmine\permission\PermissionManager;
use pocketmine\Player;
use pocketmine\Server;
@ -32,6 +33,8 @@ use pocketmine\Server;
* Called when a player chats something
*/
class PlayerChatEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;
/** @var string */
protected $message;