Kitsystem fixes
Dieser Commit ist enthalten in:
Ursprung
2256b9b23c
Commit
1fd4bb48f8
@ -152,10 +152,14 @@ public class AkCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Schematic schem = Schematic.getSchemFromDB(args[1], player.getUniqueId());
|
Schematic schem = Schematic.getSchemFromDB(args[1], player.getUniqueId());
|
||||||
|
if(schem == null) {
|
||||||
|
schem = Schematic.getSchemFromDB(args[1], 0);
|
||||||
if(schem == null){
|
if(schem == null){
|
||||||
player.sendMessage(FightSystem.PREFIX + "§cDiese Schematic gibt es nicht!");
|
player.sendMessage(FightSystem.PREFIX + "§cDiese Schematic gibt es nicht!");
|
||||||
return false;
|
return false;
|
||||||
}else if(schem.getSchemType() != Config.SchematicType) {
|
}
|
||||||
|
}
|
||||||
|
if(schem.getSchemType() != Config.SchematicType) {
|
||||||
player.sendMessage(FightSystem.PREFIX + "§cDiese Schematic ist kein " + Config.GameName);
|
player.sendMessage(FightSystem.PREFIX + "§cDiese Schematic ist kein " + Config.GameName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ public class FightTeam {
|
|||||||
List<Schematic> preSchematicList;
|
List<Schematic> preSchematicList;
|
||||||
List<Schematic> schematicList = new ArrayList<>();
|
List<Schematic> schematicList = new ArrayList<>();
|
||||||
if(publicSchematics) {
|
if(publicSchematics) {
|
||||||
preSchematicList = Schematic.getSchemsOfType(0, schematicType);
|
preSchematicList = Schematic.getSchemsAccessibleByUser(0);
|
||||||
} else {
|
} else {
|
||||||
preSchematicList = Schematic.getSchemsAccessibleByUser(player.getUniqueId());
|
preSchematicList = Schematic.getSchemsAccessibleByUser(player.getUniqueId());
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren