Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change language in unallied nation spawning error. #5940

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion resources/lang/en-US.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Towny
version: 0.150
version: 0.151
language: english
author: ElgarL
website: 'http://townyadvanced.github.io/'
Expand Down Expand Up @@ -1681,6 +1681,10 @@ msg_cost_spawn_rtp: '&bYou were charged %s to teleport to a random town plot tha
#Message shown to a player when they use the town rtp command.
msg_you_are_about_to_be_teleported_to_a_plot: 'You are about to be teleported to a plot which is forsale in %s which will let you join. Use ''/plot claim'' to claim your plot when you arrive.'

#Added in 0.151
msg_err_nation_unaffiliated: '&cThat nation is not affiliated with you.'


#
#Used in the town's status screen to display plots
status_plot_string: 'Plots'
Expand Down
2 changes: 1 addition & 1 deletion src/com/palmergames/bukkit/towny/utils/SpawnUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private static NationSpawnLevel getNationSpawnLevel(Player player, Resident resi
}

if (nationSpawnLevel == NationSpawnLevel.UNAFFILIATED && !nation.isPublic())
throw new TownyException(Translatable.of("msg_err_nation_not_public"));
throw new TownyException(Translatable.of("msg_err_nation_unaffiliated"));
}

// Check if the player has the permission/config allows for this type of spawning.
Expand Down