Fix SpecialCommand.description
Dieser Commit ist enthalten in:
Ursprung
e9d072b06b
Commit
1e9f7e7cf1
@ -2,16 +2,9 @@ package de.steamwar.bausystem.features.script;
|
||||
|
||||
public interface SpecialCommand {
|
||||
|
||||
default String[] descriptions() {
|
||||
if (description().equals("")) {
|
||||
default String[] description() {
|
||||
return new String[0];
|
||||
}
|
||||
return new String[]{description()};
|
||||
}
|
||||
|
||||
default String description() {
|
||||
return "";
|
||||
}
|
||||
|
||||
String command();
|
||||
|
||||
|
@ -9,8 +9,12 @@ import de.steamwar.bausystem.linkage.Linked;
|
||||
public class Exit implements SpecialCommand {
|
||||
|
||||
@Override
|
||||
public String description() {
|
||||
return "§eexit §8-§7 Beendet das ausführen des Scripts.";
|
||||
public String[] description() {
|
||||
return new String[]{
|
||||
"§eexit",
|
||||
"",
|
||||
"Beendet das ausführen des Scripts."
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -11,7 +11,7 @@ import de.steamwar.bausystem.linkage.Linked;
|
||||
public class If implements SpecialCommand {
|
||||
|
||||
@Override
|
||||
public String[] descriptions() {
|
||||
public String[] description() {
|
||||
return new String[]{
|
||||
"§eif §8<§7Variable§8/§7Wert§8> §8<§7Variable§8/§7Wert§8> §8<§7Jump-Point§8>",
|
||||
"§eif §8<§7Variable§8/§7Wert§8> §8<§7Variable§8/§7Wert§8> §8<§7Jump-Point§8> §8<§7Jump-Point§8>",
|
||||
|
@ -10,8 +10,12 @@ import de.steamwar.bausystem.linkage.Linked;
|
||||
public class Jump implements SpecialCommand {
|
||||
|
||||
@Override
|
||||
public String description() {
|
||||
return "§ejump §8<§7Jump-Point§8> §8- §7Springe zu einer anderen Zeile. Hierbei ist ein Jump-Point eine Zeile mit §8'§7.§8'§7 vor.";
|
||||
public String[] description() {
|
||||
return new String[]{
|
||||
"§ejump §8<§7Jump-Point§8>",
|
||||
"",
|
||||
"§7Springe zu einer anderen Zeile. Hierbei ist ein Jump-Point eine Zeile mit §8'§7.§8'§7 vor."
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -11,8 +11,12 @@ import org.bukkit.Bukkit;
|
||||
public class Sleep implements SpecialCommand {
|
||||
|
||||
@Override
|
||||
public String description() {
|
||||
return "§esleep §8<§8Time§8> §8-§7 Pausiert das Ausführen des Scripts. Das erste Argument ist in GameTicks";
|
||||
public String[] description() {
|
||||
return new String[]{
|
||||
"§esleep §8<§8Time§8>",
|
||||
"",
|
||||
"Pausiert das Ausführen des Scripts. Das erste Argument ist in GameTicks."
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren