Schem list public fix
Dieser Commit ist enthalten in:
Ursprung
f6e9ac9ebd
Commit
84dc52d62d
@ -164,8 +164,12 @@ class GUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void list(Player p){
|
static void list(Player p){
|
||||||
|
list(p, WarkingUser.get(p.getUniqueId()).getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
static void list(Player p, int pid){
|
||||||
List<Pair<SWItem, Schematic>> schemList = new LinkedList<>();
|
List<Pair<SWItem, Schematic>> schemList = new LinkedList<>();
|
||||||
List<Schematic> schems = Schematic.getSchemsAccessibleByUser(p.getUniqueId());
|
List<Schematic> schems = Schematic.getSchemsAccessibleByUser(pid);
|
||||||
|
|
||||||
for(Schematic schem : schems) {
|
for(Schematic schem : schems) {
|
||||||
Material m;
|
Material m;
|
||||||
|
@ -108,14 +108,7 @@ public class SchematicCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if("public".equalsIgnoreCase(args[1])){
|
if("public".equalsIgnoreCase(args[1])){
|
||||||
if(args.length == 3){
|
GUI.list(player, 0);
|
||||||
try {
|
|
||||||
sendPlayerSchematicList(Integer.parseInt(args[2]), 0, player);
|
|
||||||
} catch (NumberFormatException ex) {
|
|
||||||
player.sendMessage(SchematicSystem.PREFIX + "§cUngültige Seitenzahl");
|
|
||||||
}
|
|
||||||
}else
|
|
||||||
sendPlayerSchematicList(0, 0, player);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren