Removing hardcoded "s" from cooldown placeholder (#54)

This commit is contained in:
RedstoneFuture 2022-10-12 18:00:47 +02:00 committed by GitHub
parent e5c745e018
commit b1b13236f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ public class RandomTeleport extends JavaPlugin implements RandomTeleportAPI {
}
if (cooldown > 0 && cooldown < searcher.getCooldown()) {
sendMessage(searcher.getTargets(), "error.cooldown", "cooldown_text", (searcher.getCooldown() - cooldown) + "s");
sendMessage(searcher.getTargets(), "error.cooldown", "cooldown_text", Integer.toString(searcher.getCooldown() - cooldown));
return null;
}
sendMessage(searcher.getTargets(), "search", "worldname", searcher.getCenter().getWorld().getName());

View File

@ -12,7 +12,7 @@ sign:
error:
location: "&4Error: &cRandomTeleport could not find a safe location!"
teleport: "&4Error: &cRandomTeleport could not teleport you to X: {x} Y: {y} Z: {z}!"
cooldown: "&cYou have to wait {cooldown_text} before using this RandomTeleport again!"
cooldown: "&cYou have to wait {cooldown_text}s before using this RandomTeleport again!"
parse-error: "&cError while parsing option &f{option}&c with value &f{value}&c: {error}"
not-found: "&cCould not find &f{what}&c!"
player-not-found: "&cCould not find a player with the name &f{what}&c!"