Mafia
READ TO THE END, OR AT LEAST SKIM OVER TO IT.
(Continued from http://forums.bukkit.org/threads/fun-rpg-misc-minecraft-mafia-v1-2-a-plugin-of-lies-and-deception-1-2-5-r4-0.83645/) Minecraft Mafia is a party game of lies and deception. This plugin is heavily inspired by the SC2 custom game 'Mafia', so if you've ever had the chance to play that, this plugin will come naturally to you. If not, basically the goal of the game is to either lynch all the mafia if you're town, or to kill all the town if you're mafia. Each class has unique abilities and your job is to use those to help your group (Town/Mafia). There are also neutrals included which have their own unique goals and aren't affiliated with anyone.
-How to play-
To start a game of mafia, an op must do /mafia start. All players who wish to join the game have 15 seconds to type /join. All players are told their individual role and the players are given time to discuss. Then, it's voting time. Depending on whether or not NoVoteOnFirstDay is enabled, players can type /vote [player] to put a player on trial. If the player is put on trial, he is given time to defend himself, then players can type /innocent or /guilty. If he is found guilty, he will be lynched and his role will be revealed. If innocent, the night will start just like if no trial was initiated that day. At night, each player can use their respective abilities by typing their role as a command. Once night is over, everyone is teleported to a normal house. If someone was role blocked, they are sent to a special place. If mafia killed someone, that person is killed (unless the doctor was able to heal them) and their role is revealed. Whoever the sheriff checked's role is also revealed to the sheriff. Then, the cycle repeats until there is either no town left or no mafia left.
-Commands-
/commands : Gives a list of common commands.
/join : Joins the game of Mafia during the 15 second waiting period.
/clock : Tells the current day, the section of day you're on, and how many seconds until the next section.
/role : Tells you your role.
/players : Shows a list of players currently alive in the game of Mafia.
/graveyard : Shows a list of dead players and their role.
/lastwill [message] : Shows the written message when you die.
/vote [player] : Votes to put this player on trial.
/cancelvote : Cancels your vote for putting the player on trial.
/innocent : Votes the player on trial innocent.
/guilty : Votes the player on trial guilty.
/[sheriff|doctor|escort|citizen|gf|mafioso|jester] : Shows the list of subcommand actions you can perform at night if you are this role.
Within /mafia:
/mafia start: Starts a game of mafia.
/mafia stop: Stops the game of mafia.
/mafia setminplayers [min]: Sets the minimum amount of players.
/mafia setmaxplayers [max]: Sets the maximum amount of players.
/mafia settrial [id]: Sets the trial location of the id to the player's position.
/mafia sethouse [id]: Sets the house location of the id to the player's position.
/mafia setpodium: Sets the location of the podium to the player's position.
/mafia setsheriff: Sets the location of the sheriff's office to the player's position.
/mafia setdoctor: Sets the location of the doctor's office to the player's position.
/mafia setmafia: Sets the location of the mafia bunker to the player's position.
/mafia setrb: Sets the location of the place player's are sent when roleblocked to the player's position.
/mafia trialradius [radius]: Sets the radius of the trial to the given amount.
/mafia lynchradius [radius]: Sets the radius of the podium's lynching area to the given amount.
Mafia Reward Commands:
/mafia reward itemflag [true/false]: Sets whether or not items are given as a reward.
/mafia reward additem: Add's the item in the player's hand to the item rewards list.
/mafia reward clearitems: Clears the list of items given as rewards.
/mafia reward xpflag [true/false]: Sets whether or not xp is given as a reward.
/mafia reward xpamount [amount]: Sets how much xp is given.
-Permissions-
Mafia.*
Mafia.sheriff
Mafia.doctor
Mafia.escort
Mafia.citizen
Mafia.vigilante
Mafia.mafioso
Mafia.gf
Mafia.consort
Mafia.jester
Mafia.arsonist
Mafia.clock
Mafia.vote
Mafia.cancelvote
Mafia.role
Mafia.commands
Mafia.join
Mafia.innocent
Mafia.guilty
Mafia.players
Mafia.graveyard
Mafia.mafia
Mafia.mafia.start
Mafia.mafia.stop
Mafia.mafia.setminplayers
Mafia.mafia.setmaxplayers
Mafia.mafia.settrial
Mafia.mafia.sethouse
Mafia.mafia.setpodium
Mafia.mafia.setsheriff
Mafia.mafia.setdoctor
Mafia.mafia.setmafia
Mafia.mafia.setrb
Mafia.mafia.trialradius
Mafia.mafia.lynchradius
-Roles-
Town:
Sheriff: The sheriff has the ability to check a person's role at night.
/sheriff check [player] : Checks this player's role at night.
Doctor: The doctor has the ability to heal someone at night.
/doctor heal [player] : Heals this player at night, preventing them from being killed.
Escort: The escort has the ability to roleblock someone at night.
/escort rb [player] : Roleblocks this player at night, disallowing them to use their ability, and sending them to a special building.
Citizen: The citizen is a generic town role who wins if town wins.
/citizen vest : COMING SOON!
Vigilante: The vigilante can shoot people at night.
/vigilante kill [player] : Shoots the selected player at night.
Mafia:
Godfather: The godfather is the lead mafia who can override who to kill at night.
/gf kill [player] : Selects this player to be hit by the mafia.
/gf team : Displays a list of all the mafia.
Mafioso: The mafioso has the ability to kill someone at night for mafia.
/mafioso kill [player] : Suggests the mafia kill this player at night.
/mafioso team : Displays a list of all the mafia.
Consort: The consort has the ability to roleblock someone at night for the mafia.
/consort rb [player] : Roleblocks this player this night.
/consort team : Displays a list of all the mafia.
Neutral:
Jester: The jester achieves his objective if he is lynched at trial, giving him the win bonus.
/annoy [player]
Arsonist: The arsonist can douse people in gasoline at night or chose to light all doused players on fire!
/arsonist douse [player] : Douses the player with gasoline.
/arsonist ignite : Ignites all doused players.
-Configuration-
Just edit the provided config file to your liking. I do suggest you use the provided file, though.
How to make your own map for Mafia:
Make your town where all the trials and lynchings will happen.
Set the locations where the player's will spawn into the trial by using /mafia settrial [id].
Set the location of where the podium is using /mafia setpodium.
Create enough buildings to individually house the maximum number of players (adjustable using /mafia setmaxplayers [max]). Space the houses at least 64 blocks apart so that player's cant see eachothers name tags.
Set the location of each house using /mafia sethouse [id].
Now you need to create the buildings for the sheriff, doctor, and mafia. Again, space each at least 64 blocks apart.
Set the location of each building using /mafia setsheriff, /mafia setdoctor, /mafia setmafia respectively.
Now create the place where roleblocked people will be sent at night.
Set the location of the building using /mafia setrb.
And your map is done!
(Optional) Set the rewards the winners get using /mafia reward. In the config (possibly within the plugin) edit the positions of the houses if you choose to use the provided map.
Download the map (made by the original creator, theninthworldix): https://dl.dropbox.com/u/51784213/Mafia.zip
-Possible Future Features-
A point system.
-Possible Future Roles-
Mafia
Disguiser (Harder to make)
Neutral
Serial Killers
Mass Murderers
-Planned Roles-
Mafia
Framer
Blackmailer
Neutral
Witch
Executioner
Contact Me and Further Info on the plugin
First, contact. My email is [email protected]
Only use that for more private matters.
Second, Next, and Last. The reason of the item rewards I put in, Gold and Iron, are because I am thinking, if I make a point system, gold will be the points! Each win you get 64 gold. Always store your gold in a Ender Chest by the way, and always have a couple on you. I will list a recommended plugins to help this. Plus, gold works with Lottery, making it where you can auction points off! Also, you could (or I could) make a shop using gold as a currency. This would work without point systems. Pretty much this is how you can make your own point system, just with 2 plugins and using the recommended config file! Also, you know, setting up the shop and lottery ya know. But yeah. Also, about the iron, diamond seemed too generous. Iron tools can be helpful.
Recommended Plugins to Help
Lottery
ChestShop
I downloaded Vault, I downloaded MySQL, but still Mafia won't load. This is the ONLY good looking Mafia plugin out there that I can download. But, it won't load. I reloaded my server, I restarted my server, and It still doesn't work, help?
You can play Mafia on various places online. Truly competitive Mafia games require that a player is unable to prove his game role to anyone else. ExposeMafia.Com is the only place where games such as these can be played...
(This is the third time writing this, wtf back button on mouse and backspace button) So sorry about the long wait, I had to do what I had wanted to do back 2 months ago and re-write parts of the code, do some error/bug fixes, and then update the jars since the update came. I never finished, my work was mostly erased, I got busy, I got back to it, Mojang updated, repeat last few things, Bukkit updates, I get to it, almost done when Mojang updates (I was busy for a while between the two updates, but enough to work some), suddenly I realize "why not just wait until Bukkit updates, and 'til then just work a lot so there won't be any when the update comes! This didn't work. Skip a week or two (or three) and I finally finish everything. Then I be smart and save my work, wait a day to see if my luck runs out and Mojang updates again, nothing happens, update this page and rejoice. Sorry for telling you my whole like story but whatever. Back to the off topic thing we weren't even talking about:
I don't really like doing videos, especially with me talking in them, so if you do a video, please show me it and if I decide to put it on here, I will definitely credit you for it. Don't do a playthrough (or I guess you could do both), just do something showing usage and all. Plllleeeeaaasseee?
:D I played this game IRL. Glad to see it's a plugin now :) Can you make a tutorial to teach us how to set this whole thing up?
I got the same problem as willkiller, the plugin won't load. I just get a bunch of errors in the console.
Rather detailed post, *takes out pipe*, eh?
@mccol
Emailed.
please help me I'm korean so not perfect english I really play this plugin I already try this mafia plugin 1.2v but It can't right running. no started "Day0"
anyway today I see this plugin updated Can you give this plugin minecraft 1.5.2 version? [email protected] here Please and teach me why no stared reason 1.2v quickly reply please
@willkiller1234
Either install MySQL or its a bug that I will try to fix. That I know of there is no dependencies.
@Allateef
Thanks, I'll try!
Dude, I just registered myself so I can write here! The idea sounds great, I'll install the plugin in order to write back with my opinion. Tip: you should try to explain the "how to play" better, maybe a video tutorial?
Thanks and keep up the good work. Greetings from Chile!
i can't get it to load up on my server. Is there any dependencies?
Anyone?
@JNike Thanks for checking it out! I take suggestions. Got any?
thx for this awesome plugin.
You like? I like.
CONSORT ADDED
If /consort team does not work, this is a bug in the code. Use /mafioso team
Since the commands were copied from escort, if all else fails, use /escort rb
@GoldenVapour Its rather new and I don't run it myself as my server already has itself set up for something. However, if anyone out there ever makes a server using this plugin, I would probably play on it, and if there are numerous ones, I would like to make a list of it on here. I will work on the interaction, and /graveyard is meant to have roles, most classic mafia games have them, including SC2Mafia. The reason for this is that people can make it more of a actual mystery game with clues, other than a guessing game. Thank you, if this becomes a common issue I will change it.
OMG i play this game all the time, this sounds really cool.
Some issues i see from description :
/graveyard should not state the roles as it helps them work out whole left ie roles
Also i think this game would be even more epic if it had more interaction instead of commands ie you hit the guys with a wooden sword who you want to linch etc
I was also wondering if you know any servers that run this plugin as i would be intrigued how it would play out in minecraft
Thanks
Golden