mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-25 10:17:44 +01:00
Remove /hd fix in 1.8+
This commit is contained in:
parent
15828f320d
commit
828870345e
@ -47,8 +47,8 @@ public class HologramsCommandHandler implements CommandExecutor {
|
||||
registerSubCommand(new TeleportCommand());
|
||||
registerSubCommand(new MovehereCommand());
|
||||
registerSubCommand(new AlignCommand());
|
||||
registerSubCommand(new FixCommand());
|
||||
registerSubCommand(new ReloadCommand());
|
||||
registerSubCommand(new FixCommand());
|
||||
|
||||
registerSubCommand(new RemovelineCommand());
|
||||
registerSubCommand(new SetlineCommand());
|
||||
|
@ -7,6 +7,7 @@ import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.gmail.filoghost.holographicdisplays.HolographicDisplays;
|
||||
import com.gmail.filoghost.holographicdisplays.commands.Colors;
|
||||
import com.gmail.filoghost.holographicdisplays.commands.CommandValidator;
|
||||
import com.gmail.filoghost.holographicdisplays.commands.Strings;
|
||||
@ -35,6 +36,9 @@ public class FixCommand extends HologramSubCommand {
|
||||
|
||||
@Override
|
||||
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
||||
|
||||
CommandValidator.isTrue(!HolographicDisplays.is1_8(), "This command is no longer necessary in 1.8+. The holograms already use the correct ambient light.");
|
||||
|
||||
NamedHologram hologram = NamedHologramManager.getHologram(args[0].toLowerCase());
|
||||
CommandValidator.notNull(hologram, Strings.NO_SUCH_HOLOGRAM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user