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:
Dylan K. Taylor 2023-08-01 12:21:39 +01:00
parent 6f09286fed
commit 46f24b165a
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 3 additions and 3 deletions

View File

@ -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){

View File

@ -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());