Merge pull request 'Update SchematicCommand to CommandFramework' (#99) from CommandFramework into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #99 Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Commit
03254ed85d
@ -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