classpublicPriority 1
WhitelistStatusCommand
com.hypixel.hytale.server.core.modules.accesscontrol.commands.WhitelistStatusCommand
extends CommandBase
0
Methods
0
Public Methods
1
Fields
1
Constructors
Constants
MessageMESSAGE_MODULES_WHITELIST_STATUS= Message.translation("server.modules.whitelist.status")
Constructors
public
WhitelistStatusCommand(HytaleWhitelistProvider whitelistProvider)Fields
Private/Package Fields (1)
private
HytaleWhitelistProvider whitelistProviderInheritance
Parent
Current
Interface
Child
Use mouse wheel to zoom, drag to pan. Click nodes to navigate.
Related Classes
Source Code
package com.hypixel.hytale.server.core.modules.accesscontrol.commands;
import com.hypixel.hytale.server.core.Message;
import com.hypixel.hytale.server.core.command.system.CommandContext;
import com.hypixel.hytale.server.core.command.system.basecommands.CommandBase;
import com.hypixel.hytale.server.core.modules.accesscontrol.provider.HytaleWhitelistProvider;
import com.hypixel.hytale.server.core.util.message.MessageFormat;
import javax.annotation.Nonnull;
public class WhitelistStatusCommand extends CommandBase {
@Nonnull
private static final Message MESSAGE_MODULES_WHITELIST_STATUS = Message.translation("server.modules.whitelist.status");
@Nonnull
private final HytaleWhitelistProvider whitelistProvider;
public WhitelistStatusCommand(@Nonnull HytaleWhitelistProvider whitelistProvider) {
super("status", "server.commands.whitelist.status.desc");
this.whitelistProvider = whitelistProvider;
}
@Override
protected void executeSync(@Nonnull CommandContext context) {
context.sendMessage(MESSAGE_MODULES_WHITELIST_STATUS.param("status", MessageFormat.enabled(this.whitelistProvider.isEnabled())));
}
}