Skip to content

Commit

Permalink
Merge pull request #5361 from TownyAdvanced/fix/claimedat-command
Browse files Browse the repository at this point in the history
Fix the /ta plot claimedat command
  • Loading branch information
LlmDl authored Oct 13, 2021
2 parents 0fe29b9 + fc2edac commit b5d3c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lang/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,7 @@ msg_command_blocked_inside_towns: '&cYou cannot use that command inside towns.'
msg_command_limited: 'You can only use that command inside your own plots.'

#Added in 0.104
# Don't add a space to the end please
msg_plot_perm_claimed_at: 'Claimed at:'

#Added in 0.105
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ private void parseAdminPlotCommand(String[] split) throws TownyException {
if (!wc.hasTownBlock() || wc.getTownBlock().getClaimedAt() == 0)
throw new NotRegisteredException();

TownyMessaging.sendMsg(sender, Translatable.of("msg_plot_perm_claimed_at", TownyFormatter.fullDateFormat.format(wc.getTownBlock().getClaimedAt())));
TownyMessaging.sendMsg(sender, Translatable.of("msg_plot_perm_claimed_at").append(" " + TownyFormatter.fullDateFormat.format(wc.getTownBlock().getClaimedAt())));
} else if (split[0].equalsIgnoreCase("trust")) {
if (!townyUniverse.getPermissionSource().testPermission(player, PermissionNodes.TOWNY_COMMAND_TOWNYADMIN_PLOT_TRUST.getNode()))
throw new TownyException(Translatable.of("msg_err_command_disable"));
Expand Down

0 comments on commit b5d3c13

Please sign in to comment.