13
0
Dieser Commit ist enthalten in:
Lixfel 2019-09-25 18:43:52 +02:00
Ursprung 8f8db48af7
Commit f6e9ac9ebd

Datei anzeigen

@ -311,7 +311,13 @@ public class SchematicCommand implements CommandExecutor {
return; return;
player.sendMessage("§eName: §7" + schematic.getSchemName()); player.sendMessage("§eName: §7" + schematic.getSchemName());
player.sendMessage("§eTyp: §7" + schematic.getSchemType().name());
TextComponent type = new TextComponent("§eTyp: §7" + schematic.getSchemType().name());
if(WarkingUser.get(schematic.getSchemOwner()).getUUID().equals(player.getUniqueId())){
type.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.fromLegacyText("§eTyp ändern")));
type.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/schem changetype " + schematic.getSchemName()));
}
player.spigot().sendMessage(type);
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--) {