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,17 +332,15 @@ 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());
|
TextComponent mehr = new TextComponent("§9mehr...");
|
||||||
TextComponent mehr = new TextComponent("§9mehr...");
|
mehr.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/schem getmoreinfo " + schematic.getSchemName()));
|
||||||
mehr.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/schem getmoreinfo " + schematic.getSchemName()));
|
player.spigot().sendMessage(mehr);
|
||||||
player.spigot().sendMessage(mehr);
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren