mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2025-02-19 22:03:09 +01:00
Warp hint uses welcomeLine from config
https://github.com/BentoBoxWorld/addon-welcomewarpsigns/issues/4
This commit is contained in:
parent
3e07cb1901
commit
c7911266e0
@ -52,7 +52,7 @@ public class WarpCommand extends CompositeCommand {
|
||||
Set<UUID> warpList = addon.getWarpSignsManager().listWarps(getWorld());
|
||||
if (warpList.isEmpty()) {
|
||||
user.sendMessage("warps.error.no-warps-yet");
|
||||
user.sendMessage("warps.warpTip");
|
||||
user.sendMessage("warps.warpTip", "[text]", getAddon().getConfig().getString("welcomeLine", "[WELCOME]"));
|
||||
return true;
|
||||
} else {
|
||||
// Check if this is part of a name
|
||||
|
@ -39,7 +39,7 @@ public class WarpsCommand extends CompositeCommand {
|
||||
public boolean execute(User user, String label, List<String> args) {
|
||||
if (plugin.getWarpSignsManager().listWarps(getWorld()).isEmpty()) {
|
||||
user.sendMessage("warps.error.no-warps-yet");
|
||||
user.sendMessage("warps.warpTip");
|
||||
user.sendMessage("warps.warpTip", "[text]", getAddon().getConfig().getString("welcomeLine", "[WELCOME]"));
|
||||
} else {
|
||||
plugin.getWarpPanelManager().showWarpPanel(getWorld(), user,0);
|
||||
}
|
||||
|
@ -12,7 +12,8 @@ warps:
|
||||
previous: "&6Previous page"
|
||||
next: "&6Next page"
|
||||
warpToPlayersSign: "&6Warping to [player]'s sign"
|
||||
warpTip: "&6Place a warp sign with [Welcome] on the top"
|
||||
# The [text] is replaced with the welcome line text from config.yml
|
||||
warpTip: "&6Place a warp sign with [text] on the top"
|
||||
error:
|
||||
does-not-exist: "&cOh snap! That warp no longer exists!"
|
||||
no-remove: "&CYou cannot remove that sign!"
|
||||
|
@ -11,7 +11,7 @@ warps:
|
||||
previous: "&6上一页"
|
||||
next: "&6下一页"
|
||||
warpToPlayersSign: "&6正传送到 [player] 的传送木牌"
|
||||
warpTip: "&6放置一个第一行是 [Welcome] 的木牌以创建传送木牌"
|
||||
warpTip: "&6放置一个第一行是 [text] 的木牌以创建传送木牌"
|
||||
error:
|
||||
no-remove: "&C无权移除传送木牌!"
|
||||
not-enough-level: "&C岛屿等级不够高!"
|
||||
|
Loading…
Reference in New Issue
Block a user