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:
parent
318c154e78
commit
10b11e7bdf
@ -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));
|
||||
}
|
||||
|
@ -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%'
|
||||
|
Loading…
Reference in New Issue
Block a user