Files
HuskHomes/common/src/main/java/net/william278/huskhomes/command/DisabledCommand.java
T
2022-08-22 17:29:58 +01:00

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);
}
}