Typ clickable
Dieser Commit ist enthalten in:
Ursprung
8f8db48af7
Commit
f6e9ac9ebd
@ -311,7 +311,13 @@ public class SchematicCommand implements CommandExecutor {
|
||||
return;
|
||||
|
||||
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());
|
||||
for(int i = checkedSchematics.size() -1; i >= 0; i--) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren