Marketplace/Gameplay/mafia plugin

mafia plugin

minecraftFreev1.0.0

Description

Create a Minecraft plugin called MafiaRoles with 3 roles: KING (always exactly 1), ASSASSIN (count set in config.yml, default 1), VILLAGER (remaining players).
Command /losujrole — randomly assigns roles to all online players (requires permission mafiaroles.start). /losujrole reset — clears all roles and teams.
Validation: minimum 3 players online, assassin-count must leave room for at least 1 of each role.
Role reveal — private messages only:

Every player sees their own role:

§6✦ Twoja rola: KRÓL
§c⚔ Twoja rola: ZABÓJCA
§a⚑ Twoja rola: MIESZKANIEC


Every player sees who the king is: §6Król to : [player name]
ASSASSINS also receive a list of other assassins
VILLAGERS and KING receive no further info

Nametag: Scoreboard team mafiaAssassin with suffix §c [Zabójca], visibility HIDE_FOR_OTHER_TEAMS — only assassins see the tag above other assassins' heads.
config.yml:
yaml# King is always exactly 1 - this cannot be changed
assassin-count: 1
Generate complete Java source code with plugin.yml and config.yml.

Reviews (0)

No reviews yet

Be the first to leave a review!

Bartek Rak

Seller

Bartek Rak

0

downloads

Versionv1.0.0
Platformminecraft
Typepaper
Minecraft VersionMC 1.21
CategoryMinecraft Plugins > Gameplay
Published on10/04/2026
Last update21/04/2026
Free