Skip to content

Commit

Permalink
Fix localization parity
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Oct 22, 2024
1 parent 002c66e commit fa76872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Raffle/RaffleCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public async Task<CommandResult> Execute(PlayerWrapper? executor,
// entries are closed
return CommandResult.SUCCESS;

if (!await eco.CanAfford(executor, raffle.Raffle.BuyIn, true))
if (await eco.TryPurchase(executor, raffle.Raffle.BuyIn, true, "Raffle Ticket",
true) < 0)
return CommandResult.SUCCESS;

raffle.Raffle.AddPlayer(executor.Steam);
Expand Down
1 change: 0 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
"menu.format.invitation": "%color.special%{0}%color.default% invited %color.target%{1}%color.default% on %color.emph%{2}%color.default%.",
"menu.format.request": "%color.target%{0}%color.default% requested to join on %color.emph%{1}%color.default%.",
"raffle.begin": "%prefix%A raffle for %color.currency%{0} %currency%%s%%color.default% has begun. Type %color.command%/raffle %color.default% to enter.",
"raffle.entered": "%prefix%You entered the raffle for %color.currency%{0} %currency%%s%.",
"raffle.preannounce": "%prefix%Raffle closed! Collected %color.currency%{0} %currency%%s% across %color.number%{1}%color.default% entrant%s%.",
"raffle.winner": "%prefix%%color.target%{0}%color.default% won the raffle with a %color.number%{1}%color.default% chance!"
}

0 comments on commit fa76872

Please sign in to comment.