mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-27 06:03:01 +02:00
Added copy to clipboard message click event
This commit is contained in:
parent
55179082e9
commit
c253a27260
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user