Skip to content

Commit

Permalink
[Build] fix unbanning people giving a weird message
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed May 11, 2024
1 parent 8dbcf3f commit cb8e5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MyPlot/subcommand/UnBanSubCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function execute(CommandSender $sender, array $args): bool
$dplayer = $this->plugin->getServer()->getPlayerByPrefix($dplayerName);
}
if ($this->plugin->removePlotDenied($plot, $dplayer->getName())) {
$sender->sendMessage($this->translateString("undenyplayer.success1", [$dplayer->getName()]));
$sender->sendMessage($this->translateString("unbanplayer.success1", [$dplayer->getName()]));
if ($dplayer instanceof Player) {
$dplayer->sendMessage($this->translateString("unbanplayer.success2", [$plot->X, $plot->Z, $sender->getName()]));
}
Expand Down

0 comments on commit cb8e5ee

Please sign in to comment.