Skip to content

ShottyMace

Mace Roulette: last player standing on a floating floor that shrinks, with a mace. Two modes, 22 modifiers, a training spot, unlockable helmets and win poses, and stats with a rotating leaderboard. It runs as an event in ShottyEvents, so it is in the vote and the automatic events, and wins are paid with ShottyEvents’ prizes and bonuses.

  • Server: Paper 26.3, Java 25.
  • Recommended: ShottyEvents, Multiverse-Inventories.

Everything is built in code in one empty world of its own (world, default shottymace): the Mace lobby at (0, 100, 0), the arena at (1000, 100, 0) and the training spot at (-1000, 100, 0). Nothing outside that world is touched. A private lobby can play its own copy, in shottymace_p1, shottymace_p2 ….

Players come in with /event join while Mace Roulette is the event, wait in the Mace lobby and are queued automatically. A game starts 30 seconds after enough players are queued (2), or 10 seconds once it is full (16). The mode is the one the players voted for (a tie, or no votes, is random):

  • Roulette: each turn a spin picks a player (fewest turns first, never the same one twice running). They get the mace, one wind charge and 12 seconds. A smash on another player knocks that player out. If they land from a launch without smashing anyone, or run out of time, they explode and lose 4 hearts, and the mace goes to someone else; with no hearts left they’re out. Health doesn’t come back. Nobody else can hurt anyone, but smashes, wind charges and explosions push, and falling off is out. The floor shrinks before every third turn.
  • Free-for-all: everyone has a mace and up to 3 wind charges (one back every 6 seconds). Smashes do half their usual damage, ordinary hits 60%. Health doesn’t come back except 2 hearts for a knockout. The floor shrinks every 30 seconds. After 8 minutes, the most knockouts wins.

The floor starts at radius 8 plus 1 per player (at most 24), shrinks 2 at a time (never below 5), and the ring about to go turns red for 2 seconds first. After a game everyone goes back to the Mace lobby and into the queue.

Modifiers: most games roll one or two (10% none) of 22, at most one per group:

Group Modifiers
Floor Ice Floor, Glass Floor, Slime Floor, Soul Sand
Shape Donut (a hole in the middle), Tiny Map
Players Low Gravity, Super Jump, Speed Frenzy, Lights Out, Random Sizes, Growth Spurt, Heavy Hitters
Arena TNT Rain, Thunderstorm, Cobweb Trap
Mace Explosive Hits, Wind Storm, Wind Burst, Double Mace and Mace or Die (Roulette), One Punch (Free-for-all)

Training: three dummies that never move or die. Each hit says how hard it was and whether it was a smash, with the best smash of the visit.

Cosmetics: helmets, worn in the Mace lobby and in games (never with armour points), and win poses: a statue of the winner in the middle of the arena, in a pose (standing, sneaking, swimming, flying, sleeping), with an effect (fireworks, lightning, levitate, totem, confetti, dragon, black hole). 14 helmets and 9 poses come in config.yml. Each unlocks by games, wins, kills, smashes or a best streak, or with the permission shottymace.cosmetic.<id> (for a store). One marked store-only unlocks by the permission alone.

Stats: games, wins (per mode), knockouts, times out, smashes, misses, turns with the mace (hit rate = smashes per turn) and streaks, kept in stats.yml. The lobby leaderboard turns through most wins, most knockouts, best hit rate (10 turns or more) and longest streak.

/mace, aliases /mr and /maceroulette.

Command Who What it does
/mace join players Joins or leaves the queue (the lime dye does the same).
/mace vote [roulette|ffa] players Votes for the next mode (the nether star opens the vote).
/mace train, /mace watch players The training spot; watch the game that is on.
/mace leave players Back to the Mace lobby; from the lobby, out (runs exit.command, like the bed).
/mace cosmetics, /mace stats [player], /mace top [wins|kills|hit-rate|best-streak] players
/mace start [roulette|ffa] [force], /mace stop staff Start now with the queued players (force: even one), or stop the game.
/mace mode <roulette|ffa>, /mace modifier <ids...|random|none> staff The next game’s mode and modifiers.
/mace preview <pose> [player] staff Shows a win pose on the spot.
/mace play [copy], /mace exit, /mace close [copy] ShottyEvents Its join, leave and stop lines. From the console: mace enter <player> [copy].
/mace resetstats <player>, /mace reload staff

Permissions: shottymace.play (everyone), shottymace.admin (operators), shottymace.cosmetic.<id> (nobody by default).

events:
maceroulette:
name: "<gradient:#ff5f5f:#ffb35f><bold>Mace Roulette</bold></gradient>"
description: "Smash or be smashed on a shrinking floor"
min-players: 2
twists: [] # Mace Roulette rolls its own modifiers
worlds: [shottymace]
instances: true # a private lobby plays its own copy
join:
commands: ["player: mace play {instance}"]
leave: ["player: mace exit"]
start: []
stop: ["console: mace close {instance}"]
reset: []

It has no start lines, so it repeats by itself until ShottyEvents closes it (vote.loop-minutes, or when empty). A win runs rewards.commands: event win {player} --players {players} --event maceroulette.

Give the world (and its copies) a Multiverse-Inventories group of its own that shares everything, so nothing from the hub comes in and nothing from Mace goes out. ShottyMace loads before Multiverse-Inventories so the world exists when the groups are read. A player is moved first and their inventory cleared after, and on the way out only the Mace inventory is ever cleared. Anyone who logged out in the Mace world is sent back out when they log in.

Section What it sets
world The world everything is built in.
exit.command Typed as the player to leave Mace (event leave; without ShottyEvents they go to the main world’s spawn).
lobby, arena, training Where each is and what it is built from.
queue Players to start and at most, countdowns, auto-join and re-queue.
game How the mode is picked (vote, random, roulette, ffa), countdowns, and where players who are out watch from.
roulette, ffa Each mode’s wind charges, turn length, damage, healing, shrinking and time limit.
modifiers On or off, how many per game, the chance of none, and the list.
rewards The commands a win runs, from the console: {player}, {players}, {beaten}, {mode}, and {money} (per-player-beaten for each player beaten, at most max) for a command that pays by itself, such as gamewin maceroulette {player} {money} Mace Roulette.
leaderboard How long each page shows.
cosmetics The helmets and poses and how each unlocks.
messages Every message, in MiniMessage. messages.board.title and messages.board.footer are the sidebar’s title and its last line (such as your server’s address; empty, none).

mvn -B package gives target/ShottyMace-<version>.jar (JDK 25, Paper API 26.3).