Added copy to clipboard message click event

This commit is contained in:
themode 2021-03-05 14:30:50 +01:00
parent 55179082e9
commit c253a27260
2 changed files with 6 additions and 1 deletions

View File

@ -48,6 +48,11 @@ public class ChatClickEvent {
return new ChatClickEvent("suggest_command", command);
}
@NotNull
public static ChatClickEvent copyToClipboard(@NotNull String text) {
return new ChatClickEvent("copy_to_clipboard", text);
}
@NotNull
protected String getAction() {
return action;

View File

@ -356,7 +356,7 @@ public class Entity implements Viewable, EventHandler, DataContainer, Permission
}
@Override
public boolean removeViewer(@NotNull Player player) {
public final boolean removeViewer(@NotNull Player player) {
synchronized (this.entityTypeLock) {
return removeViewer0(player);
}