mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added /op, /deop, /kick, OfflinePlayer, moved player list to Server instead of static Player
This commit is contained in:
@ -54,7 +54,7 @@ class BanCommand extends VanillaCommand{
|
||||
|
||||
Server::getInstance()->getNameBans()->addBan($name, $reason, null, $sender->getName());
|
||||
|
||||
if(($player = Player::get($name, true)) instanceof Player){
|
||||
if(($player = Server::getInstance()->getPlayerExact($name)) instanceof Player){
|
||||
$player->kick("Banned by admin.");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user