Town of Salem
Town of Salem vers. alpha_1.4.2
This plugin adds the browser game "Town of Salem" as a mini game to your server.
Please note that this plugin is still highly experimental and thus bugs are to be expected.
How it works:
Using the command /tos map create you can create a new map which consists of sixteen houses surrounding a jail and gallows. If you want, you can also use your own custom map (please see below for details). In order to create a new game simply type /tos game create - up to sixteen players can join the game by using /tos join.
By typing /tos game start you can start the game and all players who joined previously are given a random role and are teleported to their houses. During the day phase a player can be put on trial by voting while each player can use their abilities during the night or day phase (depending on their role). Information about the commands which are used within the game are provided to the players so you do not have to keep the commands in mind. Also, you can receive help concerning your role by typing /salem help or /salem role while the game is running.
- Items and experience will not be lost as you will not really be killed playing the game
- You need to confirm your decision after typing /tos map create in order to prevent damage to your buildings.
- The plugin uses its own chat so you will not be able to communicate with other players who are not playing the game (anyway you will be able to see their messages...)
- You are not able to leave the map while the game is in progress (other players are not able to enter the map)
- You cannot place, break or ignite blocks while the game is in progress
- Evil mobs will be cleared within the map regularly and players cannot be damaged
- If you die you will be invisible to living players
- If you disconnect from the server while the game is in progress you will be muted and die the next night
Roles:
So far, this plugin contains following roles known from the browser game:
serial killer, jester, godfather, mafioso, framer, janitor, sheriff, lookout, escort, jailor, medium,
spy, veteran, vigilante
Commands:
/tos map create -> Creates a new map
/tos confirm -> Confirms the creation of a new map
/tos game create -> Creates a new game
If you want to use your own custom map:
/tos setHouseDay houseX -> Set a custom location where the player will spawn each time a new
day begins (replace X by a number between 1 and 16)
/tos setHouseNight houseX -> Set a custom location where the player will spawn each time a new
night begins (replace X by a number between 1 and 16)
/tos setSpawnJail -> Set a custom spawn for the jail
/tos setSpawnLynch -> Set a custom spawn for the player who is to be lynched
(please be aware that by using the commands which create custom spawn locations, you need to have created a map before nonetheless (however, you can remove that map right after its creation))
/tos join -> Lets the player join the game
/tos game start -> Starts a game
/tos game stop -> Stops a game. If you don't stop the game it will stop itself as soon as somebody wins
/tos help -> Displays help
/tos reload -> Reloads the plugin (not available at the moment)
/tos back -> teleports the player back to their previous location after the game ended
All further ingame-commands which are used within the started game are going to be displayed during the game.
Permissions:
tos.create -> Permission to create a game or a map
tos.join -> Permission to join and play a game
The aim of this plugin:
I created this plugin hoping that maybe some day we might make something own out of it. Perhaps I will receive some suggestions concerning new roles or new features for the plugin which make an own game based on the concept of "Town of Salem" (or other games like "Mafia" or "Werewolf") possible.
Hopefully some day this plugin can be more than a simple clone of Town of Salem.
Config:
In the config file you can set:
- the maximum amount of players to join (absolute maximum is 16). You can also find a role list which you can use to play the game with the roles you want (you can use a role multiple times if you want to)
- whether you want to use your own custom role descriptions using the messages.txt file
- whether you want all players to be teleported back to their previous locations automatically or whether you want them to type /tos back manually
Further explanations can also be found within the file.
Known bugs:
- Doors are not placed properly when a new map is created. You can place them manually afterwards if you want to.
- As this plugin is experimental bugs are to be expected! Please let me know if you encounter any bugs that are not listed here :)
Planned features:
- none
Change log:
alpha_1.0:
- initial release
alpha_1.1:
- Vigilante now needs to wait one day before using his gun
- When a player is on trial he is not able to vote anymore
alpha_1.2:
- bug fixes; added some debugging features
- the read-me file (and main file) are going to be updated now when a new version of this plugin is used
alpha_1.3:
- not working with Threads anymore, this plugin is now safe to use
- fixed a bug which used to occur while playing as Serialkiller
alpha_1.4:
- you can now set your own custom spawns for each player, the jail and the gallows, so you don't need to use the default map anymore
alpha 1.4.1:
- updated plugin to latest Bukkit version
- formatted help messages slightly
alpha_1.4.2:
- changed the /t prefix used by the in-game commands to /salem so that it won't clash with other plugins
- added /tos back command
- added a new option to the config file for choosing whether the players should be teleported back to their previous locations automatically after the game ended
Hi, I created a game,No one joined and now it won't stop!
In reply to mrryankun:
Hey, thanks for your comment. I'm going to look into that issue. What happens when you try to stop the game? Are there any messages?
Any thoughts on adding doc or bodyguard role?
i want to run this plugin on my 1.15 server.
edit: If you need any help to test I would like to do
In reply to Forge_User_53435620:
Hey, I answered your PM.
Hello! This is a great plugin, and just changed versions of my server to see if it is worth it, and boy it is! I have one question, is this plugin being worked on or not? Thanks :)
In reply to reyoscuro9999:
Hey reyoscuro,
Thank you very much!
I don't really work on this plugin anymore (mainly because it is hard to test and do troubleshooting when I'm only one player).
However, if you have any errors with this plugin or if there are problems using it with the latest Bukkit version, please let me know :)
In reply to HeavyRain900:
Cool to know you are still active in the forum! I understand it is hard to test out the mod being only 1 person (in the other hand it is also hard to find out bugs when I am only 1 person building my server), but would it be difficult to update the mod to 1.15? This is because I have done quite a lot of work to make it and is already quite steady. I would love so much for the plugin to be able to work in that version, so that people who will play in my server or people add the plugin in their own server may find bugs and help you out in this mods development. I do believe it has potential to become an even greater plugin (it is at Hypixel level, not joking). I also understand that updating it to 1.15 may be really tough and something you would have to put time on, and it may be something you are not willing to do. Anyways, thanks for this amazing plugin and making it a thing!!!
In reply to reyoscuro9999:
Hey,
I just updated my plugin to 1.15
Please feel free to PM me if you have any issues with this version :)
Help me
[12:26:54 INFO]: Scanner007 issued server command: /tos confirm
[12:26:54 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'tos' in plugin TownOfSalem valpha_1.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.jar:git-Spigot-550ebac-7019900]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.jar:git-Spigot-550ebac-7019900]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_201]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_201]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8.jar:git-Spigot-550ebac-7019900]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
Caused by: java.lang.NoSuchFieldError: GRASS_BLOCK
at me.heavyrain900.townofsalem.Map.generateLevel(Map.java:216) ~[?:?]
at me.heavyrain900.townofsalem.Map.generateMap(Map.java:39) ~[?:?]
at me.heavyrain900.townofsalem.Commands.onCommand(Commands.java:66) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.jar:git-Spigot-550ebac-7019900]
... 14 more
This is a great plugin!! I’m currently building a server based around it and have consistently gotten 10 players. I added my own skin system (Using a forceskun plug-in) and I hope you add a coin system so I can link the game to buying skins instead of USD. Anyways, great plugin!
In reply to bananasplitxz:
Thank you! :)
I'm going to take a look at it, but I don't know if that feature is maybe too complex for the beginning.
However, please let me know if you find any bugs I should fix or if you can think of any other features that might be cool for the plugin to have.
Although I didn't work much at my plugin during the last months, knowing that people actually use it motivates me to continue with it. :)
Hey,
I really love TOS and have been trying to find a plugin like this one. I really like it and this so far it works really well and hope you keep updating it. I just have a few suggestions:
Make messages configurable ("/t role", chat, joining and leaving messages).
Allow players to use "/tos" and receive a list of available commands, instead of having to look in the readme.
This may be pushing it but you could add coins you earn after games to buy cosmetics, death animations, perks or scrolls?
Everytime I type a message when I've started a game it shows up twice in chat, I'm not sure why.
Add an option to join games with signs and maybe add leaderboard signs?
Add a scoreboard with the info from "/t role" (like the real game)
Add a role list and graveyard list with a command maybe "/t dead" and "/t roles"
Keep going with this plugin! Thank you for making it!
In reply to dlndcrdso:
In reply to DasIstGut:
This is a good plugin, you asked, if you have suggestions, to ask
I would suggest adding support for disguises, with something such as LibDisguise or any other disguise plugins. So like in town of salem, your identity will be hidden. Even if they don't get to choose their name.
For roles, A Executioner Arsonist and Witch
In reply to tWizT3d_dreaMr:
In reply to DasIstGut: