Skip to content

Commit

Permalink
Fixed Words not giving rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
antbag-dev authored Oct 1, 2023
1 parent 394be6d commit f913dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/antbag/chatgames/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function onChat(playerChatEvent $event) {
$player = $event->getPlayer();
$msg = $event->getMessage();

if (strtolower($msg) == strtolower($this->word)) {
if ($msg !== null && $this->word !== null && strtolower($msg) == strtolower($this->word)) {
$event->cancel();
$this->rewardPlayer($player);
$this->loadWords();
Expand Down

0 comments on commit f913dc3

Please sign in to comment.