mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 10:26:38 +00:00
Rename PlayerMissedSwingEvent -> PlayerMissSwingEvent
all the other events are present tense, so it doesn't make sense for this one to be past tense.
This commit is contained in:
parent
6f09286fed
commit
46f24b165a
@ -30,7 +30,7 @@ use pocketmine\player\Player;
|
||||
/**
|
||||
* Called when a player attempts to perform the attack action (left-click) without a target entity.
|
||||
*/
|
||||
class PlayerMissedSwingEvent extends PlayerEvent implements Cancellable{
|
||||
class PlayerMissSwingEvent extends PlayerEvent implements Cancellable{
|
||||
use CancellableTrait;
|
||||
|
||||
public function __construct(Player $player){
|
@ -66,7 +66,7 @@ use pocketmine\event\player\PlayerItemUseEvent;
|
||||
use pocketmine\event\player\PlayerJoinEvent;
|
||||
use pocketmine\event\player\PlayerJumpEvent;
|
||||
use pocketmine\event\player\PlayerKickEvent;
|
||||
use pocketmine\event\player\PlayerMissedSwingEvent;
|
||||
use pocketmine\event\player\PlayerMissSwingEvent;
|
||||
use pocketmine\event\player\PlayerMoveEvent;
|
||||
use pocketmine\event\player\PlayerPostChunkSendEvent;
|
||||
use pocketmine\event\player\PlayerQuitEvent;
|
||||
@ -1900,7 +1900,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
* Under normal circumstances, this will just play the no-damage attack sound and the arm-swing animation.
|
||||
*/
|
||||
public function missSwing() : void{
|
||||
$ev = new PlayerMissedSwingEvent($this);
|
||||
$ev = new PlayerMissSwingEvent($this);
|
||||
$ev->call();
|
||||
if(!$ev->isCancelled()){
|
||||
$this->broadcastSound(new EntityAttackNoDamageSound());
|
||||
|
Loading…
x
Reference in New Issue
Block a user