mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Start command refactor
This commit is contained in:
1 parent
39e0b25d46
commit
3e27f7c5b1
57 files changed
+728
-384
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package net.william278.huskhomes.user;
|
||||
|
||||
import de.themoep.minedown.adventure.MineDown;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface CommandUser {
|
||||
|
||||
@NotNull
|
||||
Audience getAudience();
|
||||
|
||||
boolean hasPermission(@NotNull String permission);
|
||||
|
||||
default void sendMessage(@NotNull Component component) {
|
||||
getAudience().sendMessage(component);
|
||||
}
|
||||
|
||||
default void sendMessage(@NotNull MineDown mineDown) {
|
||||
this.sendMessage(mineDown.toComponent());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user