Divanaicho Boy

Create a cinematic Minecraft animation where an admin player walks towards another player while holding a mace. The admin stops directly in front of them and stares at them for a moment. Suddenly, the admin raises the mace and smashes the player with it. The player gets launched high into the sky with a massive BOOM sound effect, screen shake, and flying particles.

Make the camera switch to the admin's point of view for EVERYONE on the server, so all players see the animation from the same cinematic camera perspective. Make everyone's screen focus on the ban scene.

As the player flies away, display huge red text across everyone's screen:

"PLAYER PERMANENTLY BANNED"

Play a dramatic ban sound effect for everyone. Finally, the admin puts the mace over their shoulder and casually walks away.

Make it smooth, cinematic, dramatic, and funny, with Minecraft-style graphics and animations. with /ban playername how long reason /unban playername and /banhistory

Kodari AI
KodariNov 1 at 7:02 pm 1
CinematicBanHammer
A cinematic Minecraft plugin that transforms the ban command into a dramatic, funny animation. When an admin executes /ban, the plugin forces a third-person camera view for all online players, focusing on the admin approaching the target while holding a mace. The admin stops, stares, then smashes the player, launching them skyward with a massive BOOM sound, screen shake, and flying particles. Huge red text "PLAYER PERMANENTLY BANNED" displays across every screen with a dramatic sound effect. The admin then casually walks away with the mace over their shoulder. Includes /unban and /banhistory commands for full ban management.

A server plugin can handle the ban commands, shared spectator camera, title, sounds, and particles. The exact raised-mace and over-the-shoulder player poses require custom animation assets, though.

Kodari Studio can create those assets once enabled under Project Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features. Would you like a vanilla-style approximation in the meantime?

Divanaicho Boy

also make it an minecraft plugin and make it actuly work

Kodari AI
KodariNov 1 at 7:03 pm 2
  1. Add /ban, /unban, and /banhistory with timed and permanent bans.

  2. Build the shared cinematic using vanilla entities, a spectator camera, sounds, particles, and titles.

  3. Restore viewers’ original locations and game modes when the scene ends.

Created the ban plugin with a shared spectator-camera scene, mace impact, particles, sounds, and ban history.

  • /ban <player> <duration|permanent> <reason> — durations include 30m, 2h, and 7d

  • /unban <player>

  • /banhistory [player]

The cinematic uses vanilla armor-stand approximations rather than custom player animations. Offline players are banned without a scene. The plugin targets Minecraft 1.21.4; the mace requires Minecraft 1.21 or newer.

Divanaicho Boy

and make it 1.21.11 where do i dowload

Kodari AI
KodariNov 1 at 7:04 pm 2

I’ll create the plugin for Minecraft 1.21.11 with persistent bans and a vanilla-style cinematic. I’ll include the download steps below.

Created the plugin targeting Minecraft 1.21.11. Use /ban <player> <duration|permanent> <reason>, /unban <player>, and /banhistory <player>.

To download the jar:

  1. On desktop, click Compile in the top bar. On phone, tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. Once it succeeds, click Download.

If compilation fails, use Auto-fix in the chat or Fix in the build window. The cinematic uses vanilla-style approximations rather than custom player animations.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
4 340
src/main/java/com/kodari/cinematicbans/CinematicBans.java
package com.kodari.cinematicbans;

