mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Refactored Server::broadcastPacket() to be non-static
Why the hell was this static at all? Seriously Shoghi?
This commit is contained in:
@@ -60,7 +60,7 @@ class DifficultyCommand extends VanillaCommand{
|
||||
|
||||
$pk = new SetDifficultyPacket();
|
||||
$pk->difficulty = $sender->getServer()->getDifficulty();
|
||||
Server::broadcastPacket($sender->getServer()->getOnlinePlayers(), $pk);
|
||||
$sender->getServer()->broadcastPacket($sender->getServer()->getOnlinePlayers(), $pk);
|
||||
|
||||
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.difficulty.success", [$difficulty]));
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user