mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
19 lines
624 B
Java
19 lines
624 B
Java
package net.william278.huskhomes.command;
|
|
|
|
import net.william278.huskhomes.HuskHomes;
|
|
import net.william278.huskhomes.player.OnlineUser;
|
|
import net.william278.huskhomes.util.Permission;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class DisabledCommand extends CommandBase {
|
|
|
|
public DisabledCommand(@NotNull HuskHomes implementor) {
|
|
super("", Permission.COMMAND_DISABLED_MESSAGE, implementor);
|
|
}
|
|
|
|
@Override
|
|
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
|
|
plugin.getLocales().getLocale("error_command_disabled").ifPresent(onlineUser::sendMessage);
|
|
}
|
|
}
|