import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XSound;
import com.cryptomorin.xseries.particles.XParticle;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.SkullMeta;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.util.EulerAngle;
import org.bukkit.util.Vector;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CinematicBans extends JavaPlugin implements Listener {
    private File dataFile;
    private YamlConfiguration data;
    private Scene scene;
    private static final Pattern DURATION = Pattern.compile("(\\d+)([smhdw])", Pattern.CASE_INSENSITIVE);

    @Override
    public void onEnable() {
        dataFile = new File(getDataFolder(), "bans.yml");
        data = YamlConfiguration.loadConfiguration(dataFile);
        getServer().getPluginManager().registerEvents(this, this);
    }

    @Override
    public void onDisable() {
        if (scene != null) scene.finish();
        saveData();
    }

    private void saveData() {
        try {
            if (!getDataFolder().exists()) getDataFolder().mkdirs();
            data.save(dataFile);
        } catch (IOException e) {
            getLogger().severe("Could not save bans: " + e.getMessage());
        }
    }

    @EventHandler
    public void onLogin(PlayerLoginEvent event) {
        String key = "active." + event.getPlayer().getUniqueId();
        if (!data.contains(key)) return;
        long until = data.getLong(key + ".until");
        if (until > 0 && until <= System.currentTimeMillis()) {
            data.set(key, null);
            saveData();
            return;
        }
        String reason = data.getString(key + ".reason", "No reason supplied");
        String duration = until == 0 ? "Permanent" : new java.util.Date(until).toString();
        event.disallow(PlayerLoginEvent.Result.KICK_BANNED, ChatColor.RED + "You are banned.\nReason: " + reason + "\nExpires: " + duration);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        String name = command.getName().toLowerCase(Locale.ROOT);
        if (name.equals("cinematicban")) {
            if (args.length < 3) return false;
            long duration = parseDuration(args[1]);
            if (duration < 0 || (duration > 0 && duration > Long.MAX_VALUE - System.currentTimeMillis())) {
                sender.sendMessage(ChatColor.RED + "Use permanent or a duration such as 30m, 2h, 7d or 1w.");
                return true;
            }
            if (scene != null) {
                sender.sendMessage(ChatColor.RED + "A ban cinematic is already playing. Try again shortly.");
                return true;
            }
            OfflinePlayer target = Bukkit.getOfflinePlayer(args[0]);
            if (!target.hasPlayedBefore() && !target.isOnline()) {
                sender.sendMessage(ChatColor.RED + "That player has never joined this server.");
                return true;
            }
            String reason = String.join(" ", java.util.Arrays.copyOfRange(args, 2, args.length));
            long until = duration == 0 ? 0 : System.currentTimeMillis() + duration;
            String key = "active." + target.getUniqueId();
            data.set(key + ".name", target.getName());
            data.set(key + ".reason", reason);
            data.set(key + ".until", until);
            List<String> history = data.getStringList("history." + target.getUniqueId());
            history.add(new java.util.Date() + " | " + sender.getName() + " | " + args[1] + " | " + reason);
            data.set("history." + target.getUniqueId(), history);
            saveData();
            Player online = target.getPlayer();
            if (online != null && sender instanceof Player admin && !admin.getUniqueId().equals(online.getUniqueId())) {
                scene = new Scene(admin, online, reason, until == 0);
                scene.start();
            } else if (online != null) {
                online.kickPlayer(ChatColor.RED + "Banned: " + reason);
            }
            sender.sendMessage(ChatColor.GREEN + "Banned " + target.getName() + " (" + args[1] + ").");
            return true;
        }
        if (name.equals("cinematicunban")) {
            if (args.length != 1) return false;
            OfflinePlayer target = Bukkit.getOfflinePlayer(args[0]);
            String key = "active." + target.getUniqueId();
            if (!data.contains(key)) {
                sender.sendMessage(ChatColor.RED + "That player has no active ban from this plugin.");
                return true;
            }
            data.set(key, null);
            saveData();
            sender.sendMessage(ChatColor.GREEN + "Unbanned " + args[0] + ".");
            return true;
        }
        if (name.equals("banhistory")) {
            if (args.length != 1) return false;
            OfflinePlayer target = Bukkit.getOfflinePlayer(args[0]);
            List<String> history = data.getStringList("history." + target.getUniqueId());
            sender.sendMessage(ChatColor.GOLD + "Ban history for " + args[0] + ":");
            if (history.isEmpty()) sender.sendMessage(ChatColor.GRAY + "No bans recorded.");
            else for (String entry : history) sender.sendMessage(ChatColor.GRAY + entry);
            return true;
        }
        return false;
    }

    private long parseDuration(String input) {
        if (input.equalsIgnoreCase("permanent") || input.equalsIgnoreCase("perm")) return 0;
        Matcher matcher = DURATION.matcher(input);
        if (!matcher.matches()) return -1;
        try {
            long value = Long.parseLong(matcher.group(1));
            long factor = switch (matcher.group(2).toLowerCase(Locale.ROOT)) {
                case "s" -> 1000L;
                case "m" -> 60_000L;
                case "h" -> 3_600_000L;
                case "d" -> 86_400_000L;
                default -> 604_800_000L;
            };
            return value == 0 ? -1 : Math.multiplyExact(value, factor);
        } catch (ArithmeticException | NumberFormatException ex) {
            return -1;
        }
    }

    private record Viewer(Location location, GameMode mode, Entity spectatorTarget) {}

    private final class Scene {
        private final Player admin;
        private final Player victim;
        private final String reason;
        private final boolean permanent;
        private final Map<UUID, Viewer> viewers = new HashMap<>();
        private final List<Entity> actors = new ArrayList<>();
        private ArmorStand camera;
        private ArmorStand actor;
        private BukkitTask task;
        private Location origin;
        private Vector direction;
        private int tick;
        private boolean finished;

        private Scene(Player admin, Player victim, String reason, boolean permanent) {
            this.admin = admin;
            this.victim = victim;
            this.reason = reason;
            this.permanent = permanent;
        }

        private void start() {
            origin = victim.getLocation().clone();
            direction = origin.getDirection().setY(0);
            if (direction.lengthSquared() < 0.001) direction = new Vector(0, 0, 1);
            direction.normalize();
            Location actorLocation = origin.clone().add(direction.clone().multiply(4));
            actorLocation.setDirection(direction.clone().multiply(-1));
            actor = origin.getWorld().spawn(actorLocation, ArmorStand.class, stand -> {
                stand.setGravity(false);
                stand.setArms(true);
                stand.setBasePlate(false);
                ItemStack head = XMaterial.matchXMaterial("PLAYER_HEAD").map(XMaterial::parseItem).orElse(null);
                if (head != null && head.getItemMeta() instanceof SkullMeta meta) {