PocketMine-MP
5.28.3 git-d5a1007c80fcee27feb2251cf5dcf1ad5a59a85c
Loading...
Searching...
No Matches
CommandEvent.php
1
<?php
2
3
/*
4
*
5
* ____ _ _ __ __ _ __ __ ____
6
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10
*
11
* This program is free software: you can redistribute it and/or modify
12
* it under the terms of the GNU Lesser General Public License as published by
13
* the Free Software Foundation, either version 3 of the License, or
14
* (at your option) any later version.
15
*
16
* @author PocketMine Team
17
* @link http://www.pocketmine.net/
18
*
19
*
20
*/
21
22
declare(strict_types=1);
23
24
namespace
pocketmine\event\server;
25
26
use
pocketmine\command\CommandSender
;
27
use
pocketmine\event\Cancellable
;
28
use pocketmine\event\CancellableTrait;
29
use
pocketmine\event\Event
;
30
45
class
CommandEvent
extends
Event
implements
Cancellable
{
46
use
CancellableTrait
;
47
48
public
function
__construct(
49
protected
CommandSender
$sender,
50
protected
string
$command
51
){}
52
53
public
function
getSender() :
CommandSender
{
54
return
$this->sender;
55
}
56
57
public
function
getCommand() :
string
{
58
return
$this->command;
59
}
60
61
public
function
setCommand(
string
$command) :
void
{
62
$this->command = $command;
63
}
64
}
pocketmine\event\Event
Definition
Event.php:33
pocketmine\event\server\CommandEvent
Definition
CommandEvent.php:45
pocketmine\command\CommandSender
Definition
CommandSender.php:31
pocketmine\event\Cancellable
Definition
Cancellable.php:34
pocketmine\event\CancellableTrait
trait CancellableTrait
Definition
CancellableTrait.php:34
src
event
server
CommandEvent.php
Generated by
1.12.0