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