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