1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Made requested changes

This commit is contained in:
TheBusyBiscuit 2021-01-06 18:10:32 +01:00
parent 318c154e78
commit 10b11e7bdf
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class TimingsCommand extends SubCommand {
for (int i = 1; i < args.length; i++) {
String argument = args[i].toLowerCase(Locale.ROOT);
if (!argument.startsWith(FLAG_PREFIX) || !flags.contains(argument.substring(2))) {
if (argument.startsWith(FLAG_PREFIX) && !flags.contains(argument.substring(2))) {
hasInvalidFlags = true;
SlimefunPlugin.getLocalization().sendMessage(sender, "commands.timings.unknown-flag", true, msg -> msg.replace("%flag%", argument));
}

View File

@ -27,7 +27,7 @@ commands:
not-rechargeable: This item can not be charged!
timings:
description: Lag-Info about your Server
description: Timings for Slimefun and its addon
please-wait: '&ePlease wait a second... The results are coming in!'
verbose-player: '&4The verbose flag cannot by used by a Player!'
unknown-flag: '&4Unknown flag: &c%flag%'