Author: Arthur

  • MythicMobs: Custom Bosses Without Writing Java

    MythicMobs: Custom Bosses Without Writing Java

    A custom boss is the cheapest real content a Minecraft server can ship. No new map, no client mod, no resource pack: one YAML file, a spawn command, and your players have something to log in for. This guide helps you go from an empty Mobs folder to a boss that spawns, fights, drops loot, and survives contact with forty players at once.

    It is for server owners and admins who can edit a config file but do not want to maintain a Java plugin, and for developers who need a fast prototype before committing code. Everything below was tested on a Paper 1.21.4 server running MythicMobs 5.9 with twenty bots hammering the arena, which is where “fun on paper” boss designs fall apart.

    Install MythicMobs and verify it before you write a single line of config

    Download the plugin from the official MythicCraft site or the MythicMobs GitHub repository. Drop the jar into plugins/, then restart the server. A /reload will load the plugin but can leave skill registries half-initialized, and the errors that follow are impossible to debug.

    MythicMobs runs happily alone. These optional dependencies are worth adding if your boss design needs them:

    • PlaceholderAPI — lets you use placeholders in boss names, messages, and triggers. See the PlaceholderAPI wiki for the expansion list.
    • ModelEngine or MythicCrucible — custom models and item-based abilities when a plain zombie is not enough.
    • A permissions plugin — so /mm stays staff-only. Do not hand mythicmobs.admin to helpers.

    Verification is three commands: /mm reload should report no config errors, /mm mobs list should show your internal mob names, and /mm spawn BoneWarden ~ ~ ~ world should put the mob in front of you. If the spawn works but the mob is invisible or silent, you have an entity type typo, not a skill problem. Cross-check type names against the Minecraft entity reference.

    A minimal boss file goes in plugins/MythicMobs/Mobs/bonewarden.yml. The key is the internal mob name, not the filename:

    BoneWarden:
      Type: ZOMBIE
      Display: '&cBone Warden'
      Health: 400
      Damage: 8
      Armor: 6
      Options:
        MovementSpeed: 0.24
        FollowRange: 32
        AlwaysShowName: true
        PreventOtherDrops: true
        Despawn: false
      Equipment:
        - IRON_HELMET HEAD
        - IRON_CHESTPLATE CHEST
        - DIAMOND_SWORD HAND
      Skills:
        - skill{s=BossSlam} @target ~onTimer:120
        - skill{s=BossPhaseShift} @self ~onDamaged

    Skills and triggers: the part that makes it a boss

    A mob with 400 health is a damage sponge. A mob that announces its attacks, changes behavior at half health, and does something dramatic when it dies is a fight. MythicMobs splits the work cleanly: triggers decide when something happens, skills decide what happens, and mechanics inside a skill do the actual work.

    TriggerFires whenTypical use
    ~onTimer:120Every 120 ticks (6 seconds)Rotating attacks, arena effects, phase checks
    ~onDamagedThe boss takes damageRetaliation, phase gates, participation tracking
    ~onAttackThe boss lands a hitOn-hit debuffs, lifesteal flavor
    ~onDeathThe boss diesRewards, broadcasts, summon cleanup
    ~onSpawnThe boss spawnsIntro roar, arena lockdown, buff allies

    Phases are a skill that gates itself on remaining health. Trigger it from ~onDamaged with a health condition, apply an aura, then reference that aura in other skills so the second half behaves differently. Make the transition visible: a message, a sound, a short pause while the boss repositions. Players remember the phase change more than the attacks.

    Here is a slam that telegraphs itself. Sound and particles fire immediately, damage lands 1.5 seconds later, and players who step out of the four-block radius take nothing:

    BossSlam:
      Cooldown: 9
      Skills:
        - effect:sound{s=block.anvil.land;volume=1.5;pitch=0.6} @self
        - effect:particles{p=smoke;amount=40;radius=4} @self
        - message{m="&eThe Warden raises its blade!"} @PlayersInRadius{r=24}
        - delay 30
        - damage{amount=7} @PlayersInRadius{r=4}
        - throw{velocity=0.6;velocityY=0.35} @PlayersInRadius{r=4}

    Drops, experience, and a guaranteed participation reward

    Boss drops are where servers get greedy. PreventOtherDrops: true stops vanilla junk from cluttering the floor, then a short Drops: list with explicit chances keeps the table readable:

    • Always drop: the boss’s signature material, 1-1, 100 percent. This is the participation floor.
    • Often drop: enchanted gear or a totem at 25-40 percent.
    • Rare drop: a cosmetic or cosmetic-adjacent trophy at 2-5 percent. Never gate progression behind it.
    • Experience: set Experience: on the mob, or hand out XP with a giveexp mechanic so party members who tagged the boss also get paid.

    Participation rewards need one extra step, because vanilla drops do not know who hit the boss. The reliable pattern is a tag item: an ~onDamaged skill gives each attacker one boss tag, gated so it fires once per player. Players trade the tag at an NPC or crate for their reward, so someone who fought two minutes and died still walks away with something. Announce the top damager on ~onDeath; leaderboard credit drives the next event more than loot does.

    Spawning: command, spawner, or event-only arena

    Three routes exist here, and they serve different purposes.

    • Command spawn — /mm spawn BoneWarden <x> <y> <z> <world>. Perfect for testing and for staff-run events. Pair it with a command block or a scheduled task so the arena boss appears at a fixed time on Saturday.
    • MythicMobs spawner — created with the spawner wand, configured in plugins/MythicMobs/Spawners/ with a radius, a mob list, a cooldown, and a max-mob count. Best for repeatable open-world content. Keep the spawner far from spawn chunks and give it a small radius.
    • Event-only arena — no spawner. The boss is summoned by script when the gate opens, and Despawn: false stops it vanishing mid-fight. This is the safest option: you control the time, the player count, and the cleanup.

    Whichever route you pick, do not drop the boss into your normal spawn tables. An endgame mob that wanders into a new player’s first night is a refund request, not content. If you run a PvP-adjacent server, read The Lifesteal Plugin Guide: Hearts, Bans, and Player Retention first; boss loot and heart economies interact in surprising ways.

    Balance, performance, and a test checklist that catches the ugly stuff

    Telegraph everything, one-shot nothing

    Every heavy attack needs at least a one-second warning: a sound cue, a particle ring, a chat line. Damage that one-shots a full-diamond player teaches nothing except that the boss is unfair. Aim for 30-40 percent of a player’s health, then give the group eight to twelve seconds to eat, regroup, and re-engage. Downtime is where players talk to each other, and talking players come back.

    Starting values to tune in testing, not rules to ship:

    • Health: 400 for a five-player fight, roughly doubled per extra group of five.
    • Heavy attack cooldown: 9 seconds between telegraphed slams.
    • Arena radius: 24 blocks, so runners cannot kite the boss into someone’s base.
    • Entity cap: 12 summons alive at once, including boss-spawned adds.

    Cap the summons before they cap your TPS

    Every boss that summons adds is one config mistake away from a lag machine. Give the boss a small summon amount, cap the total alive, and clean up on death with an ~onDeath skill that removes tagged summons. Keep FollowRange modest so pathfinding does not scan half the world, and skip particle-heavy skills on adds. If your tick rate still sags, the techniques in Taming Entity Counts: Reducing Mob Lag on Busy SMPs apply directly to boss arenas.

    Test like a player, not like an admin

    • /mm reload after every edit, and read the console. A single failed skill line disables that skill silently.
    • /mm spawn the boss alone, then with three friends, then with ten. Health and damage scale very differently at each size.
    • Kill it twice with /mm killall between runs to confirm no leftover summons.
    • Watch the arena on /tps and /mspt during the fight, not before it.
    • Bedrock caveat: Geyser players see boss bars, custom names, and particle effects inconsistently, and some client-side effects simply do not render. Test the fight on a Bedrock client before an event; if your mechanics rely on reading a particle, add a chat or sound cue as backup.

    Pros and cons of building bosses in MythicMobs

    Pros: no Java build pipeline, config-only iteration measured in seconds, a huge library of mechanics and conditions, plus spawner and drop systems included. A designer can tune a fight without asking a developer for a jar.

    Cons: YAML is unforgiving about indentation, one broken line can silently disable a skill, and custom models drag in extra dependencies. Documentation lags behind releases, so you will occasionally read source or ask in Discord. If you only need one scripted encounter, a datapack may be lighter; for five bosses and an event calendar, MythicMobs pays for itself.

    Common mistakes and how to avoid them

    • Testing solo. A 400-health boss feels great alone and becomes a ten-minute slog with eight players. Test at your real event size.
    • No death cleanup. Orphaned summons linger, pile up across events, and quietly eat your entity budget. Write the cleanup skill on day one.
    • Reloading instead of restarting. Half-loaded registries produce ghost skills that work in testing and fail in production.
    • Gating progression behind a 2 percent drop. Players run the event, get nothing, and stop coming. Guarantee the floor, gamble the ceiling.
    • Ignoring the arena. A boss with knockback and no walls throws players into lava, and that is your fault, not the boss’s.

    Expert tip: version your boss files in git and keep a changelog line per balance pass. When players say the fight “feels different,” a diff answers in ten seconds. For broader plugin hygiene, see How to Audit and Trim Plugins to Reduce Server Lag.

    Frequently Asked Questions

    Do I need Java to make a MythicMobs boss?

    No. A complete boss with health, equipment, skills, drops, and spawn behavior is written in YAML inside the Mobs folder. Java is only needed for new mechanics or deep integration with another plugin.

    How much health should a custom boss have?

    Start around 400 health for a five-player fight and roughly double it per additional group of five. Tune on your real server with real players rather than in single-player testing.

    How do I stop boss summons from lagging the server?

    Cap the number of summons alive at once, keep follow range small, remove tagged summons in an onDeath skill, and avoid heavy particle effects on adds. Check TPS and MSPT during a live test.

    Do MythicMobs bosses work for Bedrock players via Geyser?

    Mostly. The fight runs, but boss bars, custom names, and particle effects can render differently or not at all on Bedrock clients. Add chat and sound cues so no mechanic depends only on a visual effect.

    Ship a fight people talk about

    You now have the full loop: install and verify the plugin, write one boss file, wire triggers to telegraphed skills, hand out fair drops, and spawn it deliberately. Build the small version, run it with five players, and watch where they die. That teaches you more about balance than any spreadsheet.

    Next step: pick one section from this guide and implement only that tonight. The boss file is a twenty-minute job. When it works, add the phase change, then the participation tag, then the arena.

  • TCPShield vs Cloudflare Spectrum for Minecraft

    TCPShield vs Cloudflare Spectrum for Minecraft

    If you have ever watched a 60-player SMP die in ninety seconds because someone pointed a botnet at your IP, you already know why this comparison exists. This guide is written to help you choose the network layer that sits in front of your world and eats the junk traffic before it reaches your JVM. It is for server owners, network admins, and proxy operators who are deciding between TCPShield and Cloudflare Spectrum and want the tradeoffs stated plainly instead of buried in marketing copy.

    We built this from the primary documentation of both providers, from Paper and Velocity documentation, and from hands-on testing: a Paper server behind Velocity, with Geyser for Bedrock players, fronted first by TCPShield and then by a Spectrum application. We measured join times, tick stability during synthetic join floods, and TCP round-trip time from three regions. Neither provider paid for this article, and no pricing here is quoted as a fixed number because both vendors change plans regularly. Verify current pricing on their own pages before you budget.

    Why Minecraft Attacks Break Ordinary Server Setups

    Minecraft is an unusually easy target because the protocol is public and the client is free. A vanilla Java server listens on TCP 25565, and Bedrock listens on UDP 19132. Java connections are long-lived TCP streams that must stay open for hours, which means every protection layer has to handle state, not just packets. Bedrock is stateless UDP, which means anyone can spoof the source address and use your server as a reflector.

    The damage rarely comes from raw bandwidth alone. The cheap attacks are the ones that hurt:

    • TCP SYN floods exhaust the connection table before a single player logs in, so legitimate clients time out during the handshake.
    • Established-connection data floods open real sockets and then push garbage, forcing your Netty threads to read and discard it.
    • UDP amplification bounces spoofed DNS or NTP responses at your Bedrock port, multiplying a small request into a large reply aimed at you.
    • Handshake spam completes a valid Minecraft handshake and then vanishes, burning CPU on protocol decoding while your player count looks normal.
    • Bot joins are worse: fake accounts actually spawn in, fire join events, write to your database, trigger auth plugins, and force chunk loads.

    The lesson from testing is blunt: filtering on the box is too late. By the time Paper sees the packet, your bandwidth is already spent and your event bus is already busy. You need something upstream that drops traffic before it reaches your NIC. That is the entire argument for an anycast DDoS layer, and it is the same argument whether you pick TCPShield or Spectrum. For a broader look at the attack surface, see [Minecraft Server DDoS Protection: Keep Your Server Online].

    How an Anycast DDoS Layer Hides Your Origin IP

    Both providers use anycast. The same public IP is announced from many edge locations at once, and BGP routing sends each player to the nearest one. Your players connect to that edge address, the edge filters and forwards the clean session toward your real machine over a tunnel or a terminated proxy connection. Your origin IP never appears in DNS, never appears in a server list ping response, and never has to accept a packet from a stranger.

    The protection only works if the secret stays secret. In practice that means four things:

    • Publish an SRV record (Java) or a single A record (Bedrock) that points at the provider, not at your host.
    • Bind the backend to localhost or a private interface so it cannot be reached directly, and set server-ip accordingly in server.properties.
    • Allow inbound game ports only from the provider’s published ranges, and drop everything else at the host firewall.
    • Audit leaks: old A records, a plugin that prints your IP, a status page, a Discord bot with a direct connect button.

    TCPShield: Architecture, Plans, and Setup Flow

    TCPShield is built specifically for Minecraft. You create a network in their panel, register your backend server with its IP and port, and receive an anycast hostname and port to hand to players. Traffic is filtered at the edge and delivered to your origin, with the real player IP passed through so plugins like anticheat and ban systems keep working. It also pairs cleanly with a modern proxy; see [Velocity vs BungeeCord: Choosing the Right Minecraft Proxy].

    Plans at a glance

    TCPShield runs a free tier aimed at small servers, paid tiers that scale by protected bandwidth and features, and custom enterprise arrangements. The free tier is genuinely usable for a hobby server, but it comes with limits on bandwidth and feature access that you should read line by line. Treat any number you remember from a forum post as outdated and check the pricing page yourself.

    Setup flow

    1. Create a network and add your backend with its real IP and port.
    2. Copy the assigned anycast address and port.
    3. Point your domain’s SRV record at that hostname, or give players the hostname directly.
    4. Enable PROXY protocol on the backend, for example proxy-protocol = true in velocity.toml.
    5. Restrict the firewall to TCPShield ranges and test with a real client from outside your network.

    Cloudflare Spectrum: Model, Plan Requirement, and When It Fits

    Spectrum is Cloudflare’s layer-4 proxy. You create an application that maps a hostname and edge port to an origin IP and port, choose TCP or UDP, and optionally enable PROXY protocol. Traffic hits the nearest Cloudflare point of presence, gets scrubbed by the same DDoS systems that protect the rest of their network, and is forwarded to you.

    The catch is commercial, not technical. Spectrum is an Enterprise-only product, usually priced as a per-application fee plus per-GB traffic, and it requires your domain to be on a Cloudflare zone. The public plans page lists Spectrum under Enterprise, and the exact numbers come from a sales conversation. For a 20-player survival server, that is a hard no. For an organization already running Enterprise for its website, Spectrum is often the cheapest incremental option because the contract, billing, and support relationship already exist.

    Latency, Bedrock/UDP, and Locking Down the Origin

    Measure latency honestly

    Every provider will tell you their network is fast. Measure three numbers instead of arguing: client-to-edge RTT, edge-to-origin RTT, and total join time. Use mtr or ping from a real client network to the public hostname, watch the provider dashboard for origin latency if it exposes one, and time a cold join with a stopwatch from the main menu. Run it at the same hour on two different days, because a single sample is noise, especially on residential connections.

    Bedrock and Geyser traffic

    Bedrock is UDP on 19132 by default, and Geyser translates it to Java for your backend. UDP has no handshake to inspect and no connection state to rate limit, so a shield that handles only TCP will simply be bypassed by anyone who knows your Geyser port. Confirm that your provider supports UDP on the tier you are buying, keep the Bedrock port closed at the firewall, and let only the provider reach it. If Geyser is your only Bedrock entry point, check its config so the public port is the shielded one. More on cross-play specifics in [Top Java Plugins That Work on Bedrock via GeyserMC].

    Firewall lockdown

    With the origin hidden, the firewall rule is simple: game ports accept traffic from the provider’s published ranges only, and everything else is dropped. Use ufw, nftables, or your host’s security group, and review it after every plan change because provider ranges do change. Close RCON to the world, disable query if you do not use it, and set server-ip to a local address when the proxy runs on the same machine.

    ScenarioTypical fitWhy
    Small SMP, under 30 players, hobby budgetTCPShield free or entry tierMinecraft-aware filtering, minimal setup, no Enterprise contract
    Growing network with Velocity and GeyserTCPShield paid tier with UDPProxy-aware, Bedrock covered, per-server routing in one panel
    Company already on Cloudflare EnterpriseSpectrum application per portOne vendor, contract already in place, massive edge capacity
    Hosting brand reselling serversEither, with custom termsDepends on per-tenant billing model and support SLA

    Pros and Cons

    TCPShield pros: purpose-built for Minecraft, understands handshakes and bot patterns, Bedrock UDP available, free tier to start, fast support from people who know the game.

    TCPShield cons: smaller network than Cloudflare’s, feature and bandwidth limits on cheaper tiers, one more panel to learn, and the proxy termination model means protocol edge cases land on them.

    Spectrum pros: enormous anycast footprint, enterprise-grade volumetric absorption, one dashboard for DNS and security, and a pure layer-4 path that never misreads your protocol.

    Spectrum cons: Enterprise pricing makes it unrealistic for small servers, no Minecraft-specific logic, per-GB billing needs monitoring, and setup assumes you are comfortable with zones and DNS proxying.

    Common Mistakes and Expert Tips

    • Leaving the origin reachable. If port 25565 still answers on your real IP, the shield is decoration. Test from an outside network.
    • Forgetting PROXY protocol. Without it every player appears to come from the proxy IP, so IP bans hit everyone and anticheat logs become useless.
    • Assuming UDP comes free. Bedrock needs explicit UDP support on your tier; verify before you migrate Geyser.

    Frequently Asked Questions

    Is TCPShield free for small Minecraft servers?

    TCPShield offers a free tier aimed at small servers, with limits on protected bandwidth and features. Paid tiers scale up from there. Check their current pricing page before you plan a migration.

    Does Cloudflare Spectrum work with Minecraft Bedrock?

    Yes. Spectrum supports UDP applications, so Bedrock on port 19132 can be proxied. You must configure a UDP application and confirm your plan includes the traffic allowance you need.

    Which one adds less latency?

    A layer-4 pass-through like Spectrum adds the least overhead, while a Minecraft-aware proxy like TCPShield adds slightly more because it terminates and reopens the connection. In practice the difference is small when the edge is close to players, so measure join time from real client regions.

    Do I still need a firewall if I use a DDoS shield?

    Yes. The shield only helps if your origin accepts traffic from the provider and nothing else. Allowlist the provider ranges on your game ports, close RCON and query, and verify from an external network that the real IP does not answer.

    The short version: choose TCPShield when you want Minecraft-aware filtering, Bedrock coverage, and a price that a hobby server can survive. Choose Spectrum when you are already inside Cloudflare Enterprise and want one vendor, one contract, and the largest scrubbing network available. In both cases the shield is only half the job, because an origin IP that still answers directly is an invitation.

    Next step: write down your current player count, peak bandwidth, and whether Geyser is in the mix. Check both pricing pages against those numbers, run a join test through each edge, and lock the firewall before you switch DNS. Your players will never notice a well-run migration, which is exactly the point.

  • Resource Pack Optimization for Large Minecraft Servers

    Resource Pack Optimization for Large Minecraft Servers

    Resource packs are the quickest way to make a server look like itself: a custom GUI, retextured blocks, a title screen with your logo. They are also the quickest way to add thirty seconds to every join and a support ticket that reads “my game freezes when I join.” This guide is for the people who maintain that pack — owners, admins, and the one staff member who knows how to open a zip file — and its goal is simple: help you ship something that still loads on a five-year-old laptop.

    We rebuilt a sample pack from a mid-size survival network, timed cold loads on three client machines, and went to primary sources instead of folklore: the vanilla resource pack format documentation, PackSquash’s repository, Paper’s docs, and Blockbench’s export notes. Every number below is directional. Measure your own pack before you trust any of it.

    Measure Before You Optimize

    Most pack work starts with a tool and ends with a shrug, because nobody wrote down the starting point. Capture four numbers before you touch a texture, and keep them next to the release date.

    • Compressed size — what a player downloads. This is your bandwidth bill and your worst-case first join.
    • Resolution profile — how many files are above 16×16, and how many are 512x or larger. A handful of 2048x GUI sheets outweighs a thousand vanilla-sized blocks.
    • Audio weight — total size of the sounds folders. Uncompressed WAV files are the usual culprit.
    • Cold load time — clear the client’s pack cache, join, and time from “joining world” to a playable screen. Three runs, middle value.
    MetricSample pack beforeAfter a full passWhat it usually means
    Zip sizeRoughly 300–350 MBRoughly 60–90 MBBandwidth and first-join wait drop together
    Files over 256xHundredsDozensVRAM and atlas stitching cost
    Audio folderRoughly 80 MBUnder 20 MBOGG conversion plus trimming
    Cold load time30–45 s8–15 sMostly decoding and upload to GPU

    Those ranges come from one pack on three test machines. Treat the table as a map of where savings live, then find yours.

    Textures: PNG Size, Atlas Layout, and Mipmaps

    Compress PNGs, but know where lossy stops being free

    Start lossless. Oxipng and PackSquash’s PNG recompression strip metadata and pick better filter combinations without touching a pixel. That buys a modest cut with zero risk, and it will not rescue a pack full of 2048x renders, because the pixels are the problem.

    Lossy quantization reduces each image to a palette. It is acceptable on noisy surfaces players never read closely: stone variants, grass, dirt, foliage, distant terrain, particle sheets. It is a bad idea on text, GUI icons, fonts, and anything with a hard one-pixel border, where banding looks like a bug rather than a style. Quantize in a branch, then check a shop GUI, a sign, and the inventory screen at default scale before merging.

    Padding, atlas layout, and mipmap bleeding

    Texture bleeding — seams, flickering edges, colors leaking from a neighboring tile — is a layout problem, not a compression one. The client stitches block textures into an atlas and builds mipmaps from it, and at lower mip levels a tile samples pixels outside its own bounds. Packs that mix 16x and 128x art invite it.

    • Keep tiles square and consistently sized within a block family so the atlas packs cleanly.
    • Set padding in your atlas definition. Modern versions read it from assets/minecraft/atlases/blocks.json, and the schema has changed since 1.19.3 — confirm field names against the wiki page for your target version instead of copying an old tutorial.
    • Match resolution where you can afford it. A 16x tile beside 128x neighbors is the classic bleeding case.
    • Test at mipmap levels 0 and 4. Players control that setting and you cannot force it server-side.

    Audio and Asset Cleanup

    Convert audio to OGG Vorbis and trim the silence

    The vanilla sound engine reads OGG Vorbis. WAV files in a pack are ignored by the client, yet authors ship them anyway — you pay for the bytes and hear nothing. Convert with ffmpeg, keep mono for positional sounds so the client can place them in 3D space, and reserve stereo for music and stingers.

    ffmpeg -i raw/click.wav -ac 1 -c:a libvorbis -q:a 4 -ar 44100 assets/minecraft/sounds/custom/click.ogg

    Then trim. A two-second sting with 400 ms of leading silence feels broken in game and costs bytes in every client cache. Batch-trim leading and trailing silence, and delete the source WAVs from the build folder rather than leaving them beside the OGGs.

    Delete what nothing references

    Every pack maintained for a year contains orphans. Walk the model JSON files, collect every textures/ and parent reference, and diff that list against the files on disk; whatever is left over may still be decoded during pack load. The same pass finds duplicate models: three copies of one custom sword under different filenames, each pointing at the same texture. Collapse them into a single model with overrides. PackSquash also prunes files that match vanilla exactly, a free win if your pack began as a full vanilla copy.

    A PackSquash Pipeline You Can Run in CI

    PackSquash is the practical default: it recompresses PNGs, transcodes audio to OGG, rewrites model and atlas references, prunes redundant files, and can strip data a given pack_format never reads. It is fast enough to run on every commit, which is the real value — optimization becomes a property of the pipeline instead of a chore someone remembers twice a year.

    # pack.toml (trimmed; see the repository README for the full schema)
    [output_file]
    path = "build/server-pack.zip"
    
    [compression]
    zip_spec = "deflate"
    compression_level = 9
    
    [optimize]
    lossless_png = true
    transcode_ogg = true
    color_quantization_target = "auto"

    A GitHub Actions job that gates a pull request on pack size and publishes the hash your deploy step needs:

    name: build-pack
    on: [push, pull_request]
    jobs:
      pack:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - name: Install PackSquash
            run: |
              curl -L -o ps.zip https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-x86_64-unknown-linux-musl.zip
              unzip -o ps.zip -d /usr/local/bin && chmod +x /usr/local/bin/packsquash
          - name: Build optimized pack
            run: packsquash --config pack.toml pack/ build/server-pack.zip
          - name: Record size and hash
            run: |
              ls -lh build/server-pack.zip
              sha1sum build/server-pack.zip | tee build/sha1.txt

    Check the README for the version you pin; flag names move between releases.

    Delivery: CDN, Caching, MIME Types, and SHA-1

    A small pack served badly still feels slow. Put the artifact behind a CDN or object storage, not on the box running your world, and set Content-Type: application/zip explicitly — some stacks guess application/octet-stream, and players behind strict proxies get a download prompt on the join screen. Leave range requests on so a failed download can resume.

    • Hash the filename on deploy. server-pack-3f9a1c.zip can be cached forever at the edge; pack.zip cannot, so every deploy is a cold cache for every player.
    • Update the SHA-1 every time. A hash that does not match the served bytes makes clients re-download on every join — the usual cause of “the pack updates constantly.”
    • Keep the previous artifact up for a few days so joins in flight during a deploy do not fail mid-download.
    • Check proxy behavior. BungeeCord, Velocity, and pack-forwarding plugins each handle the resource pack fields differently.

    None of this touches tick time — for that, see [Understanding MSPT and Tick Rate: A Server Owner’s Performance Guide]. Pack work is a client-side and network-side optimization, and its natural partner is [Resource Pack Basics: Hosting, Distribution, and Forcing Packs].

    Client memory, VRAM, and Bedrock via Geyser

    Every high-resolution texture is uploaded to GPU memory and held for the session. A pack of 512x sheets can push a 2 GB integrated GPU into swapping, and the symptom is not a crash — it is stutter while flying, late chunk rendering, and a client that dies on alt-tab.

    Bedrock changes the math. Geyser can forward packs, but Bedrock’s format is different: no pack.mcmeta, a different manifest, no Java model JSON. Anything you force through Geyser needs a separate Bedrock build, and mobile size ceilings are lower than people expect. Client pressure from mob counts is covered in [Taming Entity Counts: Reducing Mob Lag on Busy SMPs].

    Pros and Cons of an Aggressive Optimization Pass

    • Pro: Faster joins and fewer “my game froze” reports, especially from laptop players.
    • Pro: Lower egress cost and a CDN bill that stops scaling with player count.
    • Pro: A repeatable build means pack changes are reviewed, hashed, and deployable by anyone on staff.
    • Con: Lossy quantization is irreversible if you delete the source textures. Keep the source project in version control.
    • Con: Pruning breaks things quietly — a sound referenced only from a plugin path can vanish with no build error.

    Common Mistakes and How to Avoid Them

    • Optimizing before measuring. Keep a baseline row per release. It settles every later argument.
    • Forgetting the SHA-1. Wire the hash into deploy automation; a stale hash is invisible in testing and obvious to players.
    • Quantizing GUI and fonts. Text is where banding shows instantly. Keep those files lossless.
    • Testing only on your own machine. Your desktop is the best-case client. Ask a low-end laptop user to join after each major change.
    • Bundling the source folder. The zip should contain only what the client reads. Editors, PSDs, and .bbmodel files belong in git.

    One tip from the rebuild: test on a client with no cache and a server that forces the pack. The bleeding atlas and the stale hash both appeared only on a cold join.

    Frequently Asked Questions

    What is a reasonable resource pack size for a Minecraft server?

    Aim for under 50 MB for a forced pack on a public server, and under 100 MB only when the pack is optional. Above that, first joins get slow and mobile Bedrock clients struggle.

    Does PackSquash make resource packs smaller?

    Yes. It recompresses PNGs, transcodes audio to OGG, prunes files that match vanilla, and rewrites references so the pack still works. Run it in CI so every build is optimized the same way.

    Why do my textures bleed or flicker at a distance?

    Texture bleeding comes from atlas packing and mipmaps, not compression. Keep tile sizes consistent, add padding in your atlas definition, and test with the client mipmap setting at 4.

    Does a large resource pack lag the server?

    Rarely. The pack is processed on the client and delivered over HTTP, so server tick time is mostly unaffected. The cost shows up as join-time delay, client RAM and VRAM use, and CDN bandwidth.

    Start With One Measurement

    You do not need a full rewrite to fix a slow pack. Record the four baseline numbers, convert the audio folder, delete orphans, drop PackSquash into your build, then serve the artifact from a CDN with a hashed filename and a matching SHA-1.

    If you are still deciding how the pack reaches players, read [Resource Pack Basics: Hosting, Distribution, and Forcing Packs] first. For model authoring, Blockbench exports are the cleanest starting point — check its texture and UV options before you wonder why a model looks stretched in game.

  • Dynamic Cosmetic Menus with PlaceholderAPI

    Dynamic Cosmetic Menus with PlaceholderAPI

    This guide exists to solve one specific headache: you built a cosmetic menu, it looks fine on open, and then it lies to players. A hat shows as locked after they bought it. A rank discount never appears. A “wearing” tag stays stuck until the player reconnects. Those bugs almost all come down to how placeholders are resolved inside a GUI, and how often they are refreshed. Here is the setup, the syntax, the conditional logic, and the performance side.

    It is written for server owners and administrators who already run a cosmetic plugin and want the menu to react to permissions, ranks, and economy values. We tested the workflow on a Paper 1.21 test server with PlaceholderAPI, LuckPerms, and a DeluxeMenus-style menu plugin, using three expansions. Anything we could not measure is labeled as a starting recommendation rather than a benchmark.

    How PlaceholderAPI Fits Into a Cosmetic Menu

    PlaceholderAPI is a bridge. It does not know anything about hats or trails. It takes a token like %player_name%, hands it to whichever expansion registered that identifier, and returns text. Your menu plugin then displays that text in a GUI slot. That separation is why a cosmetic menu can show live data at all: the cosmetic plugin exposes state, the expansion translates it, and PlaceholderAPI stitches them together.

    Installation is short, and the temptation is to overdo it:

    • Drop PlaceholderAPI into /plugins and restart. Never hot-load a plugin that other plugins hook into.
    • Run /papi ecloud download <expansion> for each expansion you need, then /papi reload.
    • Restart the server once after downloading, so every dependent plugin registers its own placeholders in the right order.
    • Check the active list with /papi list. If an expansion is missing here, it is not installed, no matter what the config says.

    For a cosmetic menu you usually need only three expansions: Player for name and world, LuckPerms for rank labels, and whatever your cosmetic plugin ships. Treat three as a starting recommendation and trim anything you are not parsing. The full catalog lives in the placeholder list.

    Testing Placeholders Before You Touch the GUI

    Most GUI bugs are placeholder bugs wearing a costume. Test the raw string in chat first. The syntax is always %identifier_params%, and the identifier before the first underscore decides which expansion runs.

    The two commands you will live in

    • /papi parse me %player_name% resolves the placeholder as yourself. Use it constantly while building item lore.
    • /papi parse <player> <text> resolves it as another player, which is how you check that a locked item unlocks for staff ranks.
    • /papi bcparse <player> <text> parses the text and broadcasts the result to everyone online, the fastest way to confirm a template resolves for a group at once.

    If a placeholder returns its own token unchanged, the expansion is not loaded. If it returns empty, the expansion loaded but has no data for that player, which usually means the permission node is absent. Those outcomes look similar in a menu and mean completely different things, which is why you test outside the GUI. Keep a scratch file with one line per placeholder your menu uses and rerun those lines after every plugin update.

    Owned vs Locked Items From Permissions

    The cleanest cosmetic menus do not query “do they own it” through a database call on every slot. They read a permission. Your cosmetic plugin grants a node when a player unlocks an item, and the menu checks that node. That is one boolean lookup, it is cached by the permission plugin, and it survives server restarts without extra storage.

    Two ways to wire it, and the tradeoff is real:

    • Permission check in the menu plugin. A requirement type like “has permission” decides which item variant renders. Fast, but the item name and lore live in two config branches.
    • Placeholder boolean in a single item. Parse %checkitem_... or your cosmetic plugin’s own placeholder, then let a conditional decide the display. One item definition, more parsing work.

    For menus up to roughly 54 slots, both approaches perform the same. The practical difference is maintenance: the single-definition version stays consistent when you rename a cosmetic, and the two-branch version is easier to reason about when a requirement is complex.

    Menu stateData sourceWhat the player seesRefresh cost
    Owned, not equippedPermission node grantedGreen name, “Click to equip”Low (cached)
    Owned and equippedCosmetic plugin state placeholderGlowing item, “Equipped”Low
    Locked, purchasablePermission absent + price placeholderGray name, price in loreMedium (economy call)
    Locked, rank onlyLuckPerms group placeholderGray name, “Requires VIP”Low

    Notice the third row: price is the only expensive lookup in that table, which is where caching decisions start to matter. The PlaceholderAPI wiki on GitHub documents the expansion API if you plan to write your own.

    LuckPerms Placeholders for Rank-Aware Labels and Pricing

    Rank-aware cosmetics are where the menu stops being a shop and starts being a perk. Download the LuckPerms expansion first, then use its placeholders in item names and lore rather than hardcoding group names.

    • %luckperms_prefix% for decorated rank text in the menu title or a status line.
    • %luckperms_primary_group_name% to branch pricing and labels by group.
    • %luckperms_meta_<key>% for custom values such as a discount multiplier stored as metadata.
    • %luckperms_in_group_<group>% for a simple yes/no gate on a rank-locked cosmetic.

    A worked example: players in vip get cosmetics at seventy percent of list price. Store cosmetic_discount=0.7 as LuckPerms metadata instead of building four item variants, then reference that key in a menu requirement. When pricing changes, you edit metadata with one command and no config reload. The LuckPerms wiki covers metadata and inheritance in detail.

    Keep the logic in one place. If the discount lives in metadata, do not also hardcode it in the menu config, or the two will drift within a month. Pair it with the [LuckPerms Guide: Advanced Permissions for Minecraft Servers] when you plan inheritance, so the nodes your menu checks are the ones the plugin actually grants. Combined with [The Best Minecraft 1.21 Cosmetic Plugins], this gives you one source of truth for availability and price.

    Refresh Strategy: On-Open vs Repeating Tasks

    Every GUI refresh re-parses every placeholder in every visible slot. A fifty-four slot menu with six placeholders per item is three hundred and twenty-four parse calls per refresh. Run that every tick for thirty players and you have a TPS problem. Run it on open only and you have stale data. The answer depends on what the value actually is.

    ApproachBest forRecommended starting intervalRisk
    Refresh on open onlyStatic prices, permission-gated itemsOnce per openValues go stale if the player keeps the menu open
    Repeating task on the inventoryEquipped state, balance, live counters40 ticks (two seconds)Wasted parses on idle menus
    Per-tick parsingNothing in a cosmetic menuNot recommendedTick time loss and doubled inventory traffic

    Start at forty ticks for anything that changes while the menu is open, and use on-open-only for everything else. That number is a starting recommendation from our test server, not a law; the right value is the slowest refresh a player will not notice.

    Caching and parse limits

    • Compute expensive values once and store them in a map keyed by player UUID, with a short expiry, rather than calling the economy plugin for every slot.
    • Never parse inside a per-slot loop when every slot uses the same value.
    • Cancel the repeating task when the inventory closes. A leaked task is the most common cause of gradual TPS decay on cosmetic servers.
    • Test on a staging server, never while players are online.

    Pros and Cons of a Placeholder-Driven Menu

    Pros. One config produces different menus for different ranks. Prices and labels update without restarts. Permission state is already cached by LuckPerms, so ownership checks are cheap. You can add a cosmetic type without writing a new menu file.

    Cons. Every placeholder is a dependency, and dependencies break on updates. Debugging is slower because a wrong label could come from the menu config, the expansion, or the permission. Refresh tuning takes discipline, and a careless repeating task costs more than the static menu it replaced. Without a test server, on-open-only is the safer default.

    Common Mistakes and How to Debug Them

    • Placeholder shows raw text after an update. The expansion failed to load or was renamed. Run /papi list, then /papi ecloud download <expansion> and restart.
    • Menu opens empty. A requirement failed for every item, often because the placeholder returned empty. Test with /papi parse <player> before editing config.
    • Values stay stale until reopen. The refresh task never started, or an inventory close listener cancelled it too early.
    • TPS drops with menus open. Refresh interval too low or per-slot parsing. Raise the interval and cache the repeated value.
    • Discount never applies. Metadata key misspelled, or a requirement compares a number to a string. Compare strings or use a math expansion.

    Expert tip: keep a debug item in the menu that renders raw placeholder output as its lore. When staff report a broken menu, you open it once and see exactly what the server produced instead of guessing from a colored name. The same parse rules apply to [How to Set Up ShopGUI+ for a GUI-Based Server Shop] if your cosmetics are sold rather than unlocked.

    Frequently Asked Questions

    What is a PlaceholderAPI cosmetic menu?

    It is a GUI where item names, lore, prices, and lock states are filled in by PlaceholderAPI at runtime, so the same menu shows different content for each player based on permissions, rank, and economy balance.

    How do I test a placeholder quickly?

    Use /papi parse me followed by the placeholder, for example /papi parse me %player_name%. To test as another player use /papi parse with their name, and use /papi bcparse to broadcast the parsed result to all online players.

    How often should a cosmetic menu refresh?

    Refresh on open for static values, and use a repeating task around every 40 ticks, or two seconds, for values that change while the menu is open. Avoid per-tick parsing, which multiplies parse calls by slot count and can cost measurable tick time.

    Why do placeholders show as raw text after a plugin update?

    The expansion that registered them is missing, outdated, or was renamed by the update. Run /papi list to confirm, reinstall the expansion with /papi ecloud download, then restart the server so dependent plugins register in the correct order.

    Conclusion

    A dynamic cosmetic menu is not a hard build. It is five habits: install only the expansions you parse, test strings in chat before you test them in a GUI, read ownership from permissions, keep rank logic in one place, and refresh at the slowest interval players tolerate. Do those and the menu keeps telling the truth after every update.

    Start today by listing every placeholder in your menu config. Anything that does not resolve with /papi parse me is a bug you just found before a player did. Then set a forty-tick refresh on the items that need it, and cancel that task on close.

  • Email Marketing for Minecraft Servers

    Email Marketing for Minecraft Servers

    Most Minecraft servers treat email as an afterthought: a box next to the Discord invite, a place to dump the store receipt. That is a waste. Email is the only marketing channel where you hold the contact list, the delivery method, and the relationship without asking a platform for permission. This guide exists to help owners and staff build a list that actually fills the server, using flows simple enough to run with two volunteers.

    It is written for server owners, community managers, and plugin developers who know their way around a config file but have never touched a marketing automation tool. The format below comes from auditing signup flows on survival, SMP, and minigame networks and checking deliverability guidance against provider documentation.

    Why Email Is the One Channel You Actually Own

    Discord can ban your server from discovery. TikTok can throttle reach, change the algorithm, or remove an account for a false positive. Both are rented land. You can lose a community of ten thousand people in a moderation action you did not control, and there is no export button that gives the players back.

    Email is different in three concrete ways:

    • You own the list. An address stays with you when you change hosts, rebrand, or move to a new IP.
    • Delivery is not ranked against you. No engagement algorithm decides whether your message is shown to people who asked for it.
    • It reaches lapsed players. Someone who stopped playing and muted the Discord will still see an email about the map reset.

    The catch: email compounds slowly and decays without regular sends. It is the retention layer, not the launch lever.

    Where to Collect Opt-Ins and How to Record Consent

    You need more than one door into the list, because each one captures a different intent level. A player who types a command in game has invested time; one who hands over an email at checkout has spent money. Value them differently.

    • Website: a single field in the footer plus a dedicated signup page. Highest volume source for search traffic.
    • Store checkout: an unchecked checkbox for server news. Never pre-tick it; a pre-checked box is not consent under the GDPR.
    • Discord verification: gate a member role behind a one-field form, using a bot or a Discord OAuth app.
    • In-game command: an email argument on your existing /link flow, or a /newsletter command that prints a short link.
    Opt-in pointSetup effortTypical yieldBest for
    Website footer formLowHighest volumeSearch and social traffic
    Store checkoutLowSmall but high intentPatch notes and donor perks
    Discord verificationMediumSteady, community-weightedEvent announcements
    In-game commandMediumLowest volume, best retentionMap resets and seasons

    Double Opt-In Is Not Optional

    Double opt-in means an address is not added until the person clicks a confirmation link. It costs 20 to 40 percent of raw signups and saves far more in deliverability, because typo addresses and prank submissions never enter the list. It also gives you a timestamped consent record: address, source, IP, and confirmation time.

    Keep that record for as long as the contact stays subscribed. Under the GDPR, the burden is on you to prove consent. Most platforms log it automatically on the contact’s activity tab.

    The Three-Email Welcome Sequence That Gets a Player to Log In

    Your welcome sequence is the highest-performing mail you will ever send. Open rates decline over time, so the first week is when attention is cheapest. Three emails over seven days is enough to move someone from curious to logged in.

    Email 1, Sent Immediately: One Action

    Deliver the server address, the Java or Bedrock version, and one instruction: join now. No feature list, no lore, no paragraph about your staff team. One button, plus a line telling a new player what to do in the first ten minutes.

    Email 2, Sent on Day 3: The Reason to Stay

    Pick the one thing your server does better than a vanilla world and show it: a screenshot of the spawn build, a two-line quote from a player, the current season theme. Keep it under 150 words and repeat the login link. If the player has not joined yet, this is the nudge that usually works.

    Email 3, Sent on Day 7: The Human Ask

    Introduce a real person, invite them to an event with a date and time, and ask one question. Replies are the strongest engagement signal you can send a mailbox provider, so a simple “what are you planning to build?” line does double duty. Suppress anyone who already joined if your platform supports it; the sequence should feel targeted, not automated.

    The Monthly Newsletter and Segmentation That Makes It Useful

    A monthly newsletter is sustainable. Weekly is not, for a volunteer team, and quarterly is not frequent enough to stay in memory. Pick a send date, put it in the staff calendar, and protect it.

    Use the same four-part format every month so readers know where to look:

    1. Patch notes. What changed on the server: plugins updated, new features, balance fixes. Two to four bullets.
    2. Events. Dates, times, and time zones for anything scheduled in the next 30 days.
    3. Spotlight. One player, build, or staff member. This is the part people actually read.
    4. One CTA. A single button. Vote, join the event, or open the store. Never three competing asks.

    Keep subject lines around 30 to 45 characters so they survive mobile truncation, and write the preview text deliberately instead of letting it default to the first line of the body.

    Segment by Playtime, Rank, and Last Login

    One list, one message is the fastest way to get ignored. Three segments cover almost every need, and you can build them from data you already store:

    • Playtime: new (under 5 hours), active, and veteran (100+ hours). Veterans want patch detail; new players want orientation.
    • Rank: free, donor, and staff. Rank holders should never receive a “please support the server” pitch they already answered.
    • Last login: active in 14 days, dormant 15 to 60, lapsed 60+. Send lapsed players a return offer, not a patch note.

    Sync these from your player database on a nightly schedule through a plugin or a script hitting the provider’s API. If you run paid tiers, reuse the logic behind running a subscription rank model and read both from the same source of truth.

    Deliverability, Compliance, and the Metrics That Matter

    None of this works if your mail lands in spam. Three DNS records do most of the work, all set at your registrar or host:

    • SPF: a TXT record listing servers allowed to send as your domain.
    • DKIM: a cryptographic signature proving the message was not altered in transit.
    • DMARC: a policy telling receivers what to do when SPF or DKIM fails. Start at p=none, watch reports, then move to quarantine.

    List hygiene is the other half. Remove hard bounces immediately, suppress anyone who has not opened in 12 months, and never import a list you did not build. Purchased lists are the fastest route to a burned sending domain.

    Compliance in Plain Terms

    The CAN-SPAM Act requires an accurate sender identity, a truthful subject line, a physical address, and a working unsubscribe link honored within 10 business days. The GDPR adds a lawful basis and the right to erasure. In practice: one-click unsubscribe in every footer, no re-subscribing people who opt out, and a documented reason you may email each contact. Providers like Brevo and Mailchimp handle the mechanics; your job is the consent record behind them.

    Benchmarks to Watch, Not Guarantees

    Treat these ranges as signals worth investigating, not promises: open rate 25 to 35 percent, click rate 2 to 4 percent, bounce rate under 0.5 percent, unsubscribe under 0.2 percent per send. Open rates are inflated by privacy-focused mail clients, so weigh clicks more heavily. Falling clicks with stable opens usually means the offer, not the subject line.

    Pros and Cons of Email for Server Growth

    Pros: you own the list and can export it any time; delivery is not algorithmically gated; it reaches players who left Discord; segmentation lets you send the right message to donors, veterans, and lapsed players; cost stays flat as the list grows; and every send produces attributable numbers.

    Cons: growth is slow rather than viral; double opt-in filters out many signups; deliverability needs DNS work and reputation management; content must ship every month; and compliance obligations are real for owners with EU and UK players. If your audience lives on TikTok, read our TikTok marketing blueprint first: email converts that traffic, it does not create it.

    Common Mistakes and How to Avoid Them

    • Buying or scraping a list. It destroys sender reputation, breaks consent rules, and never converts players.
    • Pre-checked consent boxes. Not valid consent under the GDPR and a fast route to spam complaints.
    • No welcome email. The first 48 hours are your best window; drop that and you waste the signup.
    • Three CTAs per send. Competing asks split attention and tank click rate.
    • Ignoring bounces. Re-sending to dead addresses is how a domain gets flagged. Prune monthly.
    • Skipping the plain-text version. Filters reward a matching text part.

    Expert tip: send your first three campaigns to a small slice of the list, check clicks, then send to everyone.

    Frequently Asked Questions

    How often should a Minecraft server email its players?

    Send a monthly newsletter plus your automated welcome sequence. Add one extra send only for a map reset or a live event, and keep the total under three emails a month.

    Is double opt-in required for a Minecraft server email list?

    It is not required by CAN-SPAM, but it is the safest way to prove consent under the GDPR and it keeps typo addresses off your list. Use it for every signup source.

    How long should a welcome email sequence be?

    Three emails over seven days is enough: join now on day zero, the reason to stay on day three, and a human ask on day seven. Longer sequences rarely earn another click.

    What open rate is normal for a gaming newsletter?

    A 25 to 35 percent open rate and 2 to 4 percent click rate are reasonable benchmarks to watch. Treat them as signals, not guarantees, and prioritize clicks over opens.

    Start With One Form and One Welcome Email

    Do not rebuild your whole stack this weekend. Add a double opt-in form to your website, connect it to a free-tier provider, set up SPF, DKIM, and DMARC, and write the first welcome email. Run that for a month before touching segmentation. Once the list passes a few hundred confirmed addresses, layer in the monthly format and the three segments, then judge it on clicks rather than opens.

    The server that emails well keeps players through every map reset, plugin break, and quiet season. Build the foundation now, then read the 2026 growth blueprint for the acquisition side that feeds it.

  • How to Create Your First 3D Hat in Blockbench

    How to Create Your First 3D Hat in Blockbench

    This guide exists to get you from an empty Blockbench canvas to a hat your players can actually wear on your server. Most tutorials stop at a nice render and leave you guessing about UV seams, model scale, and where the exported JSON is supposed to live. Here, modeling, texturing, and server wiring are treated as one job, because a hat that clips through a player’s skull or breaks for Bedrock players is not finished.

    It is written for server owners, administrators, and plugin developers who already run a cosmetic system and want their own assets instead of buying packs. We built four hats from scratch in Blockbench 4.x, tested the exports against a plain resource pack and an ItemsAdder install on a Paper 1.21 test server, and watched how each one behaved for Geyser players. Every number below is a starting value from that testing, not a benchmark result.

    Set Up Blockbench and a Clean Texture Canvas

    Install the desktop build from the official site rather than working in the browser tab. The desktop version remembers your project, handles larger textures without a stutter, and gives you the export dialogs you need later. The Blockbench wiki is the reference to keep open, especially the pages on UV and export formats.

    Pick the right project type first

    Choosing the wrong format at creation is the single most common reason a finished hat refuses to load. Decide before you model:

    • Java Block/Item for a resource-pack hat driven by CustomModelData or an item model definition. This is the right choice for most survival servers.
    • Bedrock Entity if you plan to ship the same hat to Bedrock players through a Geyser-compatible workflow, or if your plugin reads Bedrock-style geometry.
    • Java Entity only when the hat is part of a full mob model, not a standalone cosmetic.

    Build the texture to Minecraft’s grid

    Create the texture inside Blockbench with the texture panel and set it to 16×16. Even with modern resource packs allowing higher resolutions, a hat that reads well at 16×16 will read well everywhere, and staying at vanilla resolution keeps your pack small and your download fast. Turn on pixel grid, snap the pencil to single pixels, and pick a palette of eight to twelve colors sampled from vanilla blocks so the hat sits in the world instead of floating above it.

    Model the Hat From Cubes

    Minecraft hats are built from cuboids, so think in silhouettes rather than sculpting. A convincing top hat, helmet, or crown usually lands between 8 and 12 cubes. Fewer and the shape looks like a box; more and you spend time on faces nobody sees, then pay for it at render time on a busy server.

    Work on a 1/16 unit grid, because that is the unit Minecraft models use: one model unit equals one sixteenth of a block, and a player head is eight of those units wide. Snapping to anything finer produces coordinates that look fine in the editor and shimmer in game.

    Pivots and rotation

    When you rotate a brim, a feather, or a hanging charm, set the cube’s pivot to the surface it swings from, not to the cube’s center. In Blockbench the pivot marker is draggable; place it on the hinge line, then rotate. Doing this keeps the part attached when the player crouches or turns their head.

    Group every cube under a single root so the whole hat moves as one object. Name the groups meaningfully (“brim”, “crown”, “band”) because those names show up in plugin configs and in error logs months later.

    Keep the silhouette readable

    Players see a hat from five blocks away in a crowded spawn, at an angle, at night. Details smaller than one pixel of texture vanish. Favor chunky shapes: a thick brim, a tall crown, one bold accent. Avoid single-pixel floating elements and thin spikes, which alias badly and create extra faces for almost no visual gain.

    UV Mapping and Pixel Shading in Minecraft’s Style

    Blockbench can auto-UV a cube with one click, and for a first hat that is fine. The problem appears later, when you notice that auto layout packs faces in an order that makes hand shading painful. For anything you plan to reuse, switch to per-face UV and lay the faces out yourself, giving each visible face its own tidy region.

    • Map every face you can see. Leave hidden interior faces unmapped or delete the cube’s bottom face entirely.
    • Leave a one-pixel gutter between regions so mipmapping does not bleed colors across seams.
    • Keep translucent areas fully transparent or fully opaque; partial alpha creates a muddy halo in game.
    • Use the paint bucket for flat fills and the pencil for single-pixel accents, never gradients.

    Shading is where most first attempts fall down. Vanilla Minecraft shades with a small number of hard steps, not smooth ramps. Pick a base color, mix one darker tone for undersides and shadowed faces, and one lighter tone for upward-facing highlights. Push the shadow toward blue or purple rather than toward black, which is why vanilla stone reads cool and never looks sooty. Do not draw outlines in pure black; a darker version of the fill color keeps the hat looking painted rather than stickered.

    Check the shaded result at a distance before export: zoom out until the hat is the size it appears on screen, and fix silhouette problems in geometry rather than paint.

    Export the Hat and Wire It Into Your Server

    Models in Minecraft are plain JSON describing cuboids and their texture references, as documented on the Minecraft Wiki model page. Export from Blockbench with File, then Export, then Java Block/Item Model, and you get that JSON ready to drop into a pack.

    RouteFilesBest for
    Java item modelassets/<ns>/models/item/hat.json
    assets/<ns>/items/hat.json
    assets/<ns>/textures/item/hat.png
    Vanilla-friendly hats, no plugin dependency
    ItemsAddercontents/<ns>/items/*.yml plus model and texture foldersSurvival servers needing recipes and drops
    Plugin-nativePlugin config folder plus bundled packTeams already locked into one cosmetic plugin

    CustomModelData or a plugin item

    On a vanilla-leaning server, point a base item at the model with a custom_model_data value. Since 1.21.4 the modern path is an item model definition in assets/<ns>/items/ that selects your model on that value, while the older override list still works for packs targeting earlier versions. On a survival server where players craft, trade, and store the hat, use ItemsAdder instead: it generates the pack, registers the item, and gives you a recipe and drop table without writing Java.

    Attaching without clipping

    In model space the player head occupies the eight units from y=24 to y=32, so a hat authored like a helmet should start its base at 32 and grow upward, not sit centered on the head. If your plugin renders the hat as a display entity riding the player, place the translation just above the head: an offset of roughly y=1.9 blocks above the feet is a workable starting point to tune per model, since hair-thin clipping reads as a bug even when the geometry is correct.

    Bedrock, Geyser, and Performance on Busy Servers

    Geyser translates Java resource packs into Bedrock behavior imperfectly. Custom item models often arrive as the base item, and display-entity cosmetics can vanish entirely. Test with a real Bedrock client before you promise the hat in a store listing. The fallback that holds up is a Bedrock add-on shipping the same geometry, or a vanilla-safe cosmetic such as a dyed leather helmet for Bedrock players. Our Geyser compatibility notes cover which plugins survive translation.

    Performance is about faces and draw calls, not file size. Every visible cube face is geometry the client must draw for every player wearing the hat. Keep the model lean, share one texture across all hats so the pack loads a single atlas page, and prefer a resource-pack approach over spawning an entity per player, because entity ticks cost the server while item models cost only the client. Follow resource pack hosting and distribution practice so the pack is cached rather than re-downloaded.

    Pros and Cons of the Blockbench Route

    • Pros: free and open source, precise 1/16 grid snapping, direct Java and Bedrock export, and full control over the asset instead of a marketplace license.
    • Pros: a 16×16 texture and a dozen cubes produce a tiny pack that loads instantly and never touches server tick time.
    • Cons: the learning curve is in UV work, not modeling, and the editor will happily let you build something that renders badly.
    • Cons: Java-side custom models still need a pack loaded, and Bedrock players may need a separate add-on.

    Common Mistakes and How to Avoid Them

    • Modeling without a reference head. Always place the 8x8x8 guide cube first. Add it after the fact and you will rebuild the brim.
    • Exporting the wrong project type. A Java Block/Item export will not load in a Bedrock entity pipeline. Confirm the format before the first cube.
    • Leaving the pivot at the cube center. Rotated parts detach from the hat when the head animates. Snap pivots to hinge lines.
    • Over-detailing the texture. Noise reads as dirt at distance. Two or three shades per material is enough.
    • Testing only in single player. Clipping and Geyser issues appear under real movement, so verify on a live server with a second account.

    Our strongest tip: build the second hat before you polish the first. The workflow only clicks once you have done UV layout twice, and the second attempt is usually half the cube count and twice the readability. If you are still choosing the plugin that will wear these assets, start with our roundup of cosmetic plugins for 1.21.

    Frequently Asked Questions

    What size should a Blockbench hat texture be?

    Start at 16×16 pixels, matching vanilla Minecraft. Higher resolutions work but increase pack size and rarely improve readability at the distance players view a hat.

    How many cubes does a Minecraft hat need?

    Most first hats land between 8 and 12 cubes. Fewer looks like a plain box, more adds hidden faces and render cost without a visible gain.

    Do custom 3D hats work for Bedrock players on Geyser?

    Not reliably. Custom item models often fall back to the base item through Geyser, so plan a Bedrock add-on or a vanilla-safe cosmetic fallback and test with a real Bedrock client.

    Where does the exported hat JSON go?

    In a Java resource pack, the model goes to assets/<namespace>/models/item/ and, on 1.21.4 and later, an item definition goes to assets/<namespace>/items/. ItemsAdder manages both paths for you.

    Ship the Hat, Then Iterate

    A first hat is a complete pipeline exercise, not a showpiece: correct project type, clean 16×16 texture, sensible pivots, honest UVs, an export that lands in the right folder, and an attachment offset you tuned on a live server. Once that loop works, every later cosmetic takes a fraction of the time and you can build a themed set instead of a one-off.

    Start with a single hat for your most common rank, publish it to one test group, and watch for clipping reports before you scale up to a full set.

  • Setting Up a BungeeCord and Velocity Firewall

    Setting Up a BungeeCord and Velocity Firewall

    This guide exists to fix one of the most common and most damaging mistakes on Minecraft networks: a proxy that is carefully locked down while its backend servers sit wide open to the internet. When a backend port is reachable from outside, anyone who finds the IP can connect straight to it, skip the proxy entirely, and arrive with whatever permissions their account holds. The proxy becomes decoration. This article walks through the firewall, binding, and forwarding work that closes that hole on both BungeeCord and Velocity, and it explains how to prove the hole is actually closed.

    It is written for server owners and administrators who already have a proxy running, plus the staff who inherit one and are not sure what is exposed. The rules below were tested on Ubuntu 24.04 with UFW 0.36 and Velocity 3.3 in front of Paper 1.21 backends, then checked from outside the network with nmap to confirm nothing answered that should not. Every command is copy-pasteable, and every section explains what breaks if you skip it.

    Understanding the Proxy Threat Model

    A proxy network has three separate attack surfaces, and a single fix never covers all of them.

    Direct backend access

    Your backend servers listen on a port, usually 25565 on small networks. If that port is bound to 0.0.0.0 and the host has a public IP, the backend is a full Minecraft server that anyone can join. Whitelists help, but they do not stop a determined player from joining as an alted account, farming, testing exploits, or just loading the server down. Worse, any plugin that trusts “you came through the proxy” now trusts a stranger.

    Proxy bypass and spoofed forwarding

    Bypass is the act of reaching the backend directly. Spoofing is the next step up: a client connects to the backend and imitates the proxy’s handshake, claiming an arbitrary username and UUID. Legacy BungeeCord forwarding (the ip_forward style handshake) is trivially spoofable if the backend accepts connections from anywhere, which is exactly why the modern approach moves the trust anchor to a shared secret plus a firewall rule that only the proxy can pass.

    If you are still deciding which proxy to run, the differences matter for how much of this work you do by hand. Our comparison of Velocity vs BungeeCord covers the tradeoffs; the firewall rules here apply to both.

    Binding Backends to Localhost or a Private Interface

    Firewalls are the second layer. The first layer is making sure the backend is not listening on a public interface at all. In server.properties, set server-ip=127.0.0.1 when the proxy runs on the same machine. When the proxy and backends live on different hosts, bind to the private address of the internal network instead, such as server-ip=10.0.0.12, and keep that network unreachable from the internet.

    On Paper and its forks, you also want the backend to accept only proxy connections. Set settings.velocity.enabled=true in config/paper-global.yml with online-mode=true, or for BungeeCord set bungeecord: true in paper-global.yml and ip_forward: true in spigot.yml. Those flags tell the backend to expect forwarded player data; they do not stop a direct connection, which is why the bind and the firewall still matter.

    PortServiceWho may reach itProtocol
    25565Proxy (Velocity / BungeeCord)Public internetTCP
    25566-25570Backend serversProxy host onlyTCP
    25565Query (if enabled)Proxy only, or disabledUDP
    25575RCONLocalhost or admin VPN onlyTCP

    If your live setup does not match that table, everything below is the fix.

    UFW Rules That Expose Only the Proxy Port

    On the proxy host, the goal is simple: allow SSH and the proxy port, deny everything else. Always add SSH first so enabling the firewall cannot lock you out. The commands below assume a single proxy port on 25565 and backends on a private address, and they are safe to paste in order.

    # Proxy host: Ubuntu 22.04/24.04 with UFW
    sudo ufw default deny incoming
    sudo ufw default allow outgoing
    sudo ufw allow 22/tcp comment 'ssh - add first'
    sudo ufw allow 25565/tcp comment 'minecraft proxy'
    sudo ufw enable
    sudo ufw status verbose
    
    # Backend host: only the proxy's private IP may connect
    sudo ufw default deny incoming
    sudo ufw allow 22/tcp comment 'ssh - add first'
    sudo ufw allow from 10.0.0.5 to any port 25566 proto tcp comment 'proxy only'
    sudo ufw deny 25566/tcp
    sudo ufw enable

    Note the ordering on the backend. UFW evaluates rules top to bottom, so the narrow rule from the proxy IP must come before any blanket deny. Also note what is not there: no rule allows 25565 on the backend host, because the backend is not listening there.

    If players use Bedrock crossplay through Geyser, the UDP port (19132 by default) needs its own rule on the proxy host. If you run a status page or a map renderer, those belong behind the reverse proxy, not on an open Minecraft port. The Ubuntu UFW documentation covers the full syntax, and netfilter.org explains the packet filtering layer underneath if you ever need to debug a rule that looks correct but is not matching.

    Modern Forwarding, Docker, and Pterodactyl

    Firewall rules stop network access. Forwarding secrets stop identity spoofing if a rule is ever wrong, which is why you run both. Velocity’s modern forwarding signs player data with a secret shared between proxy and backend, so a client that reaches a backend directly still cannot convincingly claim to be someone else.

    [forwarding]
    # velocity.toml
    mode = "modern"
    secret-file = "/etc/velocity/forwarding.secret"

    Generate the secret once with a long random value, copy the same file to every backend, and set secret in paper-global.yml to match. Never commit it to a public repository, and rotate it if a staff member with file access leaves. The Velocity documentation explains the forwarding modes, and the BungeeCord wiki covers the equivalent ip_forward and online-mode pairing for older setups.

    Docker and Pterodactyl caveats

    Docker publishes ports by writing its own NAT rules ahead of UFW’s chains, which means -p 25565:25565 exposes the port even when UFW says it is denied. Bind published ports to localhost instead, for example -p 127.0.0.1:25565:25565, and let the proxy be the only thing with a public mapping. Pterodactyl adds another layer: the Wings daemon allocates ports per server and Docker handles the mapping, so a backend allocation with a public IP is publicly reachable regardless of the host firewall. Keep backend allocations on the internal interface and verify from outside rather than trusting the panel’s display.

    Verifying Exposure and Surviving a Bad Rule

    Never assume. Test from a machine outside your network; a local scan tells you nothing about what the internet sees.

    • nmap -Pn -p 25565,25566,25575 203.0.113.10 from an external VPS. Only the proxy port should report open; the rest should be filtered or closed.
    • An external port checker such as an online TCP scanner, run against the backend IP specifically, not the proxy IP.
    • ss -tulpn | grep java on each host to confirm what is actually listening and on which interface.

    Then harden against join floods. A botnet hitting your proxy port with connection spam costs almost nothing to run, so add connection-rate limits at the firewall or reverse proxy layer, and use fail2ban to ban sources that repeat failed handshakes. Roughly ten new connections per second from a single IP is already abnormal for a survival server; tune the threshold against your own peak player count.

    Finally, plan your recovery before you need it. Keep an SSH session open while enabling rules, use ufw --dry-run mentally by reviewing ufw status numbered, and know that ufw disable over console is the fastest undo. If you rent a host, confirm the provider’s out-of-band console works before you touch iptables. If you are also fighting volumetric attacks, the layered approach in our guide to Minecraft server DDoS protection covers what the firewall cannot do alone.

    Pros and Cons of a Strict Proxy Firewall

    Locking backend ports is the highest-value security change most proxy networks can make. It also costs convenience.

    • Pro: Direct-connect bypass stops working, so permissions and UUIDs stay trustworthy.
    • Pro: Backends are no longer individually attackable, which shrinks your DDoS surface to one host.
    • Pro: Plugin exploits that assume proxy-only traffic lose their easiest entry point.
    • Con: Every backend move or new allocation needs a matching firewall change, so documentation is mandatory.
    • Con: Docker and panel-based hosts can silently override your rules, adding debugging time.
    • Con: A mistake can lock out your own staff, not just attackers.

    Common Mistakes and Expert Tips

    • Firewalling the proxy but not the backends. The proxy was never the weak point. Check the backend hosts first.
    • Trusting the bind alone. A container or panel can rewrite the bind. Verify with ss, not with the config file.
    • Using legacy forwarding because it “just works”. It works for attackers too. Move to modern forwarding and rotate the secret.
    • Enabling UFW before allowing SSH. The classic self-lockout. Add port 22 first, every time.
    • Forgetting UDP. UFW handles TCP and UDP separately; a denied TCP port says nothing about its UDP sibling.
    • Skipping the external test. Internal scans pass while the public interface leaks, which is the worst possible false confidence.

    The habit that separates stable networks from fragile ones is a written inventory: which host holds which port, who may reach it, and when it was last verified. Re-run the external scan after every host migration. If your staff permissions are also part of the blast radius, the audit trail advice in our LuckPerms guide pairs naturally with a tight firewall.

    Frequently Asked Questions

    Do I still need a firewall if backends bind to 127.0.0.1?

    Strictly no, because nothing outside the machine can reach a loopback bind. Keep the default-deny policy anyway as a safety net for the day a config change or container mapping exposes the port again.

    Can players bypass BungeeCord or Velocity?

    Only if a backend port is reachable from the internet. Close that port and use modern forwarding with a shared secret, and a direct connection has nowhere to go.

    What port should a Velocity proxy use?

    25565 TCP is the default and the only port most networks need public. Put backends on 25566 and above, bound to localhost or a private interface.

    Why does UFW not block my Docker port?

    Docker inserts its own NAT rules ahead of UFW, so published ports bypass it. Bind published ports to 127.0.0.1 or use a Docker-aware firewall helper.

    Close the Hole This Week

    A proxy firewall is not exotic. It is four ports, one bind, and one secret, and it takes about twenty minutes per host once you know what to check. Start with the backend hosts, because that is where the real exposure lives, then scan from outside and confirm only the proxy answers. Keep SSH allowed, keep the console handy, and write down what you changed so the next administrator inherits a map instead of a mystery.

    When the ports are closed and forwarding is live, spend the next hour on permissions and monitoring.

  • The Top 3 Minecraft Store Plugins for 2026

    The Top 3 Minecraft Store Plugins for 2026

    A store plugin is one of the few decisions on a Minecraft server that is genuinely painful to reverse. Prices, permissions, item metadata, and player balances all end up wired into it, so switching later means migrating data, retraining staff, and explaining to players why their rank or their shop stock vanished. This review exists to help you avoid that afternoon. We installed ShopGUI+, ExcellentShop, and Tebex on Paper 1.21.x test servers, connected each to Vault and a small player economy, and compared what they actually do well rather than what their landing pages claim.

    It is written for owners choosing a first shop, admins inheriting a server with a half-finished one, and developers who need to know where each plugin’s API stops and your own code has to start. Everything below comes from official documentation, the project source code, and hands-on testing. Where a number changes often, such as payment fees, we point you at the official source instead of quoting a figure that will be wrong by next quarter.

    Currency Shops and Real-Money Checkout Are Different Problems

    The most common mistake in these discussions is treating all three tools as competitors. They are not. ShopGUI+ and ExcellentShop are in-game shop frameworks: players spend currency they already earned, or items they already own, inside a menu. Tebex is a hosted checkout: players spend real money on a web store and Tebex delivers the result to your server through a plugin. One is an economy feature, the other is a payment business.

    • In-game shop plugin: server-side menus, prices in your economy currency or in items, no payment processor anywhere in the flow.
    • Real-money checkout: a hosted cart that handles cards, tax, fraud screening, and chargebacks for you, then runs commands on your server.
    • Hybrid setups: most mature servers run both, using the checkout for ranks and cosmetics and a GUI shop for survival trading.
    PluginModelBest for
    ShopGUI+In-game GUI shop backed by a Vault economySurvival, skyblock, and prison servers that want a clean buy/sell menu running today
    ExcellentShopMulti-module trading suite: GUI shops, sign shops, auction house, generatorsNetworks that want one plugin to power several trading systems
    TebexHosted real-money checkout with a delivery pluginAny server selling ranks, keys, or cosmetics for real currency

    ShopGUI+: The Fastest Route to a Clean GUI Shop

    ShopGUI+ is what most owners reach for when they want a chest menu with categories, pages, and per-item permissions without writing Java. Each shop is a YAML file, the plugin ships a usable default you can duplicate and edit, and the official wiki documents the price syntax clearly enough that a first shop takes an evening. If you want that first setup walked through step by step, our guide on [How to Set Up ShopGUI+ for a GUI-Based Server Shop] covers the whole path.

    Where it earns its place is the player experience. Menus open instantly even on a mid-range host, category icons and lore are fully configurable, and buy and sell prices can be tuned per item with quantity scaling, so a stack costs less per unit than a single piece. Currency runs through Vault, and the command and placeholder surface is broad enough to work with rank plugins, scoreboards, and crate systems without a compatibility patch.

    • It is a shop, not an economy. You still need Vault plus a provider such as EssentialsX or CMI before a single price means anything.
    • Custom items need care. Prices keyed to a plain material name will treat two differently enchanted books as identical unless item matching is configured.

    ExcellentShop: More Systems, Steeper Curve

    ExcellentShop is closer to a trading suite than a shop. One installation gives you GUI shops, sign shops, an auction house, item generators, and per-player limits, all sharing a single configuration tree and one item serialization layer. For a network that would otherwise install four separate plugins fighting over the same inventory events, that consolidation is a genuine advantage, and the GitHub repository is refreshingly active and readable.

    What the module set actually covers

    • GUI shops with pagination, per-item permissions, and buy/sell prices.
    • Sign shops that let players create their own trade points in the world.
    • An auction house with configurable taxes, listing limits, and expiry.
    • Generators and per-player cooldowns for resource-based progression servers.
    • NBT-aware item handling shared across every module, so an auction item and a shop item behave the same way.

    The configuration learning curve is real

    The trade-off is complexity. Configuration is split across many files, and because modules share settings, an option you expect inside one menu often lives in a global file instead. Treat the repository as your documentation, build and test a single shop before enabling auctions or generators, and change one module at a time. Admins who paste a three-year-old config from a forum thread usually lose a weekend to version mismatches that the changelog would have explained in one line.

    Tebex: Hosted Checkout, Not a Shop Plugin

    Tebex does not replace ShopGUI+. It sits beside it. You build packages in a web dashboard, players pay through a hosted store page, and the Tebex plugin on your server receives the command to execute: grant a rank, drop crate keys, add store credit. Payment methods, sales tax, fraud screening, and chargeback handling all stay on Tebex’s side of the fence, which is exactly the part most owners should not be building themselves. The Tebex documentation is the place to start for the plugin and webhook side.

    Pricing is where people get it wrong. Tebex charges a platform fee on top of payment processing, and the effective rate depends on your plan, sales volume, and which payment methods you enable. Those numbers move, so check the official pricing page rather than a forum screenshot from 2021, and budget for the effective rate after processing, not the headline percentage. Model it against your actual monthly revenue before you commit, because a rate that looks small on a hobby server is a real line item at scale.

    • Delivery is command-based, so anything your console can do, the store can sell.
    • It needs a reachable server: a public address or proxy that the plugin can connect through.
    • Refunds and disputes happen in the dashboard, not in game. Decide who on staff handles those before launch.

    Performance, Item Data, and EULA Compliance

    Vault, item data, and the matching trap

    All three in-game options lean on Vault for currency, so your economy provider’s behavior matters as much as the shop itself. The trap is item identity. A price defined by material name alone cannot tell a Sharpness V book from a Mending book, and on modern versions it also ignores custom model data. Both ShopGUI+ and ExcellentShop support richer item matching; use it, then test with a copy of a real player’s inventory before you open the shop.

    Database and scale notes

    • Flat-file or SQLite storage is fine for a single server with a few dozen players.
    • Networks should plan on MySQL or MariaDB with an index on player UUID from day one.
    • The auction module is the heaviest database consumer; shops are heavy on memory instead.
    • Benchmark by opening the shop menu with 50 to 100 players online, not on an empty test world.

    Migration checklist when you switch plugins

    1. Export current prices, stock, and player balances to a spreadsheet before touching anything.
    2. Snapshot the database and the plugin folders, not just the world.
    3. List every custom item, enchantment, and custom model data value your shop sells today.
    4. Write down permission nodes and command aliases, because players have memorized them.
    5. Run the new plugin on staging against a copy of the same economy, and diff the prices.
    6. Redirect or alias the old commands, then announce a date instead of surprising people.

    Staying inside the EULA

    Whatever you install, the Minecraft EULA applies. Selling cosmetic ranks, convenience perks, and server access is fine. Selling gameplay advantage, especially on competitive PvP servers, is not, and neither is gating essential progression behind a paywall. Our breakdown of [EULA-Friendly Monetization: Funding a Minecraft Server Without Pay-to-Win] goes deeper, and if you want players trading with each other rather than through menus, [ChestShop and Vault: Building a Player-Run Economy] is the natural next read.

    Pros and Cons

    ShopGUI+: fastest to configure, excellent menu performance, mature documentation. Downsides are a narrower feature set and no auction or sign shop out of the box.

    ExcellentShop: one plugin for several systems, consistent item handling, actively maintained source. Downsides are configuration sprawl and a real learning curve.

    Tebex: removes payment, tax, and fraud handling from your plate and is trusted by large servers. Downsides are an ongoing fee, a dependency on a third party, and the fact that it will never be your in-game shop.

    Common Mistakes and Expert Tips

    • Launching with the full catalog. Start with 20 items priced correctly, then expand. A broken sell price is a duplication exploit.
    • Forgetting the sell side. Players will find the item that sells for more than it costs within a day. Check every buy and sell pair.
    • Ignoring permission nodes. Test with a non-op account on a second client. Only ops see what you test as an op.
    • Mixing currencies. Tokens, gems, and coins in one shop confuse players and break your price balance. Keep one currency per shop.
    • Assuming fees are flat. Re-check processing rates every year and adjust prices rather than margins.

    Frequently Asked Questions

    Which Minecraft store plugin is best for a small server?

    ShopGUI+ is usually the best first choice. It needs only Vault and an economy plugin, configures in one evening, and keeps menu performance high on modest hardware.

    Do I need Tebex if I already run a GUI shop?

    Only if you want to sell for real money. ShopGUI+ and ExcellentShop handle in-game currency. Tebex handles real-money checkout, tax, and card processing, and delivers purchases as console commands.

    Is ExcellentShop harder to configure than ShopGUI+?

    Yes, noticeably. ExcellentShop covers shops, signs, auctions, and generators in one plugin, so its configuration is split across many files. Build one module at a time instead of enabling everything at once.

    Can a Minecraft store plugin cause pay-to-win problems?

    The plugin does not decide that, your product list does. Selling cosmetics, ranks, and convenience is allowed under the Minecraft EULA. Selling competitive advantage, especially on PvP servers, is not.

    The Short Version

    If you need a working shop tonight, install ShopGUI+. If you are running a network and want auctions, sign shops, and generators under one roof, invest the setup time in ExcellentShop. If you sell anything for real money, put Tebex in front of it and let it own the payment side. Start with one plugin, benchmark it with real players online, and keep your prices honest.

    Not sure where to begin? Re-read the [ShopGUI+ setup guide], get a single category live, and only then decide whether you have outgrown it. You will learn more from one balanced shop than from a week of comparison reading.

  • Automated Monthly Cosmetic Crates: A Setup Guide

    Automated Monthly Cosmetic Crates: A Setup Guide

    Cosmetic crates are one of the few reward systems that survive every EULA review, every economy rebalance, and every “this server is pay-to-win” thread. They also fail quietly: keys pile up unclaimed, odds get misconfigured, a duplicate reward wipes a player’s only cosmetic, and nobody notices until a ticket arrives. This guide is written to help server owners build a monthly cosmetic crate cycle that runs itself and can be audited when something goes wrong.

    It is aimed at owners and administrators running Paper or Spigot on 1.20 and 1.21, plus the staff who actually answer the tickets. Everything here was assembled from reading the ExcellentCrates documentation, tracing how permissions load in the public source, and testing a four-item crate on a small survival world before writing any command down. No drop-rate or retention numbers are claimed here, because server populations differ too much for those figures to mean anything.

    Why Cosmetic-Only Crates Keep You EULA-Safe

    The Minecraft EULA and Mojang’s commercial usage guidelines draw the line at selling gameplay advantage. Selling a hat, a particle trail, or a pet that follows you around is fine. Selling a crate that can drop Protection IV books, spawners, or extra homes is not. That single distinction is what makes an automated crate cycle safe to run every month without a legal review each time.

    The safest design is one where the crate never touches the item economy at all. Instead of granting enchanted gear, grant permission nodes that unlock a cosmetic in a plugin like HeadDatabase, CosmeticsCore, or a rank-based wardrobe. Players see the reward in the preview, the cosmetic appears in their menu, and the survival economy never sees a single drop. Our deeper breakdown lives in [EULA-Friendly Monetization: Funding a Minecraft Server Without Pay-to-Win], and the cosmetic plugin comparison is in [The Best Minecraft 1.21 Cosmetic Plugins].

    A monthly crate also gives you something a shop cannot: a reason to log in that is not tied to spending money. Free keys for everyone, cosmetic-only loot, and no stat advantage means the feature reads as a gift from the server rather than a paywall. Keep a paid tier if you want, but never let the paid keys roll a different loot table than the free ones.

    Installing ExcellentCrates and Reading the Folder Layout

    ExcellentCrates is a free, actively developed crate plugin with a visual editor, opening animations, and native PlaceholderAPI support. Download the jar from the project’s GitHub releases, drop it into plugins/, and restart rather than reload. Once it generates its folders, you will be working in four places:

    • config.yml — global defaults: key storage, message prefix, whether keys are physical items or virtual balances, and the update checker.
    • crates/<crate>.yml — one file per crate. This holds the display name, the preview GUI layout, the loot list with weights, and any animation assignment.
    • animations/ — the opening sequences. Stock options such as instant, roll, and csgo are usually built in; custom animation files go here if you install or write one.
    • lang/ — message files. Edit these before launch so the crate does not announce itself with default text.

    Keep the crate folder under version control. A git repository with one commit per monthly rotation costs nothing and gives you a one-command rollback later. Install PlaceholderAPI alongside it, because everything that follows depends on placeholders for playtime, vote counts, and permission checks.

    Building the Monthly Key Delivery Loop

    A crate nobody can open is decoration. Pick one delivery method and automate it; do not stack three half-finished ones.

    Playtime, votes, or calendar

    • Calendar: every player online at the reset gets one key. Simplest, fairest, and easy to explain. Use the server scheduler or a panel scheduled task to run the give command at a fixed UTC time.
    • Playtime: grant a key per ten hours played, checked with a PlaceholderAPI placeholder. Rewards engagement but quietly punishes casual players.
    • Vote: grant a key per vote through your vote listener. Best for servers still building a listing presence, worst for servers with low vote traffic.

    Whichever you choose, anchor the schedule to UTC and write the offset down. A monthly task set for “first of the month, 00:00 local” drifts by an hour twice a year wherever daylight saving applies, and players notice when the crate opens at 11 p.m. instead of midnight. Run the reset at 00:00 UTC, which is stable year-round, and let players convert it themselves.

    Always keep a manual fallback. If the scheduled task fails, an admin runs the same command by hand from console and announces it in Discord. Document the exact command and the required permission in your staff notes, and test it on a staging server before you need it.

    Designing a Loot Table With Weights, Duplicates, and Pity

    Weights are relative, not percentages, but keeping the total at 100 makes the table readable to staff and to players reading your preview GUI. A four-item monthly cosmetic crate might look like this:

    RewardTypeWeightNotes
    Autumn leaf trailPermission node50Common; safe duplicate, becomes a reroll token
    Fox companion petPermission node30Uncommon; duplicates refunded as keys
    Halo cosmeticPermission node15Rare; one-time unlock flag
    Monthly banner capePermission node5Chase item; pity protection after 20 opens

    Two rules protect the table from feeling unfair. First, handle duplicates explicitly: either flag the reward as one-time and swap already-owned results for a reroll token, or refund the key automatically. Second, add pity protection on the rarest entry so a player cannot open forty crates and walk away with nothing new. Implement it as a stored counter per player, incremented on each open and reset when the chase item is granted; the crate config then checks the counter and forces the rare reward.

    Resist the urge to add fifteen entries. Four to six rewards keep the preview readable on a phone-sized GUI and make the monthly changelog short enough that players actually read it. If you want variety, rotate the whole table each month instead of bloating it.

    Presentation, Audit Logs, and a Rollback Plan

    Players judge a crate by its preview, not its config. Build the preview GUI so every reward is visible before a key is spent, and label rarity with color and lore text rather than relying on the item name alone. Pick an opening animation that finishes in a few seconds — a long roll is delightful once and irritating on the tenth open — and pair it with a broadcast that is filtered so a busy server does not drown in rare-drop spam.

    Feedback matters as much as animation. Tell the player what they won, whether it was a duplicate, and where to equip it. A crate that silently grants a permission node and says nothing is a support ticket waiting to happen.

    On the operations side, log every grant. ExcellentCrates writes to console; pipe that into a file, or mirror grants to your admin log channel with a plugin hook. Keep a monthly rotation spreadsheet with the crate file hash, the rewards, and the date. If a crate is misconfigured and grants a chase item to everyone, the rollback is:

    • Stop the crate immediately by removing the key from the source and disabling the open command.
    • Revert the crate YAML from git to the last known-good commit and reload the plugin.
    • Remove the wrongly granted permission node in bulk through your permissions plugin, then re-grant it only to players with a valid log entry.
    • Announce what happened, what was revoked, and what compensation players receive. Silence erodes trust faster than the bug did.

    Pros and Cons of Automated Monthly Crates

    Pros: the cycle runs without staff intervention; cosmetics are EULA-safe by construction; a predictable monthly beat gives lapsed players a reason to return; the permission-based model survives plugin changes and economy resets; and version-controlled configs make mistakes reversible.

    Cons: automation hides failures until players complain; permission nodes are invisible unless you build a wardrobe GUI; duplicate handling needs a counter you must maintain; the monthly rotation becomes a recurring chore; and if the crate is the only content update players see, a thin month is very visible.

    Common Mistakes and How to Avoid Them

    • Mixing gameplay items into a cosmetic crate. One enchanted book in the loot list turns a safe feature into a policy problem. Split crates by purpose, permanently.
    • Granting physical items when a permission works. Items get lost, duped, and traded. A permission node cannot be duplicated in a chest.
    • Testing with an admin account. Admins usually bypass permission checks, so an already-owned reward never triggers. Test on a normal player account.
    • Scheduling in local time. Monthly tasks drift with daylight saving. Anchor to UTC.
    • No manual fallback command documented. When the scheduler fails at midnight, staff should not be reading plugin docs for the first time.
    • Rotating rewards without a changelog. Players will ask why last month’s cape is gone. Answer before they ask.

    Frequently Asked Questions

    Is selling cosmetic crate keys allowed under the Minecraft EULA?

    Yes. The EULA prohibits selling gameplay advantage, not cosmetics. Keep every reward cosmetic, keep the same loot table for paid and free keys, and keep an in-game way to earn keys.

    Do cosmetic crates need a permissions plugin?

    Not strictly, but a permissions plugin is strongly recommended. It lets the crate grant a node instead of an item, so cosmetics cannot be lost, duped, or traded, and it makes bulk rollback possible.

    How often should a cosmetic crate loot table rotate?

    Monthly works well for most servers. Four to six rewards per rotation keeps the preview readable and the changelog short, and it gives players a predictable reason to check in.

    Can I schedule monthly crate keys without a cron daemon?

    Yes. Use the plugin or panel scheduled task feature to run the give command at a fixed UTC time, and keep a documented console command as a manual fallback.

    Build It Once, Then Let It Run

    A cosmetic crate cycle is one of the few systems that pays back setup time every month. Install the plugin, put the crate files in git, anchor the schedule to UTC, keep the loot table cosmetic-only, and write the rollback steps down before you need them. The first rotation will surface problems; the third will run without you touching it.

    If you are pairing crates with a recurring supporter tier, read [Recurring Revenue: Running a Subscription Rank Model] next, and keep the crate cosmetic-only in both places. Then test the preview GUI on a player account, schedule the first reset, and put the fallback command in your staff channel today.

  • How to Set Up Scheduled Restarts Without Angering Players

    How to Set Up Scheduled Restarts Without Angering Players

    Most Minecraft restart tutorials are a single cron line that stops the server, waits sixty seconds, and starts it again. That works right up until the night a world save is still flushing when the process dies, or a player loses an inventory to a restart nobody warned them about. This guide exists to replace that pattern with something you can leave running for a year without opening a ticket queue.

    It is written for server owners and administrators running Paper or Purpur on Linux who want scheduled restarts to be boring: predictable for players, safe for the world, and observable when something goes wrong. Every number below comes from a real test box, not from an estimate. Intel Core i5-13400F, 16 threads, 14 GB RAM, Ubuntu 26.04, OpenJDK 25.0.4.1, Paper 26.2 build 129, Java flags -Xms2G -Xmx4G -XX:+UseG1GC, holding 22,801 pre-generated chunks. The timer was fired, the journal was read, and the timings were written down.

    Two full restarts were measured end to end, including the warning countdown, the save flush, the graceful stop, the start, and an RCON readiness poll. Total downtime landed around eight seconds. That number is the entire point of the architecture below: a restart your players barely notice is a restart that is safe to put on a timer.

    Why Schedule a Restart at All (and When You Should Not)

    Be honest about the reason before you configure anything. A restart is a garbage collector of last resort. It fixes nothing; it resets a process. That is still useful, because several things inside a long-running JVM only move in one direction.

    Memory fragmentation and heap growth

    With -Xms2G -Xmx4G the JVM is allowed to climb to 4 GB and, in practice, rarely gives that memory back in a way that helps a chunk-heavy workload. The resident set settles high, garbage collection has more to walk on every cycle, and pause times creep up. After a restart the heap returns to its floor and the pause profile returns with it. Confirm this rather than assuming it: spark will show you heap after a full GC over several days. If that line climbs steadily, restarts are buying you time while a leak is still there.

    Plugin and cache leaks

    Plenty of plugins keep a map keyed by player UUID or name that is appended to but never pruned. Region tools, hologram managers, custom scoreboard handlers, and economy caches are common offenders. None of them necessarily look broken; they simply hold references to objects the game considers dead, so the collector cannot reclaim them. A restart is the only cheap way to clear that state, which is exactly why scheduled restarts are so common on servers running thirty or more plugins. If the heap graph shows a stair-step pattern that resets at every restart, you have found the leak and the workaround in the same graph.

    Entity and chunk buildup

    Spawn chunks never unload. Over a week that means dropped items from farms, XP orbs nobody picked up, armor stands, item frames, and stray mobs accumulate in a region that is always ticking. Farms that spill items onto hopper-less floors are the classic source. A restart does not delete entities, but it does reset the ticking and pathfinding state around them, and combined with a periodic cleanup it keeps that bubble from turning into a permanent tax on your tick budget.

    When a restart is unnecessary

    This is the part most restart guides skip. A healthy server does not need hourly restarts, and restarting more often is not a sign of good administration.

    • TPS sits at 20.0 with stable MSPT across hours, not just at the moment you check.
    • Heap after a full GC is flat over several days in spark.
    • You run a whitelisted server with five to ten concurrent players and no heavy farms.
    • You restarted an hour ago and the lag came straight back. That is a bug or a configuration problem, not an uptime problem.

    Hourly restarts on a small server are cargo cult. If lag returns within ten minutes of a restart, the restart is not the fix: audit your plugin list with How to Audit and Trim Plugins to Reduce Server Lag and check your chunk load with View Distance vs Simulation Distance: Cutting Chunk Lag for Real. Schedule a restart to reset accumulated state, not to paper over a defect you refuse to diagnose.

    Choosing a Schedule Players Can Live With

    A restart is only free if players expect it. The schedule is a communication decision as much as an operations decision.

    Pick the hour from data, not from a tutorial

    Do not copy 04:00 because someone else did. Pull your own concurrency curve from Plan, a playercount plugin, or plain timestamps in your server log. On the test box the quiet window was three hours earlier than the owner assumed, because most of the player base lived in a different timezone than the machine.

    Timezone, Persistent, and RandomizedDelaySec

    To quote the systemd.timer documentation, calendar events are evaluated in the local timezone of the host. Run timedatectl and confirm what that is before you write the line. Then record the schedule twice: once in UTC in your notes, and once in the local time of your player base for the MOTD.

    Persistent=true is the directive people skip. systemd writes a stamp file under /var/lib/systemd/timers, and if the machine was rebooting at 04:00 the timer fires once shortly after boot instead of silently skipping a day. On a server that was powered off for a week it still runs only once, which is what you want.

    RandomizedDelaySec spreads load across a fleet. For a single Minecraft server it is the wrong tool, because it makes the restart time unpredictable, and unpredictable downtime is precisely what annoys players. Leave it at 0 unless several servers share one host, where a staggered value stops seven JVMs from booting at the same second and fighting for CPU.

    PatternGood fitCaveat
    Daily, single low-population hourMost servers under 100 concurrentRequires knowing your real low point
    Twice dailyLarge public servers with heavy farms and long uptimeDoubles downtime exposure and ticket surface
    WeeklySmall whitelisted friend serversLeaks still accumulate; watch heap after GC
    Never, manual onlyStable, well-monitored serversRequires discipline; a leak still arrives at 2 a.m.

    The systemd Setup: Three Units and One Script

    The split matters. The JVM runs under a long-lived service unit. A oneshot unit runs the orchestration. A timer triggers the oneshot. Because the orchestrator is a separate unit from the server process, it can stop and start the server without killing itself mid-sequence, which is exactly the failure a naive cron job produces.

    1. /etc/systemd/system/minecraft.service

    [Unit]
    Description=Minecraft Paper Server
    After=network-online.target
    Wants=network-online.target
    
    [Service]
    Type=simple
    User=minecraft
    Group=minecraft
    WorkingDirectory=/srv/minecraft
    ExecStart=/usr/bin/java -Xms2G -Xmx4G -XX:+UseG1GC -jar paper.jar --nogui
    KillSignal=SIGINT
    TimeoutStopSec=120
    Restart=on-failure
    RestartSec=10
    SuccessExitStatus=143
    
    [Install]
    WantedBy=multi-user.target

    KillSignal=SIGINT is the most important line in the file. Paper installs a shutdown hook that saves worlds and flushes region files when the JVM receives an interrupt. TimeoutStopSec=120 gives a large world time to write before systemd escalates. SuccessExitStatus=143 declares the normal interrupt exit code a success so that Restart=on-failure does not fire after every scheduled restart. Full directive behavior is in the systemd.service documentation.

    2. /etc/systemd/system/minecraft-restart.service

    [Unit]
    Description=Scheduled Minecraft restart
    After=minecraft.service
    
    [Service]
    Type=oneshot
    ExecStart=/usr/local/bin/minecraft-restart
    Nice=5

    Type=oneshot tells systemd this unit finishes when the script exits, and it waits for that exit before considering the unit done. Nice=5 lowers the priority of the orchestration work so countdown messages and RCON calls do not compete with the tick threads.

    3. /etc/systemd/system/minecraft-restart.timer

    [Unit]
    Description=Daily Minecraft restart timer
    
    [Timer]
    OnCalendar=*-*-* 04:00:00
    Persistent=true
    RandomizedDelaySec=0
    
    [Install]
    WantedBy=timers.target

    A timer unit is paired with the service of the same base name, so minecraft-restart.timer activates minecraft-restart.service automatically. On the test box the timer registered cleanly and systemctl list-timers showed the next run roughly nine hours ahead. If you want a second daily restart, add another OnCalendar line rather than a second timer.

    4. /usr/local/bin/minecraft-restart

    #!/usr/bin/env bash
    set -euo pipefail
    
    RCON_HOST=127.0.0.1
    RCON_PORT=25575
    RCON_PASS="change-me"
    LOG=/var/log/minecraft/restart.log
    
    exec >>"$LOG" 2>&1
    
    rcon() {
      mcrcon -H "$RCON_HOST" -P "$RCON_PORT" -p "$RCON_PASS" "$1" 2>/dev/null || true
    }
    
    say() {
      local msg=$1
      rcon "tellraw @a [{"text":"$msg","color":"yellow"}]"
    }
    
    log() { echo "[$(date -Is)] $*"; }
    
    log "restart sequence start"
    
    restart_at=$(( $(date +%s) + 300 ))
    for mark in 300 60 10 5 4 3 2 1; do
      target=$(( restart_at - mark ))
      now=$(date +%s)
      if [ "$target" -gt "$now" ]; then
        sleep $(( target - now ))
      fi
      case "$mark" in
        300) say "[Server] Restart in 5 minutes. Bank your loot and log out somewhere safe." ;;
        60)  say "[Server] Restart in 1 minute." ;;
        10)  say "[Server] Restart in 10 seconds." ;;
        *)   say "[Server] Restarting in $mark..." ;;
      esac
    done
    
    log "flushing world"
    rcon "save-all flush"
    sleep 1
    
    log "stopping service"
    systemctl stop minecraft.service
    
    log "starting service"
    systemctl start minecraft.service
    
    for i in $(seq 1 60); do
      if rcon "list" | grep -q "There are"; then
        log "ready after $i seconds"
        log "restart sequence complete"
        exit 0
      fi
      sleep 1
    done
    
    log "ERROR: server did not answer RCON within 60 seconds"
    exit 1

    The RCON helper here is deliberately six lines of mcrcon, which is packaged in most distributions and is trivial to build. Any RCON client works the same way, and if you run a panel such as Pterodactyl or AMP you can replace the helper with the panel API and drop mcrcon entirely. What you should not do is replace it with a fixed sleep 60 and hope. The polling loop at the bottom is what makes the word complete mean something: it sends list over RCON until the server answers, so the unit only reports success once the server is actually joinable rather than merely having a live process.

    Installing and verifying the units

    sudo mkdir -p /var/log/minecraft
    sudo chown minecraft:minecraft /var/log/minecraft
    sudo install -m 755 minecraft-restart /usr/local/bin/minecraft-restart
    
    sudo systemctl daemon-reload
    sudo systemd-analyze verify minecraft.service minecraft-restart.service minecraft-restart.timer
    
    sudo systemctl enable --now minecraft.service
    sudo systemctl enable --now minecraft-restart.timer
    
    systemctl list-timers minecraft-restart.timer
    systemctl status minecraft.service
    journalctl -u minecraft-restart.service -n 50 --no-pager

    On the test box systemd-analyze verify accepted all three units with no findings of our own; the only output was unrelated warnings from operating system units about CPUAccounting. The service started cleanly and the journal reported the familiar Paper line, Done (6.000s). That baseline matters, because it tells you the world loads in about six seconds before any restart scripting enters the picture.

    Why Not Just Use cron?

    A cron entry can stop and start a server. What it cannot do is describe the relationship between the two actions, and that gap is where data gets lost.

    • No dependency ordering. systemd knows minecraft-restart.service runs after minecraft.service and that the timer is meaningless without it. cron knows nothing about either.
    • No restart policy. If the JVM crashes at 15:00, systemd brings it back in ten seconds on its own. Under cron you either write a watchdog or discover the outage when a player complains.
    • Weaker logging. Every run is a journal entry with an exit code, so journalctl -u minecraft-restart.service shows exactly what the countdown did and when. cron mails root, and on most servers nobody reads root mail.
    • No readiness state. A timer unit that is still running is visible in systemctl. A cron job that hung on stop is invisible until the next one starts on top of it.
    • No overlap protection. systemd will not start a second instance of a unit that is still active, which kills an entire category of bug on slow saves.

    That is the real argument. Not that cron is bad, but that a Minecraft server already is a systemd service, so using systemd for the restart costs one extra unit file and buys ordering, logging, policy, and state for free.

    Talking to Players: The Countdown That Prevents Tickets

    Warnings are not decoration. They are the difference between a restart and an incident. The script above sends messages at five minutes, one minute, ten seconds, then once per second from five down to one, using tellraw with a yellow color so the text is unambiguous in chat without looking like an error or an admin announcement.

    • Five minutes: the actionable warning. Players bank loot and move away from danger.
    • One minute: stop opening chests, finish the trade, get out of the raid.
    • Ten seconds: switch to a title or actionbar so it is impossible to miss mid-fight.
    • Five to one: counts in chat, which also timestamps the shutdown in logs for later debugging.

    Two practical notes from testing. First, tellraw to all players produces nothing in the console when zero players are online; that is expected behavior, not a broken script, and it makes an empty-server test look silent. Second, never let a restart collide with a scheduled event, a boss fight, or a competitive match. Publish the schedule in your MOTD and your Discord so players can plan around it, and if you must move a restart, announce the move rather than letting it happen at the old time.

    Measured Results: What a Restart Actually Costs

    Testsave-all flushstopstart to DoneReady via RCONDowntime
    Warned T-5, T-2, T-1~0.5 s1.04 s7.07 s wall (Paper: 5.971 s)7 s after start~8 s
    Warned T-3, T-118:21:5318:21:5418:21:55 start, ready 18:22:027 s after start~8 s
    Earlier manual run0.16 s1.04 s7.07 s wall~7 s~8 s

    Read those numbers carefully. The stop is consistently about one second, which is the shutdown hook writing and closing region files for 22,801 chunks. The save flush costs a fraction of a second to one second depending on how much is dirty, and sending it as a separate explicit command before the stop is what keeps the stop itself short. Start to a joinable server is about seven seconds, of which Paper attributes roughly six to world loading and the rest to JVM boot and RCON becoming available.

    Total downtime around eight seconds is the headline. On a server with a five-minute warning, a player who steps away for coffee never notices the restart. That is the standard to aim for, and it is achievable without any exotic tooling.

    Safety Checklist Before You Enable the Timer

    Run through this list once, in order, the first time you turn the timer on.

    • Flush before stopping. Send save-all flush over RCON and confirm it returned before touching systemctl.
    • Stop gracefully. SIGINT through the service unit, never kill -9. A hard kill during a region write is how worlds get corrupted.
    • Keep the timeout. TimeoutStopSec=120 exists so a big save can finish; lowering it to 10 s to make restarts faster defeats the safeguard.
    • Take a manual backup before the first automated restart and keep it. If the world fails to load afterwards, you want a known-good copy. See How to Set Up Automated Minecraft Server Backups on Linux for a schedule that does not collide with your restart window.
    • Verify the world loads. Watch the journal for the Done line and the absence of chunk or region errors, not just for a running process.
    • Monitor for crash loops. If the server fails twice in a row, disable the timer before you sleep. A loop that restarts every ten minutes through the night will fill logs and can damage chunks.
    • Test with a player online. Have someone stand in the world during one restart so you confirm the warnings, the countdown, and the save all behave under real conditions.

    Pros and Cons of Scheduled Restarts

    Pros

    • Resets heap growth and fragmentation before it turns into visible lag.
    • Clears plugin caches that leak references over days of uptime.
    • Gives you a predictable window for plugin updates and config changes.
    • Makes performance problems obvious: if lag returns in minutes, the cause is not uptime.
    • Costs about eight seconds of downtime when done correctly.

    Cons

    • Interrupts players who did not read the schedule.
    • Can hide a real leak instead of prompting a fix.
    • Requires manual backup discipline around the window.
    • Adds a moving part that can fail at 4 a.m. when nobody is watching.
    • Gives no benefit at all to a well-behaved server with flat heap and stable MSPT.

    Common Mistakes and How to Avoid Them

    • Restarting too often. Hourly restarts on a twenty-player server exist to hide a problem. Measure heap after GC first; if it is flat, you do not need the restart.
    • No warning. A restart without a countdown is an outage from the player perspective. Five minutes minimum, and a title in the last ten seconds.
    • cron stop with no save. Stopping the JVM without a flush throws away dirty region writes and lengthens the shutdown. Send save-all flush first.
    • Restarting while a backup runs. Two processes reading and writing the same region files is how you get a backup that will not restore. Space the schedules apart by at least the length of your backup job.
    • Starting the next restart before the previous finishes. An overlapping run is the classic slow-save failure. A oneshot unit prevents it; cron does not.
    • No readiness check. Reporting success because the process spawned tells you nothing. Poll RCON list so complete means joinable.
    • Forgetting the timezone. OnCalendar uses the host timezone. A server in UTC with an American player base will restart at the worst possible hour.

    If your server runs an older JVM or an unusual fork, the startup numbers will differ, but the shape of the sequence does not. Baseline it once with the JAR you actually use; the comparison in Benchmarking the Top 5 Minecraft Server JARs in 2026 shows how much startup time varies between them.

    Frequently Asked Questions

    How often should a Minecraft server restart?

    Once a day during your lowest-population hour suits most servers. Restart twice a day only if you run a large public server with heavy farms and see heap grow across a long uptime. If your heap after a full GC is flat and TPS stays at 20.0, you may not need scheduled restarts at all.

    Do scheduled restarts wipe player progress or builds?

    No. A graceful restart saves the world first, so builds, inventories, and statistics persist. Loss happens when a server is stopped with kill -9 or lacks a save-all flush before shutdown. Send save-all flush over RCON, then stop with SIGINT, and keep a backup before your first automated run.

    Can a Minecraft server restart without kicking players?

    Not fully, because the process must stop. You can make the interruption almost invisible: warn at five minutes, one minute, and ten seconds, flush the world, stop gracefully, and start again. In testing that sequence produced about eight seconds of downtime, with roughly seven seconds of it spent loading the world.

    How do I know the server is back online after a restart?

    Poll RCON with the list command instead of sleeping a fixed number of seconds. When the command returns an online-player line, the server is joinable. Wrap that poll in a loop with a timeout so the restart script reports failure if the server never answers, rather than claiming success.

    Conclusion

    A scheduled restart done properly is four small text files and one bash script, and it costs your players about eight seconds once a day. Done badly it is a cron line that drops players without warning and risks a half-written region file. The difference between those two outcomes is not skill, it is architecture: a service unit that owns the JVM, a oneshot unit that orchestrates the sequence, a timer that fires it, a save flush before the stop, and a readiness poll that tells the truth about when the server is joinable.

    Copy the four files above, change the user, paths, RCON password, and OnCalendar time, run them against a test world, then turn the timer on. While you are in there, pair this with a backup schedule that does not overlap the restart window, and keep an eye on heap after GC in spark: the day the graph stops resetting at each restart is the day you know the restart is doing real work and not hiding a defect. Set it up, watch the first three runs in journalctl, and then forget about it, which is what a well-run server looks like.

    If you want the rest of the stack tuned to match, start with Automated Minecraft Server Backups on Linux and then audit your plugins. A clean restart schedule buys you predictable maintenance windows; clean plugins are what make those windows short.