bugfix
Signed-off-by: yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
6941ebd7e1
Commit
f20fda8f81
@ -173,7 +173,7 @@ public class SchematicCommand implements CommandExecutor {
|
|||||||
List<CheckedSchematic> checkedSchematics = CheckedSchematic.getLastDeclined(player.getUniqueId());
|
List<CheckedSchematic> checkedSchematics = CheckedSchematic.getLastDeclined(player.getUniqueId());
|
||||||
for(CheckedSchematic checkedSchematic : checkedSchematics) {
|
for(CheckedSchematic checkedSchematic : checkedSchematics) {
|
||||||
if(checkedSchematic.getSchemOwner() == schematic.getSchemOwner() &&
|
if(checkedSchematic.getSchemOwner() == schematic.getSchemOwner() &&
|
||||||
checkedSchematic.getSchemName() == schematic.getSchemName())
|
checkedSchematic.getSchemName().equals(schematic.getSchemName()))
|
||||||
checkedSchematic.remove();
|
checkedSchematic.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,9 +332,8 @@ public class SchematicCommand implements CommandExecutor {
|
|||||||
} else
|
} else
|
||||||
player.sendMessage("§6Typ: §7" + schematic.getSchemType().name());
|
player.sendMessage("§6Typ: §7" + schematic.getSchemType().name());
|
||||||
|
|
||||||
if(schematic.getSchemType() == SchematicType.normal) {
|
|
||||||
List<CheckedSchematic> checkedSchematics = CheckedSchematic.getLastDeclined(player.getUniqueId());
|
List<CheckedSchematic> checkedSchematics = CheckedSchematic.getLastDeclined(player.getUniqueId());
|
||||||
for(int i = checkedSchematics.size() -1; i > 0; i--) {
|
for(int i = checkedSchematics.size() -1; i >= 0; i--) {
|
||||||
if(checkedSchematics.get(i).getSchemName().equals(schematic.getSchemName()) &&
|
if(checkedSchematics.get(i).getSchemName().equals(schematic.getSchemName()) &&
|
||||||
checkedSchematics.get(i).getSchemOwner() == schematic.getSchemOwner()) {
|
checkedSchematics.get(i).getSchemOwner() == schematic.getSchemOwner()) {
|
||||||
player.sendMessage("§cStatus: §c" + checkedSchematics.get(i).getStartTime() + " : " + checkedSchematics.get(i).getDeclineReason());
|
player.sendMessage("§cStatus: §c" + checkedSchematics.get(i).getStartTime() + " : " + checkedSchematics.get(i).getDeclineReason());
|
||||||
@ -344,7 +343,6 @@ public class SchematicCommand implements CommandExecutor {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(!WarkingUser.get(schematic.getSchemOwner()).getUUID().equals(player.getUniqueId())) {
|
if(!WarkingUser.get(schematic.getSchemOwner()).getUUID().equals(player.getUniqueId())) {
|
||||||
player.sendMessage("§6Owner: §7" + WarkingUser.get(schematic.getSchemOwner()).getUserName());
|
player.sendMessage("§6Owner: §7" + WarkingUser.get(schematic.getSchemOwner()).getUserName());
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren