Skip to content

Commit

Permalink
Fixed #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris-Driv committed Jul 25, 2017
1 parent ee4ad6d commit 7695a27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/factions/command/CreateFaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use factions\event\faction\FactionCreateEvent;
use factions\event\member\MembershipChangeEvent;
use factions\FactionsPE;
use factions\manager\Factions;
use factions\manager\Members;
use factions\utils\Gameplay;
use localizer\Localizer;
Expand Down
1 change: 1 addition & 0 deletions src/factions/command/Join.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function perform(CommandSender $sender, $label, array $args)
$event = new MembershipChangeEvent($mplayer, $faction, MembershipChangeEvent::REASON_JOIN);
$this->getPlugin()->getServer()->getPluginManager()->callEvent($event);
if ($event->isCancelled()) return true;

if (!$samePlayer) {
$mplayer->sendMessage(Localizer::translatable("faction-joined-by-other", [$msender->getDisplayName(), $faction->getName()]));
} else {
Expand Down
1 change: 1 addition & 0 deletions src/factions/event/member/MembershipChangeEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class MembershipChangeEvent extends MemberEvent implements Cancellable
const REASON_CREATE = 0x3;
const REASON_KICK = 0x4;
const REASON_DISBAND = 0x5;

public static $handlerList = null;
public static $eventPool = [];
public static $nextEvent = 0;
Expand Down

2 comments on commit 7695a27

@Sandertv
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you're back ;)
(At least for now)

@Kris-Driv
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just testing if I haven't forgotten how to code πŸ‘ I'll be maintaining this plugin as long as I can, because I enjoy doing it πŸ˜„

Please sign in to comment.