Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.wilko.nms.command;
- import net.minecraft.network.protocol.game.PacketPlayOutEntityEffect;
- import net.minecraft.world.effect.MobEffect;
- import net.minecraft.world.effect.MobEffectList;
- import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
- import org.mineacademy.fo.annotation.AutoRegister;
- import org.mineacademy.fo.command.SimpleCommand;
- @AutoRegister
- public final class GlowCommand extends SimpleCommand {
- public GlowCommand() {
- super("glow");
- }
- @Override
- protected void onCommand() {
- PacketPlayOutEntityEffect packet = new PacketPlayOutEntityEffect(getPlayer().getEntityId(), new MobEffect(MobEffectList.a(24)));
- ((CraftPlayer) getPlayer()).getHandle().b.a(packet);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement