Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Fix /f invite Names with Spaces #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/FactionsPro/FactionCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function onCommand(CommandSender $sender, Command $command, string $label
$sender->sendMessage($this->plugin->formatMessage("Faction is full, please kick players to make room"));
return true;
}
$invited = $this->plugin->getServer()->getPlayerExact($args[1]);
$invited = $this->plugin->getServer()->getPlayer($args[1]);
if (!($invited instanceof Player)) {
$sender->sendMessage($this->plugin->formatMessage("Player not online"));
return true;
Expand Down