Add gamemode placeholder to message (#115)

This commit is contained in:
DevSolaris 2023-01-18 22:14:50 +01:00 committed by GitHub
parent fb1090717b
commit 7dbb5d39ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -363,7 +363,12 @@ public class WarpSignsManager {
user.getWorld().playSound(Objects.requireNonNull(user.getLocation()), Sound.ENTITY_BAT_TAKEOFF, 1F, 1F);
}
if (!warpOwner.equals(user)) {
warpOwner.sendMessage("warps.player-warped", "[name]", user.getName());
final String gameMode = BentoBox
.getInstance()
.getIWM()
.getFriendlyName(actualWarp.getWorld());
warpOwner.sendMessage("warps.player-warped", "[name]", user.getName(), "[gamemode]", gameMode);
}
}

View File

@ -20,7 +20,7 @@ warps:
your-level-is: "&c Your island level is only [level] and must be higher than [required]. Run the level command."
help:
description: "open the warps panel"
player-warped: "&2 [name] warped to your warp sign!"
player-warped: "&2 [name] warped to your [gamemode] warp sign!"
sign-removed: "&c Warp sign removed!"
success: "&a Success!"
warpTip: "&6 Place a warp sign with [text] on the top"