Update SchematicCommand to CommandFramework
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
57de31af2f
Commit
94711318f9
@ -66,35 +66,18 @@ public class SchematicCommand extends SWCommand {
|
||||
|
||||
@Register("list")
|
||||
@Register({"list", "/"})
|
||||
public void schemList(Player player) {
|
||||
renderSchemlist(player, SchematicNode.getSchematicsAccessibleByUser(getUser(player).getId(), 0), 0, "", false, null);
|
||||
}
|
||||
|
||||
@Register("list")
|
||||
@Register({"list", "/"})
|
||||
public void schemList(Player player, int page) {
|
||||
public void schemList(Player player, @OptionalValue("0") int page) {
|
||||
renderSchemlist(player, SchematicNode.getSchematicsAccessibleByUser(getUser(player).getId(), 0), page, "", false, null);
|
||||
}
|
||||
|
||||
@Register({"list", "public"})
|
||||
public void schemListPublic(Player player, @Mapper("publicDirMapper") SchematicNode node) {
|
||||
schemList(player, node);
|
||||
}
|
||||
|
||||
@Register({"list", "public"})
|
||||
public void schemListPublic(Player player, @Mapper("publicDirMapper") SchematicNode node, int page) {
|
||||
public void schemListPublic(Player player, @Mapper("publicDirMapper") SchematicNode node, @OptionalValue("0") int page) {
|
||||
schemList(player, node, page);
|
||||
}
|
||||
|
||||
@Register({"list", "public"})
|
||||
@Register({"list", "public", "/"})
|
||||
public void schemListPublic(Player player) {
|
||||
renderSchemlist(player, SchematicNode.getSchematicsAccessibleByUser(0, 0), 0, "", true, null);
|
||||
}
|
||||
|
||||
@Register({"list", "public"})
|
||||
@Register({"list", "public", "/"})
|
||||
public void schemListPublic(Player player, int page) {
|
||||
public void schemListPublic(Player player, @OptionalValue("0") int page) {
|
||||
renderSchemlist(player, SchematicNode.getSchematicsAccessibleByUser(0, 0), page, "", true, null);
|
||||
}
|
||||
|
||||
@ -105,17 +88,7 @@ public class SchematicCommand extends SWCommand {
|
||||
}
|
||||
|
||||
@Register("list")
|
||||
public void schemList(Player player, @Mapper("dirMapper") SchematicNode node) {
|
||||
SteamwarUser user = getUser(player);
|
||||
if (!node.isDir()) {
|
||||
player.sendMessage(SchematicSystem.PREFIX + "Das ist eine Schematic und kein Ordner");
|
||||
} else {
|
||||
renderSchemlist(player, SchematicNode.getSchematicNodeInNode(node), 0, node.generateBreadcrumbs(user), node.getOwner() == 0, node);
|
||||
}
|
||||
}
|
||||
|
||||
@Register("list")
|
||||
public void schemList(Player player, @Mapper("dirMapper") SchematicNode node, int page) {
|
||||
public void schemList(Player player, @Mapper("dirMapper") SchematicNode node, @OptionalValue("0") int page) {
|
||||
SteamwarUser user = getUser(player);
|
||||
if (!node.isDir()) {
|
||||
player.sendMessage(SchematicSystem.PREFIX + "Das ist eine Schematic und kein Ordner");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren