Compare commits
No commits in common. "6dbb62238e60f61d253c9e1e58bf44bc514f370e" and "0f3b06a596f5cb774d4a90dd8375f13ec5fe9def" have entirely different histories.
6dbb62238e
...
0f3b06a596
3 changed files with 3 additions and 5 deletions
|
@ -27,7 +27,7 @@ public class Translation {
|
||||||
|
|
||||||
// Global
|
// Global
|
||||||
public static String GLOBAL_PREFIX = "<dark_gray>[<BRANDING>PickShadow<BRANDING_END><dark_gray>] <reset>";
|
public static String GLOBAL_PREFIX = "<dark_gray>[<BRANDING>PickShadow<BRANDING_END><dark_gray>] <reset>";
|
||||||
public static String GLOBAL_EXCEPTION = "Ein Fehler ist während der Ausführung des Befehls aufgetreten. Bitte sende eine E-Mail an " + BuildConfiguration.contactName + " (" + BuildConfiguration.contactEmail + ") mit allen relevanten Details für die Fehlerbehebung.";
|
public static String GLOBAL_EXCEPTION = "Ein Fehler ist während der Ausführung des Befehls aufgetreten. Bitte sende eine E-Mail an " + BuildConfiguration.contactName + " (" + BuildConfiguration.contactEmail + ") für die Fehlerbehebung.";
|
||||||
public static String GLOBAL_NOT_ENOUGH_ARGUMENTS = "Zu wenig Argumente. Syntax: <HIGHLIGHT>%usage%";
|
public static String GLOBAL_NOT_ENOUGH_ARGUMENTS = "Zu wenig Argumente. Syntax: <HIGHLIGHT>%usage%";
|
||||||
public static String GLOBAL_INVALID_ARGUMENT = "Ungültiges Argument. Syntax: <HIGHLIGHT>%usage%";
|
public static String GLOBAL_INVALID_ARGUMENT = "Ungültiges Argument. Syntax: <HIGHLIGHT>%usage%";
|
||||||
public static String GLOBAL_NOT_A_PLAYER = "Die Serverkonsole kann diesen Aktion nicht ausführen.";
|
public static String GLOBAL_NOT_A_PLAYER = "Die Serverkonsole kann diesen Aktion nicht ausführen.";
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class PluginCommand extends CommandBase {
|
||||||
if (commandSender.hasPermission("atc.commands.pickshadow")) {
|
if (commandSender.hasPermission("atc.commands.pickshadow")) {
|
||||||
ArrayList<String[]> completion = new ArrayList<>();
|
ArrayList<String[]> completion = new ArrayList<>();
|
||||||
completion.add(new String[]{ "reloadconfig", "reloaddata", "gc", "scheduler", "playerinfo" });
|
completion.add(new String[]{ "reloadconfig", "reloaddata", "gc", "scheduler", "playerinfo" });
|
||||||
if (args.length > 1) {
|
if (args.length > 2) {
|
||||||
if (args[0].equals("scheduler")) {
|
if (args[0].equals("scheduler")) {
|
||||||
completion.add(new String[]{"minutely", "hourly"});
|
completion.add(new String[]{"minutely", "hourly"});
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ package de.pickshadow.plugin.commands;
|
||||||
|
|
||||||
import de.pickshadow.plugin.classes.CommandBase;
|
import de.pickshadow.plugin.classes.CommandBase;
|
||||||
import de.pickshadow.plugin.base.Translation;
|
import de.pickshadow.plugin.base.Translation;
|
||||||
import de.pickshadow.plugin.classes.Types;
|
|
||||||
import de.pickshadow.plugin.utils.Miscellaneous;
|
import de.pickshadow.plugin.utils.Miscellaneous;
|
||||||
import de.pickshadow.plugin.utils.TabCompletionHelper;
|
import de.pickshadow.plugin.utils.TabCompletionHelper;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
|
@ -71,8 +70,7 @@ public class SystemInformationCommand extends CommandBase {
|
||||||
sender.sendMessage(Objects.requireNonNull(getMessage(2)));
|
sender.sendMessage(Objects.requireNonNull(getMessage(2)));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sender.sendMessage(Miscellaneous.format(Translation.GLOBAL_EXCEPTION, Types.FormatType.ERROR));
|
logger.crash("Invalid label \"" + label + "\"");
|
||||||
logger.error("Invalid label \"" + label + "\"");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue