Enabling public lists
Dieser Commit ist enthalten in:
Ursprung
0361e81619
Commit
fc108694c8
@ -92,14 +92,14 @@ public class SWListInv<T> extends SWInventory {
|
||||
return onlinePlayers;
|
||||
}
|
||||
|
||||
public static List<Pair<SWItem, Schematic>> getSchemList(Player p, SchematicType type){
|
||||
public static List<Pair<SWItem, Schematic>> getSchemList(int warkingUserId, SchematicType type){
|
||||
List<Pair<SWItem, Schematic>> schemList = new ArrayList<>();
|
||||
|
||||
List<Schematic> schems;
|
||||
if(type == null)
|
||||
schems = Schematic.getSchemsAccessibleByUser(p.getUniqueId());
|
||||
schems = Schematic.getSchemsAccessibleByUser(warkingUserId);
|
||||
else
|
||||
schems = Schematic.getSchemsOfType(p.getUniqueId(), type);
|
||||
schems = Schematic.getSchemsOfType(warkingUserId, type);
|
||||
|
||||
for(Schematic s : schems){
|
||||
Material m;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren