Filled Hanging/Gallows Plugin

Discussion in 'Plugin Requests' started by BananaBiscuits, Oct 4, 2021.

Thread Status:
Not open for further replies.
  1. Offline


    Plugin category: Misc

    Minecraft version: 1.17.1

    Suggested name: WesternGallows

    What I want: I'd like a plugin that adds gallows to my server. Players when they commit crimes in my server that are severe enough can be executed via hanging. What I'd like you can either create a structure or spawn in a structure that can be used as a gallow. Then you can use the command /hang [player] teleport them to the structure. When a player is teleported to a structure they are frozen and cant move. Once you teleport a player to the structure you pull a lever on the structure to hang them. When they are being hanged they are suspended by a lead and they slowly take damage until they die.
    I don't know what the easiest way to do this would be, an idea I had is maybe a player could define an area (maybe using worldguard?) and then inside that area you define a point the criminal is teleported to, a point where the lead is connected to from the player, and then define a lever that is used to execute them.
    I don't know if that is easy or even possible, I'm not a coder, but if there is any easy way to create this plugin I would greatly appreciate it.

    Ideas for commands:
    /hang [player]
    (if the plugin is made the way I thought up then these are ideas for commands below)
    /gallow create [region name] [gallowname]
    /gallow createpoint [gallowname] - creates the point the criminal is teleported to
    /gallow createlead [gallowname] - creates the point for the lead
    /gallow createlever [gallowname] - creates the lever

    Ideas for permissions:
    wg.admin - gives permission to all commands
    wg.executioner - gives permission to use the /hang command

    When I'd like it by: as soon as possible
  2. Offline


    This looks interesting ^^

    It is the rough first version. I'll go through the code again tomorrow and maybe refactor or fix some stuff.

    The lead and lever are set with the commands /gallow setlead <gallow> and /gallow setlever <gallow>.
    You have to look at a fence for the lead and a lever for the lever.
    The point is set with /gallow setpoint <gallow>

    hanging is done with /hang <player> <gallow>

    There's also the permission wg.ignorehang for players that can't be hung.

    The rest should be as you described.

    Tell me if you need any extra stuff or have any more ideas for this plugin ^^
  3. Offline


    Is the plan to have ONE gallow in the entire server?
  4. Offline


    EDIT: the replies weren't here when i bumped it weird.
    awesome, ill check it out thanks
    I was thinking the server would have more than one

    Wow it works fantastic thanks!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Oct 6, 2021
  5. Offline


    Good to hear.
    I did this very late in the night, so there could be some stupid mistakes (they always happen and are ever present).
    If you find any errors or so maybe post them here, send me a message or the actual way as it is on GitHub: make an Issue on the GitHub repo ^^

    The same applies to any improvements or wishes.
Thread Status:
Not open for further replies.

Share This Page