GabiJunkes / MultipleBedSpawn

A simple Minecraft plugin to allow players to choose which bed to respawn into.
GNU General Public License v3.0
9 stars 3 forks source link

MultipleBedSpawn

A simple Minecraft plugin to allow players to choose which bed to respawn into.

Spigot page

Hangar page

How it works

When a player dies, if they have at least one bed, a respawn menu appears so they can choose where to respawn. With which bed displaying the location and cooldown timer if enabled.

A player can set a bed by right clicking it.

And rename it with the command /renamebed 'the name they want' while looking at the bed.

image

Configuration

The plugin has a lot of options

lang - Chooses the language of the plugin, at the moment we have 5, English (enUS), Portuguese (ptBR), German (deDE), Russian (ruRU) and Swedish(svSE), but you can view all the supported languages at the folder src/main/resources/language inside this repo.

max-beds - The maximum number of beds a player can have.

disable-sleeping - If players can sleep or not (if set to true, player will not be able to lie in bed).

bed-cooldown - The amount of time, in seconds, players have to wait before respawning in the same bed.

You can select which worlds the plugin will run. Choosing between allowlist or denylist (you can use both, but it does not make sense). Leave empty to work in every world.

denylist - List of world where the plugin will not work.

allowlist - List of world where the plugin will not work.

link-worlds - If true, players can choose beds from all worlds.
If false, players can only choose beds from the current world.

remove-beds-gui - If true, enables the command /removebed that opens a gui so the player can remove registered beds.

If false, the command does nothing and player can only remove registered beds breaking them.

disable-bed-world-desc - If true, the bed item inside the respawn menu and remove menu will not show the bed's world.

disable-bed-coords-desc - If true, the bed item inside the respawn menu and remove menu will not show the bed's coordinates.

spawn-on-sky - If true, players will spawn flying in the sky.

exclusive-bed - If true, beds will allow only one registered player.

bed-sharing - If true, players will be able to do /sharebed <player> and give the bed that they are looking to another player.

command-on-spawn - Command to run when player clicks the SPAWN block, leave empty to disable.

run-command-as-player - If true, command is run as the user that clicked it, else as console.

Permission

multiplebedspawn.skipcooldown - Allow players to skip bed cool-down.

multiplebedspawn.maxcount.{num} - Allow players to have custom maximum bed amount. Change '{num}' with the number you want to be the max number of beds a player with this permission can have (ignores config.yml setting).

Help needed

Translation: To help with translating this plugin you will have to:

Reminder: This is a side project of mine, but feel free to suggest features and if I like it, I might implement it (or maybe you can!). Also you can report a bug in the issues section.

Why?

I created this plugin because I did not find anything similar, so I learned how to create a Minecraft plugin and made it. I got inspiration in the respawn system of the game Rust from Facepunch. I made it open source, so people can help translate it, report bugs and improve it. I hope it helps you and that you have fun with it. :)