master 287f62df0903 cached
90 files
388.5 KB
98.7k tokens
310 symbols
1 requests
Download .txt
Showing preview only (419K chars total). Download the full file or copy to clipboard to get everything.
Repository: Plugily-Projects/MurderMystery
Branch: master
Commit: 287f62df0903
Files: 90
Total size: 388.5 KB

Directory structure:
gitextract_4vxfrib5/

├── .checkstyle/
│   └── checkstyle.xml
├── .editorconfig
├── .github/
│   ├── CHANGELOG.md
│   ├── CONTRIBUTORS.md
│   ├── FUNDING.yml
│   ├── LICENSE.md
│   ├── README.md
│   ├── building/
│   │   ├── build.gradle.kts
│   │   ├── gradlew
│   │   ├── gradlew.bat
│   │   ├── pom.xml
│   │   └── settings.gradle.kts
│   └── workflows/
│       ├── deploy-development.yml
│       └── deploy-master.yml
├── .gitignore
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── lib/
│   ├── CorpseReborn.jar
│   └── README.md
├── pom.xml
├── pom.xml.versionsBackup
└── src/
    └── main/
        ├── java/
        │   └── plugily/
        │       └── projects/
        │           └── murdermystery/
        │               ├── HookManager.java
        │               ├── Main.java
        │               ├── api/
        │               │   ├── events/
        │               │   │   ├── game/
        │               │   │   │   ├── MurderGameCorpseSpawnEvent.java
        │               │   │   │   └── package-info.java
        │               │   │   └── player/
        │               │   │       └── package-info.java
        │               │   └── package-info.java
        │               ├── arena/
        │               │   ├── Arena.java
        │               │   ├── ArenaEvents.java
        │               │   ├── ArenaManager.java
        │               │   ├── ArenaRegistry.java
        │               │   ├── ArenaUtils.java
        │               │   ├── corpse/
        │               │   │   ├── Corpse.java
        │               │   │   └── Stand.java
        │               │   ├── managers/
        │               │   │   ├── MapRestorerManager.java
        │               │   │   └── ScoreboardManager.java
        │               │   ├── role/
        │               │   │   └── Role.java
        │               │   ├── special/
        │               │   │   ├── SpecialBlock.java
        │               │   │   ├── SpecialBlockEvents.java
        │               │   │   ├── mysterypotion/
        │               │   │   │   ├── MysteryPotion.java
        │               │   │   │   └── MysteryPotionRegistry.java
        │               │   │   └── pray/
        │               │   │       ├── Prayer.java
        │               │   │       └── PrayerRegistry.java
        │               │   └── states/
        │               │       ├── InGameState.java
        │               │       ├── RestartingState.java
        │               │       ├── StartingState.java
        │               │       └── WaitingState.java
        │               ├── boot/
        │               │   ├── AdditionalValueInitializer.java
        │               │   ├── MessageInitializer.java
        │               │   └── PlaceholderInitializer.java
        │               ├── commands/
        │               │   └── arguments/
        │               │       ├── ArgumentsRegistry.java
        │               │       ├── admin/
        │               │       │   ├── RolePassArgument.java
        │               │       │   └── arena/
        │               │       │       └── SpecialBlockRemoverArgument.java
        │               │       └── game/
        │               │           └── RoleSelectorArgument.java
        │               ├── events/
        │               │   └── PluginEvents.java
        │               ├── handlers/
        │               │   ├── CorpseHandler.java
        │               │   ├── lastwords/
        │               │   │   ├── LastWord.java
        │               │   │   └── LastWordsManager.java
        │               │   ├── setup/
        │               │   │   ├── LocationCategory.java
        │               │   │   ├── SetupCategoryManager.java
        │               │   │   ├── SpecificCategory.java
        │               │   │   └── SwitchCategory.java
        │               │   ├── skins/
        │               │   │   └── sword/
        │               │   │       ├── SwordSkin.java
        │               │   │       └── SwordSkinManager.java
        │               │   └── trails/
        │               │       ├── BowTrailsHandler.java
        │               │       ├── Trail.java
        │               │       └── TrailsManager.java
        │               └── utils/
        │                   └── ItemPosition.java
        └── resources/
            ├── arena_selector.yml
            ├── arenas.yml
            ├── bungee.yml
            ├── config.yml
            ├── internal/
            │   ├── data.yml
            │   └── leaderboards_data.yml
            ├── language.yml
            ├── lastwords.yml
            ├── leaderboards.yml
            ├── locales/
            │   └── language_default.yml
            ├── mysql.yml
            ├── permissions.yml
            ├── plugin.yml
            ├── powerups.yml
            ├── rewards.yml
            ├── signs.yml
            ├── skins.yml
            ├── special_blocks.yml
            ├── special_items.yml
            ├── spectator.yml
            ├── stats.yml
            └── trails.yml

================================================
FILE CONTENTS
================================================

================================================
FILE: .checkstyle/checkstyle.xml
================================================
<?xml version="1.0"?>

<!--
  ~ MurderMystery - Find the murderer, kill him and survive!
  ~ Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<!--
  ~ Murder Mystery is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation; either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Murder Mystery is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Murder Mystery.  If not, see <http://www.gnu.org/licenses/>.
  -->

<!--
  ~ Murder Mystery is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation; either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Murder Mystery is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Murder Mystery.  If not, see <http://www.gnu.org/licenses/>.
  -->

<!DOCTYPE module PUBLIC
        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
        "https://checkstyle.org/dtds/configuration_1_3.dtd">

<!--
    Checkstyle configuration that checks the Google coding conventions from Google Java Style
    that can be found at https://google.github.io/styleguide/javaguide.html.

    Checkstyle is very configurable. Be sure to read the documentation at
    http://checkstyle.sf.net (or in your downloaded distribution).

    To completely disable a check, just comment it out or delete it from the file.

    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
 -->

<module name="Checker">
    <property name="charset" value="UTF-8"/>

    <property name="severity" value="warning"/>

    <property name="fileExtensions" value="java, properties, xml"/>
    <!-- Checks for whitespace                               -->
    <!-- See http://checkstyle.sf.net/config_whitespace.html -->
    <module name="FileTabCharacter">
        <property name="eachLine" value="true"/>
    </module>

    <module name="TreeWalker">
        <module name="OuterTypeFilename"/>
        <module name="IllegalTokenText">
            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
            <property name="format"
                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
            <property name="message"
                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
        </module>
        <module name="AvoidEscapedUnicodeCharacters">
            <property name="allowEscapesForControlCharacters" value="true"/>
            <property name="allowByTailComment" value="true"/>
            <property name="allowNonPrintableEscapes" value="true"/>
        </module>
        <module name="LineLength">
            <property name="max" value="250"/>
            <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
        </module>
        <module name="AvoidStarImport"/>
        <module name="OneTopLevelClass"/>
        <module name="NoLineWrap"/>
        <module name="EmptyBlock">
            <property name="option" value="TEXT"/>
            <property name="tokens"
                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
        </module>
        <module name="NeedBraces"/>
        <module name="LeftCurly"/>
        <module name="RightCurly">
            <property name="id" value="RightCurlySame"/>
            <property name="tokens"
                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
                    LITERAL_DO"/>
        </module>
        <module name="RightCurly">
            <property name="id" value="RightCurlyAlone"/>
            <property name="option" value="alone"/>
            <property name="tokens"
                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
                    INSTANCE_INIT"/>
        </module>
        <module name="WhitespaceAround">
            <property name="allowEmptyConstructors" value="true"/>
            <property name="allowEmptyMethods" value="true"/>
            <property name="allowEmptyTypes" value="true"/>
            <property name="allowEmptyLoops" value="true"/>
            <message key="ws.notFollowed"
                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
            <message key="ws.notPreceded"
                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
        </module>
        <module name="OneStatementPerLine"/>
        <module name="MultipleVariableDeclarations"/>
        <module name="ArrayTypeStyle"/>
        <module name="MissingSwitchDefault"/>
        <module name="FallThrough"/>
        <module name="UpperEll"/>
        <module name="ModifierOrder"/>
        <module name="EmptyLineSeparator">
            <property name="allowNoEmptyLineBetweenFields" value="true"/>
        </module>
        <module name="SeparatorWrap">
            <property name="id" value="SeparatorWrapDot"/>
            <property name="tokens" value="DOT"/>
            <property name="option" value="nl"/>
        </module>
        <module name="SeparatorWrap">
            <property name="id" value="SeparatorWrapComma"/>
            <property name="tokens" value="COMMA"/>
            <property name="option" value="EOL"/>
        </module>
        <module name="SeparatorWrap">
            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/258 -->
            <property name="id" value="SeparatorWrapEllipsis"/>
            <property name="tokens" value="ELLIPSIS"/>
            <property name="option" value="EOL"/>
        </module>
        <module name="SeparatorWrap">
            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/259 -->
            <property name="id" value="SeparatorWrapArrayDeclarator"/>
            <property name="tokens" value="ARRAY_DECLARATOR"/>
            <property name="option" value="EOL"/>
        </module>
        <module name="SeparatorWrap">
            <property name="id" value="SeparatorWrapMethodRef"/>
            <property name="tokens" value="METHOD_REF"/>
            <property name="option" value="nl"/>
        </module>
        <module name="TypeName">
            <message key="name.invalidPattern"
                     value="Type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="MemberName">
            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
            <message key="name.invalidPattern"
                     value="Member name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="ParameterName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="LambdaParameterName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="CatchParameterName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="LocalVariableName">
            <property name="tokens" value="VARIABLE_DEF"/>
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="ClassTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="MethodTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="InterfaceTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="NoFinalizer"/>
        <module name="GenericWhitespace">
            <message key="ws.followed"
                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
            <message key="ws.preceded"
                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
            <message key="ws.illegalFollow"
                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
            <message key="ws.notPreceded"
                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
        </module>
        <module name="Indentation">
            <property name="basicOffset" value="2"/>
            <property name="braceAdjustment" value="0"/>
            <property name="caseIndent" value="2"/>
            <property name="throwsIndent" value="4"/>
            <property name="lineWrappingIndentation" value="4"/>
            <property name="arrayInitIndent" value="2"/>
        </module>
        <module name="AbbreviationAsWordInName">
            <property name="ignoreFinal" value="false"/>
            <property name="allowedAbbreviationLength" value="1"/>
        </module>
        <module name="OverloadMethodsDeclarationOrder"/>
        <module name="VariableDeclarationUsageDistance"/>
        <module name="CustomImportOrder">
            <property name="sortImportsInGroupAlphabetically" value="true"/>
            <property name="separateLineBetweenGroups" value="true"/>
            <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
        </module>
        <module name="MethodParamPad"/>
        <module name="NoWhitespaceBefore">
            <property name="tokens"
                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/>
            <property name="allowLineBreaks" value="true"/>
        </module>
        <module name="ParenPad"/>
        <module name="OperatorWrap">
            <property name="option" value="NL"/>
            <property name="tokens"
                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
        </module>
        <module name="AnnotationLocation">
            <property name="id" value="AnnotationLocationMostCases"/>
            <property name="tokens"
                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
        </module>
        <module name="AnnotationLocation">
            <property name="id" value="AnnotationLocationVariables"/>
            <property name="tokens" value="VARIABLE_DEF"/>
            <property name="allowSamelineMultipleAnnotations" value="true"/>
        </module>
        <module name="NonEmptyAtclauseDescription"/>
        <module name="AtclauseOrder">
            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
            <property name="target"
                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
        </module>
        <module name="MethodName">
            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
            <message key="name.invalidPattern"
                     value="Method name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="SingleLineJavadoc">
            <property name="ignoreInlineTags" value="false"/>
        </module>
        <module name="EmptyCatchBlock">
            <property name="exceptionVariableName" value="expected"/>
        </module>
        <module name="CommentsIndentation"/>
    </module>
</module>

================================================
FILE: .editorconfig
================================================
root = true

[*.java]
indent_size = 2
charset = utf-8

================================================
FILE: .github/CHANGELOG.md
================================================
### 2.1.6 Release (17.01.2026)
* Updated minigamesbox to 1.4.5

### 2.1.5 Release (13.07.2025)
* Updated minigamesbox to 1.4.3

### 2.1.4 Release (09.06.2025)
* Fixed ICCE: Found class org.bukkit.inventory.InventoryView
* Fixed PlugilyEntityPickupItemEvent IAE greater 0 on paper 1.21 +
* Updated to minigamesbox 1.4.2

### 2.1.3 Release (03.05.2025)
* Added config option to not spawn more than 1 gold per spawner "GOLD_MULTIPLE"
* Fixed respawn location of spectators
* Changed bow dropped message now gets only to players without the role murderer
* Fixed on Murderer Leave the new murderer message was send to all players instead of new murderer
* Fixed default rewards.yml
* Fixed onMurdererDeath the subtitle did not translate placeholders
* Fixed spectator mode - since core usage its not needed to substract by one the playersleft value
* Updated to minigamesbox 1.4.1

### 2.1.2 Release (13.03.2025)
* Updated to minigamesbox 1.4.0

### 2.1.1 Release (18.02.2025)
* Fixed PotionEffects on different server versions
* Fixed Spectators sometimes counted as players
* Updated to minigamesbox 1.3.16

### 2.1.0 Release (13.07.2024)
* Changed onDisable process to make sure all data gets saved even on mysql
* Fixed Detective bow glitches away on startup
* Fixed gold removing and therefore not working mystery cauldrons and prayers on newer mc versions
* Fixed prayer grants new gold after usage

### 2.0.10 Release (09.07.2024)
* Updated to minigamesbox 1.3.11
* Fixed arena after playing does not reset the arena options from config

### 2.0.9 Release (25.06.2024)
* Updated to minigamesbox 1.3.10

### 2.0.8 Release (18.06.2024)
* Updated to minigamesbox 1.3.9
* Updated API

### 2.0.7 Release (24.04.2024)
* Fixed bug where the murderer gets teleported to the lobby to fast when arena ends
* Updated to minigamesbox 1.3.8

### 2.0.6 Release (15.01.2024)
* Fixed Hungerlose option in config.yml
* Changed Round chances are now full numbers (no ,xx)
* Updated to minigamesbox 1.3.7

### 2.0.5 Release (13.01.2024)
* Updated to minigamesbox 1.3.6

### 2.0.4 Release (03.01.2024)
* Added new command /mma locale <locale> to set your locale
* Fixed GameProfile API 1.20 change
* Fixed none kits related plugins issues

### 2.0.3 Release (31.12.2023)
* Added 1.20.3 & 1.20.4 support
* Updated to minigamesbox 1.3.4

### 2.0.2 Release (29.11.2023)
* Fixed cauldronclick adds gold instead of removing gold
* Fixed IAE on particles 
* Removed debug messages
* Updated to minigamesbox 1.3.3

### 2.0.1 Release (21.08.2023)
* Updated to minigamesbox 1.3.2-SNAPSHOT to fix urgent bugs

### 2.0.0 Release (08.08.2023)
* Added up to 1.20 compatibility
* Added sword skins.yml
* Added trails.yml
* Changed supported languages [https://translate.plugily.xyz]
* Changed plugin base is based on MinigamesCore [https://github.com/Plugily-Projects/MiniGamesBox]
* Changed native java building to java17, java 8 downloadable on our discord [https://discord.plugily.xyz]
* Fixed all known bugs

### 1.8.0 Release (05.08.2021 - 2022)
* Improved leaderboard command
* Added murderer and detective chance placeholders to scoreboard
* Now weather changing will be cancelled when a game is running
* Now users can use placeholderapi placeholders in bossbar, titles, without player specified
* Added option to determine if the deletion of arena needs confirmation or not

### 1.7.9 Release (30.05.2021 - 01.08.2021)
* Added forcestart item
* Added murderer and detective pass (Command and Item to activate)
* Added new stat (new tables on mysql needs to be manually added murderer_pass, detective_pass *or* recreated)  
* Added special_items.yml
* Added 1.17 support
* Reuse XMaterial for specialitems
* Fix NoSuchMethodError when hasCooldown method is not existed in 1.11 and lowest versions
* Removed lobbyitems.yml
* Removed Rainbow Bed option
>>> beta1 
* Fixed party (parties v3.1.0) not working anymore
* Fixed when plugins scoreboards not re-appeared after game end
* Fixed join maxplayers did not match the arena with highest player amount
* Removed temp added scoreboard rewards

### 1.7.8 Release (15.04.2021 - 10.05.2021)
* Added /mm join maxplayers which tries to get the arena with the highest amount of players
* Added placeholder arena_players_online
* Added new RewardType scoreboard_add
* Changed Now the arena will be set to isDone false if the world is not exist, after the plugin loaded.
* Changed randomjoin mechanics -> Searches for starting -> random join -> Searches for waiting -> random join
* Fixed arrow trails are only on player

### 1.7.7 Release (31.03.2021 - 13.04.2021)
* Fixed NoSuchElementException when iterating through players in gold locations but there is no player available.
* Fixed issue when there was no murderer in game and it caused to not choose another one.
* Fix when arena selector GUI does not opened
* Fixed NPE on ArrowEvents and other version improvements

### 1.7.6 Release (19.03.2021)
* Fixed Last words & trails for non op players
* Fixed particle issues
* Fixed invisible bug for spectators that joined while ingame
* Fixed trail particle are random even on bow shoot  
* Changed config.yml Item values of states and added all states
* Added trails blacklist

### 1.7.5 Release (01.02.2021 - 14.03.2021)
* Added modifiable arena state names to language
* Added configurable map selector items
* Added legacy support
* Added support for multiple last words that will randomize
* Added a lot of new Trails (Should support every particle name that is supported since 1.8)
* Added TeleportArgument (/mma tp)
* Added new RewardType scoreboard_remove
* Changed trails will now randomize if you got perms for more than one  
* Cached armor stands will be removed after block break if type is matches
* Now special block holograms will get removed after game stop, after game start, it will show again
* Fixed CME error when removing special blocks

### 1.7.4 Release (25.01.2021 - 28.01.2021)
* Fix stack trace array length is 0 when trying to send exception to service
* Updated commonsbox to fix actionbar problems
* Fixed spectators can not see each other after joining game while being ingame

### 1.7.3 Release (18.01.2021 - 22.01.2021)
* Fixed mm items are not removed if inventory manager is enabled and the server is stopping
* Fixed 2nd last char of name gets removed if only one murderer

### 1.7.2 Release (10.01.2021 - 18.01.2021)
* Fix NPE for armor stand hologram location is null
* Fixed issue when sign instances section not found in file
* Fixed arena join permission
* Added 1.11+ compatibility
* Added murderer and detective shuffler to avoid the same characters when you are only playing with the same people
* Added option to disable death message completely 

### 1.7.1 Release (04.01.2021)
* Changed summary message for one murderer round
* Changed Innocents will be killed if they kill the detective (if ENABLE_KILL_DETECTIVE_IF_INNOCENT_KILLED enabled)
* Added customizable item name in arena selector gui

### 1.7.0 Release (29.12.2020)
* Rewritten scoreboardlib (fixed flickering and color matching) -> 122 chars for 1.14 up and 48 for lower versions
* Fixed issue that murderer is not removed from alive list if there are only 2 players left
* Fixed player teleport on void death while in lobby stage
>>> b2
* Attempt to fix scoreboard problems
>>> b1
* Fix NoSuchMethodError when CommandSender#spigot does not exists on 1.11
* Updated ScoreboardLib to fix problems with color matching
* Now spectators will not launch fireworks once game stopped

### 1.6.9 Release (28.11.2020)
* Fixed joining through a sign while hotbar slot for leave-item is active
* Fixed gold visuals broke the whole plugin while enabled

### 1.6.8 Release (10.11.2020)
* Fixed particle effects not working on 1.13+

### 1.6.7 Release (02.11.2020 - 08.11.2020)
* Added particle effect to gold spawn locations to show where gold will spawn
* Added death/spectator roles therefore users will not get rewards if they are spectator
* Added rainbow beds

### 1.6.6 Stable (31.10.2020)
* Fixed armorstands are not correctly displayed
* Fixed dead body heads 
* Fixed locales not working
* Fixed heads
* Fixed sign loading
* Fixed sign after arena validation
* Fixed new arena is not proper registered 
* Fixed scoreboard friendly fire caused players visible 
* Fixed arrows can damage entities outside the game
* Changed disabled arrow bouncing

### 1.6.5 (07.10.2020 - 29.10.2020)
* Added special blocks remove command /mma removeblock
* Fixed hologram spawn item height (bow) 
* Fixed the bow item got not removed on some cases
* Another fix for cauldron click event
* Fixed locations of special blocks on setup menu
* Optimized special block click performance
* Fixed stacked armorstands
* Fixed players will die under water

### 1.6.4 Hotfix (05.10.2020)
* Fixed cauldron click event
* Fixed detectives will get bow from prayer

### 1.6.3 Release (19.09.2020 - 02.10.2020)
* Updated locales to latest version
* Added the possibility to disable the innocent locator
* Added the possibility to change messages of locales on language.yml 
* Fixed adding cauldrons to the arena
* Removed HolographicDisplays dependency

### 1.6.2 Release (15.08.2020 - 13.09.2020)
* (Developer Alert - Changed class names)
* Added support for 1.16 hex colors
* Added ArenaSelector
* Added config option to play sound when adding score to user
* Added new reward type gold_pickup
* Fixed NPE when trying to teleport players to lobby location
* Fixed no permission message not found
* Fixed goldrush & goldban prayer did not reset on game end
* Fixed MYSQL stats can't update
* Fixed special blocks registering click twice
* Fixed IllegalPluginAccessException on plugin disable
* Fixed wrong order in trails
* Fixed local values got no reset
* Changed Death prefix can now be changed
* Changed message delay of "Waiting for players" from 15 to 45 seconds 
* Optimized player corpse heads on paper
* Reworked version checker

### 1.6.1 Release (01.07.2020 - 27.07.2020)
* Added missing 1.14 & 1.15 & 1.16 Materials
* Added simple head corpse when no CorpseReborn is installed
* Added new reward event -> death
* Changed Reduce message will now only come on debug mode
* Changed mysql updates to do only one instead of more than 10 (should improve performance)
* Fixed spectators that wasn't ingame got rewards
* Fixed reset of contributions not applied when leaving ingame
* Fixed in rare cases is the speed not the default one after changing it with spectator menu
* Fixed sword is flying further after player hit
* Fixed separate chat (and prefix for death players)

### 1.6.0 Release
* Fixed spectators preventing arrows
* Fixed editor value "spawn gold time"
* Added bungeemode Arena shuffler
* Added option to disable separate chat
* Added 1.16.x compatibility 
* Added possibility to change table name of mysql database
* Removed stats save on quitevent as it wasn't necessary
* Fixed different sword cooldown time than 5 seconds
* Fixed bungeemanager enable null text error
* Optimized murderer leave before they got the sword
* Optimized the death respawn location 
* Fixed prayer multi gold

### 1.5.5 Hotfix
* Fixed language list getting

### 1.5.4 Release
* Added new config values to change arrow amount of fake detective and bow on gold
* Fixed properties getting on language list
* Disabled creating of reducedDependencyPom

### 1.5.3 Release
* Added a config value to disable detective killing on innocent kill
* Added a config value to change the spawner mode
* Added a way to disable gold spawn limit
* Added a config value to change the get bow from gold value (default: 10)
* Added Murderer speed can be disabled
* Added Murderer speed multiplier can be changed
* Added Now you can change the hit range and max range of the flying sword
* Fixed an 1.15.x reporter service plugin crash
* Fixed murderer can kill other murderer with bow
* Fixed amount of arrows on gold pickup
* Changed default language value as there does not exist /mm admin
* Updated setup tips Feedback page link
* Optimized sword fly 
* Fixed Stats will now get saved on restart stage
* Fixed stats were not loaded on bungee mode
* Fixed chances are not displayed on new players for the first round (occurred for all who using mysql database)

### 1.5.2 Release 
* Fixed Commands.Main-Command.Heads not found 

### 1.5.1 Release (20.03.2020) 
* Fixed broken language
* Added PlaceholderAPI for some per player messages
* Fixed Parties Integration 
* Attempt to fix player respawn

### 1.5.0 Release (20.12.2019 - 17.03.2020) (by Tigerpanzer)
* Fixed spectator gui opened on physical actions
* Added option to control the time between gold spawns
* Added better option to allow only 1 murderer/detectives
* Fixed division by null error
* Fixed murderer can kill other murderer
* Fixed bungeecord shutdown when game ends (Thanks to barpec12)
* Added option to hide chances
* Changed the setup radius of enchanting table and cauldron to 15
* PlaceholderAPI placeholders are no longer case sensitive
* Added arena state placeholders for PlaceholderAPI:
   * %murdermystery_{arena id}:{data}% where data types are:
      * players - amount of players in arena
      * max_players - max players in arena
      * state - current state raw enum name eg. STARTING
      * state_pretty - prettified name of enum eg. Waiting (instead WAITING_FOR_PLAYERS)
      * mapname - name of arena map
* Fixed mysql database - Create a new one and your stats should be saved correctly (Thanks to add5tar)
* Fixed loading arena values (Some values had a wrong file location)
* Added party dependency, you can join with more players to one arena
* Fixed murder gets sword as spectator
* Changed murder speed boost from potion to walkspeed to hide particles
* Added Connect-To-Hub boolean to bungee.yml
* Added End-Location-Hub boolean to bungee.yml

### 1.4.1 Release (05.12.2019 - 13.12.2019) (by Tigerpanzer)
* Added a new MOTD Manager in the bungee.yml (Now you can define the states on yourself) 
* Now the values in bungee.yml will work
* Arena will not be stopped anymore on starting phase
  when there are null players (only resetting it to waiting for players)
* You can now activate short commands (/start and /leave)
* Fixed incompatibility with chatcontrol
* Minecraft 1.15 compatible
* Fixed the murderer draw when murderer leaves ingame
* Fixed SummaryMessage (murderer will now be strike out)

### 1.4.0 Release (26.10.2019 - 16.11.2019) (by Tigerpanzer)
* Fixed incompatibility with essentials respawn
* You can now choose your own cooldown for sword attack/fly and bow shoot
* Clearer way of error reporting
* Added option to change murderer sword item
* Added options to specify arrows amount
* Added a way to configure how many murderers & detectives are selected for a game (definable per arena)
* Changed the way of drop bow (The bow will be dropped if the last detective die)
* Fixed scoreboard innocents count
* Added compass distance to bow and player locator
* Fixed the +- message for minus points in score messages
* Fixed the exp and level save on InventoryManager
* Fixed instant respawn bug on last murderer

### 1.3.1 Release (11/18.10.2019) (by Tigerpanzer)
* Fixed that you can sleep in beds
* Fixed player spawning after a death in blocks
* Fixed arena stop when it will be called due to reload, stop, delete
* Fixed the NoSuchMethodException on arena sign load when the sign isn´t a wallsign
* Dropped 1.11 support

### 1.3.0 Release (21.09.2019 - 03.10.2019) (by Tigerpanzer)
* Changed the way how randomjoin works (now it will search for the most players first)
* Fixed wrong location of corpse, hologram and bow spawn after player left the game
* Fixed when you took death prayer you could die in next game
* Fixed getting damage from fire after you join a game
* Fixed the hero name in the summary message was always none
* Inventories will now properly regenerate on plugin disable
* Changed that player will be a spectator when the starting time is under 3
* Added option to disable fall damage in the arena
* Fixed sound after player death that could be heard in lobby
* Fixed the ArrayIndexOutOfBoundsException when the murder left before the game starts (crashing game)
* Now players can´t interact with armorstands when they are in the arena
* Now players can´t destroy itemframes, paintings, and armorstands when they are in the arena
* Proofread and updated locales ~Plajer

### 1.2.1 Release (11/13.09.2019) (by Tigerpanzer)
* Added a lobby time shorter when the maximum player size is reached
* The sword will be now available at cooldown to hit someone as murder (after a 1 sec throw
cooldown because the sword is not available if you throw it)
* Fixed 1.14 ClassNotFoundException error when a paper server version is used
* Fix GUI opening on physical actions (Especially on redstone block) (thanks to BestMark)
* Fix null on getting corpse data from corpse reborn (thanks to BestMark)

### 1.2.0 Release (08/09.09.2019) (by Tigerpanzer)
* Added name tags hide feature in game
* Game will now properly end when murderer dies by environment
* Detective will now drop bow when dies by environment
* Fixed 1.14 NoClassFound error when user tries to pick up an arrow
* You shouldn't be teleported to spawn on death in game (you'll stay at the death location)
* Murderer will no longer throw the sword if you interact physically with redstone mechanisms
* Fixed issue that you could join full games before they started (in game you join as spectator)
now proper full game permission check will occur and do the thing to allow or disallow you to join
* /mm randomjoin will now really join random arena not first one it find good to join
* Updated bunch of locales
* Fixed Russian locale was broken
* Added Slovak and Turkish locales (thanks to POEditor contributors)
* Fixed bug that auto respawn didn't work

### 1.1.6 Release (13/29.07.2019)
* Changed Chinese (Simplified) locale prefix from zh to cn and Chinese (Traditional) from zh_hk to zh_tw
* Respawn will now properly work on 1.14
* Fixed /vda typo in force start command
* Prettified special blocks setup messages
* Dropped leaderheads support, leaderheads now uses PlaceholderAPI to retrieve statistics and we do support
PAPI so please use that

### 1.1.5 Release (12.07.2019)
* Fixed errors in console when joining game via sign

### 1.1.4 Release (15.06.2019 - 10.07.2019)
* Plugin will no longer send error messages `failed to register events` if corpse reborn wasn't installed
* Join permission message outputs required permission node now
* Added Portuguese (BR) locale (`pt_br` in config.yml)
* Locales with special characters like Russian or Korean will now work properly and won't be seen as `?` characters
* Added configurable murderer thrown sword speed
* Added 1.14 sign game states (thanks to montlikadani)

### 1.1.3 Release (01/08.06.2019)
* Fixed boss bar when disabled could throw errors breaking the game
* Fixed PlaceholderAPI placeholders didn't work on in-game scoreboard
* Fixed locales never worked if there was no locales folder
* Fixed new arena name message wasn't sent in setup editor

### 1.1.2 Release (21/25.05.2019)
* Fixed that you couldn't edit arena via /mm <arena> edit
* You will now receive additional message when adding gold/player spawns that 4 is minimum spawns amount so you can add more
* Totally recoded arena setup gui UI and code structure, now all changes applies to arena instantly
* Arena setup map name option now is chat based not name tag based
* Added shift + right click to delete all gold/player spawns (useful if you made a mistke, better than nothing)
* Added sign spawn protection radius warning, non opped players can't join via signs if sign is in radius of spawn protection
* Debug section is no longer visible part of config, it can be added manually but won't be there by default from now
* Reload command is no longer discouraged and reloads both config and language file
* Sword does fly bit faster now (from 0.5 to 0.65 fly speed)
* Murderer no longer always receive lose statistic even on win
* Fixed boss bar displays game end message instead of waiting for players after start up
* /mma help and /mm help will display help pages now
* Players shouldn't be able to interact with flower pots and paintings anymore

### 1.1.1 Release (28.04.2019 - 18.05.2019)
* Relocate Plajer's Lair Services and TigerHix's ScoreboardLib packages in order to avoid conflict between our minigames if used on same server
* Fixed saving user data on plugin disable while using MySQL
* /mma delete and reload require confirmation before execution now, theymust be typed twice to execute
* Added permissions for increased chance of being murderer or detective, node: `murdermystery.role.murderer.<1/100>` or
`murdermystery.role.detective.<1/100>` the number is the amount of bonus points to give on arena join
* Fixed update notify message was sent to everybody without proper permission check
* First time database creation is now made async not in main server thread
* Implemented faster Hikari connection pool library and removed BoneCP, jar size is now 3 times smaller too
* Apache commons-io is now shaded into jar, 1.14 removed it
* Recoded whole commands structure
* Scoreboard colors were broken sometimes, this is now fixed (I hope so)

### 1.1.0 Release (28.04.2019)
* Fixed wins/loses weren't properly assigned on game end, only murderer received these stats
* You can no longer join the game if it's in restarting state
* You can no longer swap items via hands (i.e. main hand > off hand) when being in game
* Added `win` and `lose` sections to rewards.yml when player wins or loses the game
* CorpseReborn is made now soft-dependency, it will enable corpses feature if present but won't otherwise

### 1.0.3 Release (20.04.2019)
* Fixed MySQL database didn't work due to create statement failure
* Now /mma reload command will force stop all current games before Arenas reload, still command usage is discouraged! (uservoice report)
* Leaderheads stats placeholders length has been decreased to fit in the sign (uservoice report)

### 1.0.2 Release (19.04.2019)
* Fixed Hero in game summary was always `Nobody`
* Fixed error when nobody was alive and game has ended then the exception would occur
* Now when typing /mma forcestart with only 1 player game won't start
* Added few pro tips when editing arena via /mm <arena> edit

### 1.0.1 Release (18.04.2019)
* CorpseReborn and HolographicDisplays are now set as soft dependencies in plugin.yml to allow plugin loader
to load them before MurderMystery starts and avoid plugin start failure

### 1.0.0 Release (28.10.2018-16.04.2019)
* Added Russian, Spanish and Dutch locales support
* Detective bow will now spawn bit higher to avoid touching the floor
* Spectators can no longer pickup the bow
* Added arenas.yml instances section check to avoid errors
* Added death cases caused by fall, game won't break anymore when murderer or detective dies from fall
* /murdermystery and /murdermysteryadmin commands will now work in game for non ops
* Sword can no longer go through walls/solid blocks
* Bow no longer loses durability on arrow shoot
* New users will now start with default value of contributions for each role 1 not 0 that would
throw errors in lobby stage
* Fixed action bar colors were broken
* Fixed game end announce didn't happen
* Fixed sword glitch after throwing it
* Users cannot longer pickup anything from the ground
* Spectators cannot use special blocks anymore
* CorpseReborn and HolographicDisplays are no longer hardcoded dependencies in plugin.yml so without them
plugin will start with fancy message to install them without throwing not user-friendly exception
* Fixed kills, loses and wins statistics weren't added anytime
* Misc code performance improvements
* Removed Locale suggester
> Release Candidate 2 (28.03.2019)
* Setup GUI will now display 0 minimum players option if accidentally set
* Bow Time prayer will now add new arrow to the inventory not set and override current amount
* Improvement for bow cooldown display action bar
* Fixed corpses were instantly removed on spawn, timer was set in ticks not seconds
* Fixed spectator items didn't work on death (spigot bug)
* Fixed corpse will no longer spawn on ending location when leaving game via /mm leave
if you were fake detective or a detective
* Fixed bow couldn't be picked up by innocents
* Fixed more than one corpse was spawned on death
* Fixed you couldn't receive bow when you had more than 10 gold taken
(you have 9 gold and pickup 2 then you cannot get bow cause you have 11 not 10)
* Fixed more corpses could spawn on death by arrow
* Fixed last words didn't display on death other than by arrow
* Fixed message Game-Started which was copied from Village Defense
> Release Candidate 1 (24/26.03.2019)
* Now clicking corpses in game won't open their inventories
* Improved sign manager
* Removed ' character from default join permission node
* Crucial block center calculations fix - now holograms will display properly
* Fixed prayer particle display and arena setup
* Fixed single compensation prayer from Confessional did give gold but it was
useless as user gold statistics weren't increased
* Now using special blocks if game has ended/not started (in lobby) is blocked
* Bow Time prayer (receive bow + arrows) is applied to everyone
* Bow Time prayer has been nerfed, only 1 arrow is given not whole stack now
* Now player health will be set to full when joining the game
* Bow drop announcement will no longer appear when only 1 player has left in the game
* When game ends users will get reset their non persistent user data (like gained gold amount)
> Pre 5 (24.03.2019)
* Abandoned the direct try-catch exception handling in most of methods and event listeners in favour of logger
listening, code looks better now
* Fixed setup inventory didn't work
* Using new Scoreboard library, whole game will perform now much better without lags
* Now language.yml file is cached on load so it will drastically reduce lag of plugin
> Pre 4 (11.01.2019-06.02.2019)
* Added useSSL=false argument in mysql.yml address to avoid mysql warnings in console (not harmful)
* Added %MAX_PLAYERS% placeholder in scoreboard
> Pre 3 (30.10.2018/26.12.2018)
* Now arena is stopped 10 seconds after the game ends not 5 seconds after
* Arena is now properly clean up after the game when using bungee mode
* Fixed arrows weren't given to innocents when they got 10 gold ingots
* Fixed /mma forcestart wasn't working properly if there were not enough players to start
* In case of server crash players' inventories will be loaded on join from backup from Murder Mystery minigame if exists
* When murderer picked up gold, it's amount didn't increase - now it's fixed
> Pre 2 (28.10.2018)
* Fixed wrong cast error when you were damaged by skeleton's arrow (https://plajer.xyz/errorservice/viewer.php?id=336)
* Fixed NPE when murderer was null - I must use player objects instead of these terrible UUID's
> Pre 1 (11/20.10.2018)
* Minimum amount of players cannot be now less than 2 (game will automatically set it to 2 if so)
* Block destroying item frames and paintings
* Added mystery cauldron and mystery potions (soon more)
* Added praise the developer block (end portal and levers)
* Fixed only one gold ingot could be picked up from few ones in a stack
* Fixed scores weren't added to account
* Added bow trails
* Native 1.13 support added
* Added PAPI placeholders in scoreboard
* Added murdermystery.command.override permission
* Added setup video link to the game

### 0.0.8 Beta (06/07.10.2018)
* Added throwable sword for murderer
* Added multiple last words
* Fixed gold not spawning
* Fixed starting scoreboard gamestate wasn't displayed
* Murderer sword won't be taken now when he receives additional arrows
* Now actions that gives you score (like +15 score for gold pickup will properly format without %action% placeholder)
* Added 1.13 and 1.13.1 support
* Removed 1.9 and 1.10 support
* Added spectator settings
* API recode
* JavaDocs created
* Fixed throwable sword angle
* You cannot join game now infinitely through command
* Added corpses override option in config
* Now players that will leave game will be visible by other players outside game
* Fixed some potions amplifiers were 1 level higher, amplifiers are counted from 0

### 0.0.7 Beta (03.10.2018)
* Added PAPI placeholders in chat (chat formatting must be enabled)
* General code improvements and changes
* Added %MAPNAME% placeholder in scoreboard
* Added checking for minimum players amount in lobby to start


================================================
FILE: .github/CONTRIBUTORS.md
================================================
## This file is dedicated to **Murder Mystery** project's all-time contributors.

## **very outdated, please nag me if you still see it here**

**I'm sincerely glad to everyone who supported our project every time!**

**Contributors are listed in alphabetical order, every contributor is equally important!**
* Adolfo Garolfo - Spanish translator
* Andrei - Romanian translator
* [Borc55](https://www.spigotmc.org/members/borc55.108890/) - Czech translator
* [ColaIan](https://www.spigotmc.org/members/colaian.608965/) - Chinese (Traditional) translator
* [Dianox](https://www.spigotmc.org/members/dianox.74931/) - French translator
* EnderBoyHUN - Hungarian translator
* HStreamGamer - Vietnamese translator
* [KitsuneSakul](https://www.spigotmc.org/members/kitsunesakul.61401/) - Czech translator
* [Melonzrix](https://www.spigotmc.org/members/melongun77.147284/) - German translator
* [montlikadani](https://www.spigotmc.org/members/toldi.251100/) - Hungarian translator
* [N4TH4NOT](https://www.spigotmc.org/members/n4th4not.400311/) - French translator
* SteveFox - Italian translator
* [Tigerkatze](https://www.spigotmc.org/members/tigerkatze.414545/) - Main tester, German translator and one of current maintainers of Murder Mystery project
* [zuhir](https://www.spigotmc.org/members/zuhir.31452/) - Spanish translator
* 壁灯 - Chinese (Simplified) translator

**Thanks to these companies for providing free licenses for MurderMystery open source work:**
* Code Whale Inc. - POEditor open source project license

**Also thanks to every bug reporters for reporting us those nasty bugs, and code contributors for making Murder Mystery better!**

`Please note that translators are put here only if their contribution to the language is higher than 15% of total strings and language is used in plugin`

![](https://i.imgur.com/LFakRC8.png)


================================================
FILE: .github/FUNDING.yml
================================================
patreon: plugily


================================================
FILE: .github/LICENSE.md
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: .github/README.md
================================================
![](https://images.plugily.xyz/banner/display.php?id=MurderMystery)

# Murder Mystery [![Maven Repository](https://maven.plugily.xyz/api/badge/latest/releases/plugily/projects/murdermystery?color=40c14a&name=Maven&prefix=v)](https://maven.plugily.xyz/#/releases/plugily/projects/murdermystery) [![JavaDoc Repository](https://maven.plugily.xyz/api/badge/latest/releases/plugily/projects/murdermystery?color=40c14a&name=JavaDoc&prefix=v)](https://maven.plugily.xyz/javadoc/releases/plugily/projects/murdermystery/latest) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=Plugily-Projects_MurderMystery&metric=sqale_rating)](https://sonarcloud.io/summary/overall?id=Plugily-Projects_MurderMystery) [![Discord](https://img.shields.io/discord/345628548716822530.svg?color=7289DA&style=for-the-badge&logo=discord)](https://discord.plugily.xyz) [![Patreon](    https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://patreon.com/plugily)

Murder Mystery is a Minecraft minigame designed for small and big servers. This minigame is unique and very
configurable, 100% free and open source!

Be the murderer and kill everyone in the game! Beware of the detective and armored innocents! As a detective you must
kill the murderer and protect as much innocents as you can!
As an innocent you must just survive till the end!

Have fun using it! Leave a good rating if you really like it.

## Want to contribute in this project?

[**💣 Issues Reporting (Discord)**](https://discordapp.com/invite/UXzUdTP)
[**❤ Make Donation**](https://www.paypal.me/plugilyprojects)

# Credits

## Open Source Libraries

| Library                                                          | Author                                                 | License                                                                            |
|------------------------------------------------------------------|--------------------------------------------------------|------------------------------------------------------------------------------------|
| [ScoreboardLib](https://github.com/TigerHix/ScoreboardLib/)      | [TigerHix](https://github.com/TigerHix)                | [LGPLv3](https://github.com/TigerHix/ScoreboardLib/blob/master/LICENSE)            |
| [HikariCP](https://github.com/brettwooldridge/HikariCP)          | [brettwooldridge](https://github.com/brettwooldridge)  | [Apache License 2.0](https://github.com/brettwooldridge/HikariCP/blob/dev/LICENSE) |
| [bStats](https://github.com/Bastian/bStats-Metrics)              | [Bastian](https://github.com/Bastian)                  | [LGPLv3](https://github.com/Bastian/bStats-Metrics/blob/master/LICENSE)            |
| [Commons Box](https://github.com/Plajer/Commons-Box)             | [Plajer](https://github.com/Plajer)                    | [GPLv3](https://github.com/Plajer/Commons-Box/blob/master/LICENSE.md)              |
| [MiniGamesBox](https://github.com/Plugily-Projects/MiniGamesBox) | [Plugily Projets](https://github.com/Plugily-Projects) | [GPLv3](https://github.com/Plugily-Projects/MiniGamesBox/blob/master/LICENSE.md)   |

## Open Source Licenses

#### Code Whale

<img src="https://poeditor.com/public/images/logo/logo_head_500_transparent.png" alt="jetbrains logo" width="150"/>

Thanks to Code Whale for Open Source license for POEditor project.

## Contributors

This section will be updated soon

<img align="right" src="https://i.imgur.com/BAHeLR2.png">



================================================
FILE: .github/building/build.gradle.kts
================================================
plugins {
    id("signing")
    `maven-publish`
    id ("com.gradleup.shadow") version "9.0.0-beta5"
    java
}

repositories {
    mavenLocal()
    maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
    maven("https://oss.sonatype.org/content/repositories/snapshots")
    maven("https://oss.sonatype.org/content/repositories/central")
    maven {
        name = "papermc"
        url = uri("https://repo.papermc.io/repository/maven-public/")
    }
    maven(uri("https://maven.plugily.xyz/releases"))
    maven(uri("https://maven.plugily.xyz/snapshots"))
    maven(uri("https://repo.maven.apache.org/maven2/"))
}

dependencies {
    implementation("plugily.projects:MiniGamesBox-Classic:1.3.17") { isTransitive = false }

    compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
    compileOnly("org.jetbrains:annotations:24.0.1")
    compileOnly(files("lib/CorpseReborn.jar"))
}

group = "plugily.projects"
version = "2.1.1-SNAPSHOT1"
description = "MurderMystery"

java {
    withJavadocJar()
}

tasks {
    build {
        dependsOn(shadowJar)
    }

    shadowJar {
        archiveClassifier.set("")
        relocate("plugily.projects.minigamesbox", "plugily.projects.murdermystery.minigamesbox")
        relocate("com.zaxxer.hikari", "plugily.projects.murdermystery.database.hikari")
        minimize()
    }

    processResources {
        filesMatching("**/plugin.yml") {
            expand(project.properties)
        }
    }

    javadoc {
        options.encoding = "UTF-8"
    }

}

publishing {
    repositories {
        maven {
            name = "Releases"
            url = uri("https://maven.plugily.xyz/releases")
            credentials {
                username = System.getenv("MAVEN_USERNAME")
                password = System.getenv("MAVEN_PASSWORD")
            }
        }
        maven {
            name = "Snapshots"
            url = uri("https://maven.plugily.xyz/snapshots")
            credentials {
                username = System.getenv("MAVEN_USERNAME")
                password = System.getenv("MAVEN_PASSWORD")
            }
        }
    }
    publications {
        create<MavenPublication>("mavenJava") {
            from(components["java"])
        }
    }
}


================================================
FILE: .github/building/gradlew
================================================
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
#   Gradle start up script for POSIX generated by Gradle.
#
#   Important for running:
#
#   (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
#       noncompliant, but you have some other compliant shell such as ksh or
#       bash, then to run this script, type that shell name before the whole
#       command line, like:
#
#           ksh Gradle
#
#       Busybox and similar reduced shells will NOT work, because this script
#       requires all of these POSIX shell features:
#         * functions;
#         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
#           «${var#prefix}», «${var%suffix}», and «$( cmd )»;
#         * compound commands having a testable exit status, especially «case»;
#         * various built-in commands including «command», «set», and «ulimit».
#
#   Important for patching:
#
#   (2) This script targets any POSIX shell, so it avoids extensions provided
#       by Bash, Ksh, etc; in particular arrays are avoided.
#
#       The "traditional" practice of packing multiple parameters into a
#       space-separated string is a well documented source of bugs and security
#       problems, so this is (mostly) avoided, by progressively accumulating
#       options in "$@", and eventually passing that to Java.
#
#       Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
#       and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
#       see the in-line comments for details.
#
#       There are tweaks for specific operating systems such as AIX, CygWin,
#       Darwin, MinGW, and NonStop.
#
#   (3) This script is generated from the Groovy template
#       https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
#       within the Gradle project.
#
#       You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################

# Attempt to set APP_HOME

# Resolve links: $0 may be a link
app_path=$0

# Need this for daisy-chained symlinks.
while
    APP_HOME=${app_path%"${app_path##*/}"}  # leaves a trailing /; empty if no leading path
    [ -h "$app_path" ]
do
    ls=$( ls -ld "$app_path" )
    link=${ls#*' -> '}
    case $link in             #(
      /*)   app_path=$link ;; #(
      *)    app_path=$APP_HOME$link ;;
    esac
done

# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

warn () {
    echo "$*"
} >&2

die () {
    echo
    echo "$*"
    echo
    exit 1
} >&2

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in                #(
  CYGWIN* )         cygwin=true  ;; #(
  Darwin* )         darwin=true  ;; #(
  MSYS* | MINGW* )  msys=true    ;; #(
  NONSTOP* )        nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
        # IBM's JDK on AIX uses strange locations for the executables
        JAVACMD=$JAVA_HOME/jre/sh/java
    else
        JAVACMD=$JAVA_HOME/bin/java
    fi
    if [ ! -x "$JAVACMD" ] ; then
        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
    fi
else
    JAVACMD=java
    if ! command -v java >/dev/null 2>&1
    then
        die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
    fi
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
    case $MAX_FD in #(
      max*)
        # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
        # shellcheck disable=SC2039,SC3045
        MAX_FD=$( ulimit -H -n ) ||
            warn "Could not query maximum file descriptor limit"
    esac
    case $MAX_FD in  #(
      '' | soft) :;; #(
      *)
        # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
        # shellcheck disable=SC2039,SC3045
        ulimit -n "$MAX_FD" ||
            warn "Could not set maximum file descriptor limit to $MAX_FD"
    esac
fi

# Collect all arguments for the java command, stacking in reverse order:
#   * args from the command line
#   * the main class name
#   * -classpath
#   * -D...appname settings
#   * --module-path (only if needed)
#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.

# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
    APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
    CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

    JAVACMD=$( cygpath --unix "$JAVACMD" )

    # Now convert the arguments - kludge to limit ourselves to /bin/sh
    for arg do
        if
            case $arg in                                #(
              -*)   false ;;                            # don't mess with options #(
              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath
                    [ -e "$t" ] ;;                      #(
              *)    false ;;
            esac
        then
            arg=$( cygpath --path --ignore --mixed "$arg" )
        fi
        # Roll the args list around exactly as many times as the number of
        # args, so each arg winds up back in the position where it started, but
        # possibly modified.
        #
        # NB: a `for` loop captures its iteration list before it begins, so
        # changing the positional parameters here affects neither the number of
        # iterations, nor the values presented in `arg`.
        shift                   # remove old arg
        set -- "$@" "$arg"      # push replacement arg
    done
fi


# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
#   * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
#     and any embedded shellness will be escaped.
#   * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
#     treated as '${Hostname}' itself on the command line.

set -- \
        "-Dorg.gradle.appname=$APP_BASE_NAME" \
        -classpath "$CLASSPATH" \
        org.gradle.wrapper.GradleWrapperMain \
        "$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
    die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
#   readarray ARGS < <( xargs -n1 <<<"$var" ) &&
#   set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#

eval "set -- $(
        printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
        xargs -n1 |
        sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
        tr '\n' ' '
    )" '"$@"'

exec "$JAVACMD" "$@"


================================================
FILE: .github/building/gradlew.bat
================================================
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem      https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem  Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega


================================================
FILE: .github/building/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ MurderMystery - Find the murderer, kill him and survive!
  ~ Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>plugily.projects</groupId>
    <artifactId>murdermystery</artifactId>
    <version>2.1.2-SNAPSHOT0</version>
    <name>MurderMystery</name>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <licenses>
        <license>
            <name>GNU General Public License v3</name>
            <url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
        </license>
    </licenses>

    <repositories>
        <repository>
            <id>plugilyprojects</id>
            <url>https://maven.plugily.xyz/releases</url>
        </repository>
        <repository>
            <id>plugilyprojects-snapshots</id>
            <url>https://maven.plugily.xyz/snapshots</url>
        </repository>
        <repository>
            <id>spigot-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>papermc</id>
            <url>https://repo.papermc.io/repository/maven-public/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>io.papermc.paper</groupId>
            <artifactId>paper-api</artifactId>
            <version>1.21.4-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
        <dependency>
            <groupId>org.jetbrains</groupId>
            <artifactId>annotations</artifactId>
            <version>23.0.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>plugily.projects</groupId>
            <artifactId>MiniGamesBox-Classic</artifactId>
            <version>1.4.0</version>
            <scope>compile</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.golde</groupId>
            <artifactId>corpsereborn</artifactId>
            <version>2.14.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/CorpseReborn.jar</systemPath>
        </dependency>
    </dependencies>


    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.14.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.21.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>3.1.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.9.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.11.2</version>
                <configuration>
                    <windowtitle>Murder Mystery API docs for v${project.version}</windowtitle>
                    <description>Minecraft survival minigame.
                        Be the murderer, innocent or the detective! Don't be killed during the game to win! API
                        documentation for hooking Murder Mystery with your plugin.
                    </description>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.4.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.6.0</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>
                            <relocations>
                                <relocation>
                                    <pattern>com.zaxxer.hikari</pattern>
                                    <shadedPattern>plugily.projects.murdermystery.database.hikari</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>plugily.projects.minigamesbox</pattern>
                                    <shadedPattern>plugily.projects.murdermystery.minigamesbox</shadedPattern>
                                </relocation>
                            </relocations>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- External beta versions discord deployer plugin -->
            <plugin>
                <groupId>plugily.projects</groupId>
                <artifactId>betty-maven-plugin</artifactId>
                <version>1.0.2</version>
                <configuration>
                    <changelogFile>${project.basedir}/CHANGELOG.md</changelogFile>
                </configuration>
            </plugin>
            <!-- External beta versions discord deployer plugin -->
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>3.5.3</version>
            </extension>
        </extensions>
    </build>
    <distributionManagement>
        <repository>
            <id>Release</id>
            <url>https://maven.plugily.xyz/releases</url>
        </repository>
        <snapshotRepository>
            <id>Snapshot</id>
            <url>https://maven.plugily.xyz/snapshots</url>
        </snapshotRepository>
    </distributionManagement>
</project>

================================================
FILE: .github/building/settings.gradle.kts
================================================
rootProject.name = "murdermystery"


================================================
FILE: .github/workflows/deploy-development.yml
================================================
name: Bump and Publish Development Branch

on:
  push:
    branches: [ development ]
  workflow_dispatch:
jobs:
  bump:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Latest Commit
        uses: actions/checkout@v4.2.2
      - name: Bump Version
        id: bump
        uses: Plugily-Projects/version-bump-action@v10
        with:
          github-token: ${{ secrets.github_token }}
          auto-version-bump: true
      - name: Print Version
        run: "echo 'New Version: ${{steps.bump.outputs.version}}'"
  publish:
    needs: bump
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Latest Commit
        uses: actions/checkout@v4.2.2
        with:
          ref: 'development'
      - name: Set up JDK
        uses: actions/setup-java@v4.6.0
        with:
          distribution: 'temurin'
          java-version: '21'
          java-package: jdk
      - name: Set up Maven
        uses: stCarolas/setup-maven@v5
        with:
          maven-version: 3.8.2
      - name: Cache
        uses: actions/cache@v4.2.2
        with:
          path: ~/.m2/repository
          key: maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: maven-
      - name: Publish with Maven
        uses: s4u/maven-settings-action@v3.1.0
        with:
          servers: |
            [{
                "id": "Snapshot",
                "username": "${{ secrets.SNAPSHOTSUSERNAME }}",
                "password": "${{ secrets.SNAPSHOTSPASSWORD }}"
            }]
      - run: mvn clean verify compile package site:site javadoc:javadoc javadoc:jar deploy -DaltDeploymentRepository=Snapshot::https://maven.plugily.xyz/snapshots -f pom.xml


================================================
FILE: .github/workflows/deploy-master.yml
================================================
name: Bump and Publish Master Branch

on:
  pull_request:
    types:
      - closed
  workflow_dispatch:
jobs:
  bump:
    if: github.event.pull_request.merged
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Latest Commit
        uses: actions/checkout@v4.2.2
      - name: Bump Version
        id: bump
        uses: Plugily-Projects/version-bump-action@v10
        with:
          github-token: ${{ secrets.github_token }}
          auto-version-bump: false
          auto-version-bump-release: true
      - name: Print Version
        run: "echo 'New Version: ${{steps.bump.outputs.version}}'"
  publish:
    needs: bump
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Latest Commit
        uses: actions/checkout@v4.2.2
        with:
          ref: 'master'
      - name: Set up JDK
        uses: actions/setup-java@v4.6.0
        with:
          distribution: 'temurin'
          java-version: '21'
          java-package: jdk
      - name: Set up Maven
        uses: stCarolas/setup-maven@v5
        with:
          maven-version: 3.8.2
      - name: Cache
        uses: actions/cache@v4.2.2
        with:
          path: ~/.m2/repository
          key: maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: maven-
      - name: Publish with Maven
        uses: s4u/maven-settings-action@v3.1.0
        with:
          servers: |
            [{
                "id": "Release",
                "username": "${{ secrets.RELEASESUSERNAME }}",
                "password": "${{ secrets.RELEASESPASSWORD }}"
            }]
      - run: mvn clean verify compile package site:site javadoc:javadoc javadoc:jar deploy -DaltDeploymentRepository=Release::https://maven.plugily.xyz/releases -f pom.xml


================================================
FILE: .gitignore
================================================
/out/
/generated/
/minecraft/
/target/

================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists


================================================
FILE: lib/README.md
================================================
_This lib folder contains external libs that are not provided by their author with Maven._

**(The following libraries located in this folder have been released in compliance with the license therein)**

CorpseReborn (License: No License | https://www.spigotmc.org/resources/authors/ericgolde555.23398/ | https://github.com/egold555/CorpseReborn )


If you are the owner of one of these libraries feel free to contact us if you want removal of your lib ( https://discord.plugily.xyz or management@plugily.xyz ) . 

================================================
FILE: pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ MurderMystery - Find the murderer, kill him and survive!
  ~ Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>plugily.projects</groupId>
    <artifactId>murdermystery</artifactId>
    <version>2.1.6</version>
    <name>MurderMystery</name>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <licenses>
        <license>
            <name>GNU General Public License v3</name>
            <url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
        </license>
    </licenses>

    <repositories>
        <repository>
            <id>plugilyprojects</id>
            <url>https://maven.plugily.xyz/releases</url>
        </repository>
        <repository>
            <id>plugilyprojects-snapshots</id>
            <url>https://maven.plugily.xyz/snapshots</url>
        </repository>
        <repository>
            <id>spigot-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>papermc</id>
            <url>https://repo.papermc.io/repository/maven-public/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>io.papermc.paper</groupId>
            <artifactId>paper-api</artifactId>
            <version>1.21.4-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
        <dependency>
            <groupId>org.jetbrains</groupId>
            <artifactId>annotations</artifactId>
            <version>23.0.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>plugily.projects</groupId>
            <artifactId>MiniGamesBox-Classic</artifactId>
            <version>1.4.5</version>
            <scope>compile</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.golde</groupId>
            <artifactId>corpsereborn</artifactId>
            <version>2.14.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/CorpseReborn.jar</systemPath>
        </dependency>
    </dependencies>


    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.14.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.21.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>3.1.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.9.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.11.2</version>
                <configuration>
                    <windowtitle>Murder Mystery API docs for v${project.version}</windowtitle>
                    <description>Minecraft survival minigame.
                        Be the murderer, innocent or the detective! Don't be killed during the game to win! API
                        documentation for hooking Murder Mystery with your plugin.
                    </description>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.4.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.6.0</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>
                            <relocations>
                                <relocation>
                                    <pattern>com.zaxxer.hikari</pattern>
                                    <shadedPattern>plugily.projects.murdermystery.database.hikari</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>plugily.projects.minigamesbox</pattern>
                                    <shadedPattern>plugily.projects.murdermystery.minigamesbox</shadedPattern>
                                </relocation>
                            </relocations>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- External beta versions discord deployer plugin -->
            <plugin>
                <groupId>plugily.projects</groupId>
                <artifactId>betty-maven-plugin</artifactId>
                <version>1.0.2</version>
                <configuration>
                    <changelogFile>${project.basedir}/CHANGELOG.md</changelogFile>
                </configuration>
            </plugin>
            <!-- External beta versions discord deployer plugin -->
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>3.5.3</version>
            </extension>
        </extensions>
    </build>
    <distributionManagement>
        <repository>
            <id>Release</id>
            <url>https://maven.plugily.xyz/releases</url>
        </repository>
        <snapshotRepository>
            <id>Snapshot</id>
            <url>https://maven.plugily.xyz/snapshots</url>
        </snapshotRepository>
    </distributionManagement>
</project>


================================================
FILE: pom.xml.versionsBackup
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ MurderMystery - Find the murderer, kill him and survive!
  ~ Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>plugily.projects</groupId>
    <artifactId>murdermystery</artifactId>
    <version>2.1.1-SNAPSHOT1</version>
    <name>MurderMystery</name>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <licenses>
        <license>
            <name>GNU General Public License v3</name>
            <url>https://www.gnu.org/licenses/gpl-3.0.en.html</url>
        </license>
    </licenses>

    <repositories>
        <repository>
            <id>plugilyprojects</id>
            <url>https://maven.plugily.xyz/releases</url>
        </repository>
        <repository>
            <id>plugilyprojects-snapshots</id>
            <url>https://maven.plugily.xyz/snapshots</url>
        </repository>
        <repository>
            <id>jitpack</id>
            <url>https://jitpack.io</url>
        </repository>
        <repository>
            <id>codemc-repo</id>
            <url>https://repo.codemc.org/repository/maven-public/</url>
        </repository>
        <repository>
            <id>spigot-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>papermc</id>
            <url>https://papermc.io/repo/repository/maven-public/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>io.papermc.paper</groupId>
            <artifactId>paper-api</artifactId>
            <version>1.21.4-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
        <dependency>
            <groupId>org.jetbrains</groupId>
            <artifactId>annotations</artifactId>
            <version>23.0.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>plugily.projects</groupId>
            <artifactId>MiniGamesBox-Classic</artifactId>
            <version>1.3.17-SNAPSHOT12</version>
            <scope>compile</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.golde</groupId>
            <artifactId>corpsereborn</artifactId>
            <version>2.14.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/CorpseReborn.jar</systemPath>
        </dependency>
    </dependencies>


    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.14.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.21.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>3.1.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.9.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.11.2</version>
                <configuration>
                    <windowtitle>Murder Mystery API docs for v${project.version}</windowtitle>
                    <description>Minecraft survival minigame.
                        Be the murderer, innocent or the detective! Don't be killed during the game to win! API
                        documentation for hooking Murder Mystery with your plugin.
                    </description>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.4.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.6.0</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>
                            <relocations>
                                <relocation>
                                    <pattern>com.zaxxer.hikari</pattern>
                                    <shadedPattern>plugily.projects.murdermystery.database.hikari</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>plugily.projects.minigamesbox</pattern>
                                    <shadedPattern>plugily.projects.murdermystery.minigamesbox</shadedPattern>
                                </relocation>
                            </relocations>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- External beta versions discord deployer plugin -->
            <plugin>
                <groupId>plugily.projects</groupId>
                <artifactId>betty-maven-plugin</artifactId>
                <version>1.0.2</version>
                <configuration>
                    <changelogFile>${project.basedir}/CHANGELOG.md</changelogFile>
                </configuration>
            </plugin>
            <!-- External beta versions discord deployer plugin -->
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>3.5.3</version>
            </extension>
        </extensions>
    </build>
    <distributionManagement>
        <repository>
            <id>Release</id>
            <url>https://maven.plugily.xyz/releases</url>
        </repository>
        <snapshotRepository>
            <id>Snapshot</id>
            <url>https://maven.plugily.xyz/snapshots</url>
        </snapshotRepository>
    </distributionManagement>
</project>

================================================
FILE: src/main/java/plugily/projects/murdermystery/HookManager.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import plugily.projects.murdermystery.Main;

import java.util.EnumMap;
import java.util.Map;

/**
 * @author Plajer
 * <p>
 * Created at 28.04.2019
 */
public class HookManager {
  //todo implement in minigamescore as bb citiziens could benefit from too
  private final Map<HookFeature, Boolean> hooks = new EnumMap<>(HookFeature.class);
  private final Main plugin;

  public HookManager(Main plugin) {
    this.plugin = plugin;
    enableHooks();
  }

  private void enableHooks() {
    for(HookFeature feature : HookFeature.values()) {
      boolean hooked = true;
      for(Hook requiredHook : feature.getRequiredHooks()) {
        if(!Bukkit.getPluginManager().isPluginEnabled(requiredHook.getPluginName())) {
          hooks.put(feature, false);
          plugin.getDebugger().debug("[HookManager] Feature {0} won't be enabled because " + requiredHook.getPluginName() + " is not installed! Please install it in order to enable this feature in-game!",
            feature.name());
          hooked = false;
          break;
        }
      }
      if(hooked) {
        hooks.put(feature, true);
        plugin.getDebugger().debug("[HookManager] Feature {0} enabled!", feature.name());
      }
    }
  }

  public boolean isFeatureEnabled(HookFeature feature) {
    return hooks.getOrDefault(feature, false);
  }

  public enum HookFeature {
    CORPSES(Hook.CORPSE_REBORN);

    private final Hook[] requiredHooks;

    HookFeature(Hook... requiredHooks) {
      this.requiredHooks = requiredHooks;
    }

    public Hook[] getRequiredHooks() {
      return requiredHooks;
    }
  }

  public enum Hook {
    CORPSE_REBORN("CorpseReborn");

    private final String pluginName;

    Hook(String pluginName) {
      this.pluginName = pluginName;
    }

    public String getPluginName() {
      return pluginName;
    }
  }

}


================================================
FILE: src/main/java/plugily/projects/murdermystery/Main.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery;

import org.jetbrains.annotations.TestOnly;
import plugily.projects.minigamesbox.classic.PluginMain;
import plugily.projects.minigamesbox.classic.handlers.setup.SetupInventory;
import plugily.projects.minigamesbox.classic.handlers.setup.categories.PluginSetupCategoryManager;
import plugily.projects.minigamesbox.classic.utils.services.metrics.Metrics;
import plugily.projects.murdermystery.arena.*;
import plugily.projects.murdermystery.arena.special.SpecialBlockEvents;
import plugily.projects.murdermystery.arena.special.mysterypotion.MysteryPotionRegistry;
import plugily.projects.murdermystery.arena.special.pray.PrayerRegistry;
import plugily.projects.murdermystery.boot.AdditionalValueInitializer;
import plugily.projects.murdermystery.boot.MessageInitializer;
import plugily.projects.murdermystery.boot.PlaceholderInitializer;
import plugily.projects.murdermystery.commands.arguments.ArgumentsRegistry;
import plugily.projects.murdermystery.events.PluginEvents;
import plugily.projects.murdermystery.handlers.CorpseHandler;
import plugily.projects.murdermystery.handlers.lastwords.LastWordsManager;
import plugily.projects.murdermystery.handlers.setup.SetupCategoryManager;
import plugily.projects.murdermystery.handlers.skins.sword.SwordSkinManager;
import plugily.projects.murdermystery.handlers.trails.BowTrailsHandler;
import plugily.projects.murdermystery.handlers.trails.TrailsManager;

/**
 * Created by Tigerpanzer_02 on 13.03.2022
 */
public class Main extends PluginMain {
  private ArenaRegistry arenaRegistry;
  private ArenaManager arenaManager;
  private ArgumentsRegistry argumentsRegistry;
  private LastWordsManager lastWordsManager;
  private TrailsManager trailsManager;
  private SwordSkinManager swordSkinManager;
  private HookManager hookManager;
  private CorpseHandler corpseHandler;

  @TestOnly
  public Main() {
    super();
  }

  @Override
  public void onEnable() {
    long start = System.currentTimeMillis();
    MessageInitializer messageInitializer = new MessageInitializer(this);
    super.onEnable();
    getDebugger().debug("[System] [Plugin] Initialization start");
    arenaRegistry = new ArenaRegistry(this);
    new PlaceholderInitializer(this);
    messageInitializer.registerMessages();
    new AdditionalValueInitializer(this);
    initializePluginClasses();

    if(getConfigPreferences().getOption("HIDE_NAMETAGS")) {
      getServer().getScheduler().scheduleSyncRepeatingTask(this, () ->
        getServer().getOnlinePlayers().forEach(ArenaUtils::updateNameTagsVisibility), 60, 140);
    }

    getDebugger().debug("Full {0} plugin enabled", getName());
    getDebugger()
      .debug(
        "[System] [Plugin] Initialization finished took {0}ms",
        System.currentTimeMillis() - start);
  }

  public void initializePluginClasses() {
    addFileName("lastwords");
    addFileName("powerups");
    addFileName("skins");
    addFileName("special_blocks");
    addFileName("trails");
    Arena.init(this);
    ArenaUtils.init(this);
    new ArenaEvents(this);
    arenaManager = new ArenaManager(this);
    arenaRegistry.registerArenas();
    getSignManager().loadSigns();
    getSignManager().updateSigns();
    argumentsRegistry = new ArgumentsRegistry(this);

    lastWordsManager = new LastWordsManager(this);
    new BowTrailsHandler(this);
    MysteryPotionRegistry.init(this);
    PrayerRegistry.init(this);
    new SpecialBlockEvents(this);
    trailsManager = new TrailsManager(this);
    hookManager = new HookManager(this);
    corpseHandler = new CorpseHandler(this);
    swordSkinManager = new SwordSkinManager(this);
    new PluginEvents(this);
    addPluginMetrics();
  }

  private void addPluginMetrics() {
    getMetrics()
      .addCustomChart(
        new Metrics.SimplePie(
          "hooked_addons",
          () -> {
            if(getServer().getPluginManager().getPlugin("MurderMystery-Extension") != null) {
              return "Extension";
            }
            return "None";
          }));
  }

  @Override
  public ArenaRegistry getArenaRegistry() {
    return arenaRegistry;
  }

  @Override
  public ArgumentsRegistry getArgumentsRegistry() {
    return argumentsRegistry;
  }

  @Override
  public ArenaManager getArenaManager() {
    return arenaManager;
  }

  public LastWordsManager getLastWordsManager() {
    return lastWordsManager;
  }

  public TrailsManager getTrailsManager() {
    return trailsManager;
  }

  public SwordSkinManager getSwordSkinManager() {
    return swordSkinManager;
  }

  public HookManager getHookManager() {
    return hookManager;
  }

  public CorpseHandler getCorpseHandler() {
    return corpseHandler;
  }

  @Override
  public PluginSetupCategoryManager getSetupCategoryManager(SetupInventory setupInventory) {
    return new SetupCategoryManager(setupInventory);
  }
}


================================================
FILE: src/main/java/plugily/projects/murdermystery/api/events/game/MurderGameCorpseSpawnEvent.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery.api.events.game;

import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import plugily.projects.minigamesbox.api.events.PlugilyEvent;
import plugily.projects.murdermystery.arena.Arena;

/**
 * @author Tigerpanzer_02
 * <p>
 * Created at 15.04.2022
 */
public class MurderGameCorpseSpawnEvent extends PlugilyEvent implements Cancellable {

  private static final HandlerList HANDLERS = new HandlerList();
  private boolean isCancelled = false;
  private final Player player;
  private final Location location;

  public MurderGameCorpseSpawnEvent(Arena arena, Player player, Location location) {
    super(arena);
    this.player = player;
    this.location = location;
  }

  public static HandlerList getHandlerList() {
    return HANDLERS;
  }

  @Override
  public HandlerList getHandlers() {
    return HANDLERS;
  }

  @Override
  public boolean isCancelled() {
    return isCancelled;
  }

  @Override
  public void setCancelled(boolean cancelled) {
    isCancelled = cancelled;
  }

  public Player getPlayer() {
    return player;
  }

  public Location getLocation() {
    return location;
  }

}


================================================
FILE: src/main/java/plugily/projects/murdermystery/api/events/game/package-info.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * All in-game related events.
 */

package plugily.projects.murdermystery.api.events.game;

================================================
FILE: src/main/java/plugily/projects/murdermystery/api/events/player/package-info.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Murder Mystery is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Murder Mystery is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Murder Mystery.  If not, see <http://www.gnu.org/licenses/>.
 */


/**
 * All in-game player related events.
 */

package plugily.projects.murdermystery.api.events.player;

================================================
FILE: src/main/java/plugily/projects/murdermystery/api/package-info.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Package with all API events and methods to hook with Murder Mystery.
 */

package plugily.projects.murdermystery.api;

================================================
FILE: src/main/java/plugily/projects/murdermystery/arena/Arena.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery.arena;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Item;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitTask;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import plugily.projects.minigamesbox.api.arena.IArenaState;
import plugily.projects.minigamesbox.api.user.IUser;
import plugily.projects.minigamesbox.classic.arena.PluginArena;
import plugily.projects.minigamesbox.classic.arena.managers.PluginMapRestorerManager;
import plugily.projects.minigamesbox.classic.handlers.language.MessageBuilder;
import plugily.projects.minigamesbox.classic.utils.hologram.ArmorStandHologram;
import plugily.projects.minigamesbox.classic.utils.version.VersionUtils;
import plugily.projects.murdermystery.HookManager;
import plugily.projects.murdermystery.Main;
import plugily.projects.murdermystery.arena.corpse.Corpse;
import plugily.projects.murdermystery.arena.corpse.Stand;
import plugily.projects.murdermystery.arena.managers.MapRestorerManager;
import plugily.projects.murdermystery.arena.managers.ScoreboardManager;
import plugily.projects.murdermystery.arena.role.Role;
import plugily.projects.murdermystery.arena.special.SpecialBlock;
import plugily.projects.murdermystery.arena.states.InGameState;
import plugily.projects.murdermystery.arena.states.RestartingState;
import plugily.projects.murdermystery.arena.states.StartingState;
import plugily.projects.murdermystery.arena.states.WaitingState;

import java.util.*;

/**
 * @author Tigerpanzer_02
 * <p>
 * Created at 17.12.2021
 */
public class Arena extends PluginArena {

  private static Main plugin;

  private final List<Player> spectators = new ArrayList<>();
  private final List<Player> deaths = new ArrayList<>();
  private final List<Player> detectives = new ArrayList<>();
  private final List<Player> murderers = new ArrayList<>();
  private final List<Item> goldSpawned = new ArrayList<>();
  private final List<Corpse> corpses = new ArrayList<>();
  private final List<Stand> stands = new ArrayList<>();
  private final List<SpecialBlock> specialBlocks = new ArrayList<>();
  private List<Location> goldSpawnPoints = new ArrayList<>();
  private List<Location> playerSpawnPoints = new ArrayList<>();
  private int spawnGoldTimer = 0;
  private int spawnGoldTime = 0;
  private boolean detectiveDead;
  private boolean murdererLocatorReceived;
  private boolean hideChances;
  private boolean goldVisuals = false;
  private final Map<CharacterType, Player> gameCharacters = new EnumMap<>(CharacterType.class);
  private final MapRestorerManager mapRestorerManager;
  private ArmorStandHologram bowHologram;

  public Arena(String id) {
    super(id);
    setPluginValues();
    setScoreboardManager(new ScoreboardManager(this));
    mapRestorerManager = new MapRestorerManager(this);
    setMapRestorerManager(mapRestorerManager);
    addGameStateHandler(IArenaState.IN_GAME, new InGameState());
    addGameStateHandler(IArenaState.RESTARTING, new RestartingState());
    addGameStateHandler(IArenaState.STARTING, new StartingState());
    addGameStateHandler(IArenaState.WAITING_FOR_PLAYERS, new WaitingState());
  }

  public static void init(Main plugin) {
    Arena.plugin = plugin;
  }

  @Override
  public Main getPlugin() {
    return plugin;
  }


  @Override
  public PluginMapRestorerManager getMapRestorerManager() {
    return mapRestorerManager;
  }


  private void setPluginValues() {
  }

  public void addCorpse(Corpse corpse) {
    if(plugin.getHookManager().isFeatureEnabled(HookManager.HookFeature.CORPSES)) {
      corpses.add(corpse);
    }
  }

  public List<Corpse> getCorpses() {
    return corpses;
  }

  public List<Stand> getStands() {
    return stands;
  }

  public void addHead(Stand stand) {
    stands.add(stand);
  }

  public void setSpawnGoldTime(int spawnGoldTime) {
    this.spawnGoldTime = spawnGoldTime;
  }

  public void setHideChances(boolean hideChances) {
    this.hideChances = hideChances;
  }

  public boolean isDetectiveDead() {
    return detectiveDead;
  }

  public void setDetectiveDead(boolean detectiveDead) {
    this.detectiveDead = detectiveDead;
  }

  public boolean isMurdererLocatorReceived() {
    return murdererLocatorReceived;
  }

  public void setMurdererLocatorReceived(boolean murdererLocatorReceived) {
    this.murdererLocatorReceived = murdererLocatorReceived;
  }

  public Map<CharacterType, Player> getGameCharacters() {
    return gameCharacters;
  }

  public boolean isHideChances() {
    return hideChances;
  }

  @NotNull
  public List<Item> getGoldSpawned() {
    return goldSpawned;
  }

  @NotNull
  public List<Location> getGoldSpawnPoints() {
    return goldSpawnPoints;
  }

  public void setGoldSpawnPoints(@NotNull List<Location> goldSpawnPoints) {
    this.goldSpawnPoints = goldSpawnPoints;
  }

  private BukkitTask visualTask;

  public void startGoldVisuals() {
    if(visualTask != null) {
      return;
    }
    visualTask = Bukkit.getScheduler().runTaskTimer(plugin, () -> {
      if(!goldVisuals || !plugin.isEnabled() || goldSpawnPoints.isEmpty() || getArenaState() != IArenaState.WAITING_FOR_PLAYERS) {
        //we need to cancel it that way as the arena class is an task
        visualTask.cancel();
        return;
      }
      for(Location goldLocations : goldSpawnPoints) {
        Location goldLocation = goldLocations.clone();
        goldLocation.add(0, 0.4, 0);
        Bukkit.getOnlinePlayers().forEach(player -> VersionUtils.sendParticles("REDSTONE", player, goldLocation, 10));
      }
    }, 20L, 20L);
  }

  public boolean isGoldVisuals() {
    return goldVisuals;
  }

  public void setGoldVisuals(boolean goldVisuals) {
    this.goldVisuals = goldVisuals;
    if(goldVisuals) {
      startGoldVisuals();
    }
  }

  public void loadSpecialBlock(SpecialBlock block) {
    if(!specialBlocks.contains(block)) {
      specialBlocks.add(block);
    }

    switch(block.getSpecialBlockType()) {
      case MYSTERY_CAULDRON:
        block.setArmorStandHologram(new ArmorStandHologram(plugin.getBukkitHelper().getBlockCenter(block.getLocation()), new MessageBuilder(plugin.getLanguageManager().getLanguageMessage("In-Game.Messages.Arena.Playing.Special-Blocks.Cauldron.Hologram")).build()));
        break;
      case PRAISE_DEVELOPER:
        ArmorStandHologram prayer = new ArmorStandHologram(plugin.getBukkitHelper().getBlockCenter(block.getLocation()));
        for(String str : plugin.getLanguageManager().getLanguageMessage("In-Game.Messages.Arena.Playing.Special-Blocks.Pray.Hologram").split(";")) {
          prayer.appendLine(new MessageBuilder(str).build());
        }
        block.setArmorStandHologram(prayer);
        break;
      case HORSE_PURCHASE:
      case RAPID_TELEPORTATION:
        //not yet implemented
      default:
        break;
    }
  }

  public List<SpecialBlock> getSpecialBlocks() {
    return specialBlocks;
  }

  public int getTotalRoleChances(Role role) {
    int totalRoleChances = 0;

    for(Player p : getPlayersLeft()) {
      IUser user = getPlugin().getUserManager().getUser(p);
      totalRoleChances += getContributorValue(role, user);
    }
    //avoid division / 0
    return totalRoleChances == 0 ? 1 : totalRoleChances;
  }

  public boolean isCharacterSet(Arena.CharacterType type) {
    return gameCharacters.containsKey(type);
  }

  public void setCharacter(Arena.CharacterType type, Player player) {
    gameCharacters.put(type, player);
  }

  public void setCharacter(Role role, Player player) {
    gameCharacters.put(role == Role.MURDERER ? CharacterType.MURDERER : CharacterType.DETECTIVE, player);
  }

  @Nullable
  public Player getCharacter(Arena.CharacterType type) {
    return gameCharacters.get(type);
  }

  public void addToDetectiveList(Player player) {
    detectives.add(player);
  }

  public boolean lastAliveDetective() {
    return aliveDetective() <= 1;
  }

  public int aliveDetective() {
    int alive = 0;
    for(Player player : getPlayersLeft()) {
      if(Role.isRole(Role.ANY_DETECTIVE, plugin.getUserManager().getUser(player), this) && isDetectiveAlive(player)) {
        alive++;
      }
    }
    return alive;
  }

  public boolean isDetectiveAlive(Player player) {
    for(Player p : getPlayersLeft()) {
      if(p == player && detectives.contains(p)) {
        return true;
      }
    }
    return false;
  }

  public List<Player> getDetectiveList() {
    return detectives;
  }

  public void addToMurdererList(Player player) {
    murderers.add(player);
  }

  public void removeFromMurdererList(Player player) {
    murderers.remove(player);
  }


  public boolean lastAliveMurderer() {
    return aliveMurderer() == 1;
  }

  public int aliveMurderer() {
    int alive = 0;
    for(Player player : getPlayersLeft()) {
      if(Role.isRole(Role.MURDERER, plugin.getUserManager().getUser(player), this) && isMurderAlive(player)) {
        alive++;
      }
    }
    return alive;
  }

  public boolean isMurderAlive(Player player) {
    for(Player p : getPlayersLeft()) {
      if(p == player && murderers.contains(p)) {
        return true;
      }
    }
    return false;
  }

  public List<Player> getMurdererList() {
    return murderers;
  }

  public void setBowHologram(ArmorStandHologram bowHologram) {
    if(bowHologram == null) {
      this.bowHologram = null;
      return;
    }

    this.bowHologram = bowHologram;
  }

  public ArmorStandHologram getBowHologram() {
    return bowHologram;
  }

  public void addDeathPlayer(Player player) {
    deaths.add(player);
  }

  public void removeDeathPlayer(Player player) {
    deaths.remove(player);
  }

  public boolean isDeathPlayer(Player player) {
    return deaths.contains(player);
  }

  public List<Player> getDeaths() {
    return deaths;
  }

  public void addSpectatorPlayer(Player player) {
    spectators.add(player);
  }

  public void removeSpectatorPlayer(Player player) {
    spectators.remove(player);
  }

  public boolean isSpectatorPlayer(Player player) {
    return spectators.contains(player);
  }

  public List<Location> getPlayerSpawnPoints() {
    return playerSpawnPoints;
  }

  public int getSpawnGoldTime() {
    return spawnGoldTime;
  }

  public int getSpawnGoldTimer() {
    return spawnGoldTimer;
  }

  public void setSpawnGoldTimer(int spawnGoldTimer) {
    this.spawnGoldTimer = spawnGoldTimer;
  }


  public void setPlayerSpawnPoints(@NotNull List<Location> playerSpawnPoints) {
    this.playerSpawnPoints = playerSpawnPoints;
  }

  public void adjustContributorValue(Role role, IUser user, int number) {
    user.adjustStatistic("CONTRIBUTION_" + role.name(), number);
  }

  private final Map<IUser, Integer> murdererContributions = new HashMap<>();
  private final Map<IUser, Integer> detectiveContributions = new HashMap<>();

  public Map<IUser, Integer> getMurdererContributions() {
    return murdererContributions;
  }

  public Map<IUser, Integer> getDetectiveContributions() {
    return detectiveContributions;
  }

  public int getContributorValue(Role role, IUser user) {
    if(role == Role.MURDERER && murdererContributions.containsKey(user)) {
      return murdererContributions.get(user);
    } else if(detectiveContributions.containsKey(user)) {
      return detectiveContributions.get(user);
    }
    Player player = user.getPlayer();
    int contributor = user.getStatistic("CONTRIBUTION_" + role.name());
    int increase = plugin.getPermissionsManager().getPermissionCategoryValue(role.name() + "_BOOSTER", player);
    int multiplicator = plugin.getPermissionsManager().getPermissionCategoryValue("CHANCES_BOOSTER", player);
    int calculatedContributor = (contributor + increase) * (multiplicator == 0 ? 1 :multiplicator);
    if(role == Role.MURDERER) {
      murdererContributions.put(user, calculatedContributor);
    } else {
      detectiveContributions.put(user, calculatedContributor);
    }
    return calculatedContributor;
  }

  public void resetContributorValue(Role role, IUser user) {
    user.setStatistic("CONTRIBUTION_" + role.name(), 1);
  }

  public enum CharacterType {
    MURDERER, DETECTIVE, FAKE_DETECTIVE, HERO
  }
}

================================================
FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery.arena;

import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityShootBowEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.inventory.InventoryView;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.potion.PotionEffectType;
import plugily.projects.minigamesbox.api.arena.IArenaState;
import plugily.projects.minigamesbox.api.arena.IPluginArena;
import plugily.projects.minigamesbox.api.user.IUser;
import plugily.projects.minigamesbox.classic.arena.PluginArenaEvents;
import plugily.projects.minigamesbox.classic.handlers.items.SpecialItem;
import plugily.projects.minigamesbox.classic.handlers.language.MessageBuilder;
import plugily.projects.minigamesbox.classic.handlers.language.TitleBuilder;
import plugily.projects.minigamesbox.classic.utils.misc.complement.ComplementAccessor;
import plugily.projects.minigamesbox.classic.utils.version.ServerVersion;
import plugily.projects.minigamesbox.classic.utils.version.VersionUtils;
import plugily.projects.minigamesbox.classic.utils.version.events.api.PlugilyEntityPickupItemEvent;
import plugily.projects.minigamesbox.classic.utils.version.events.api.PlugilyPlayerPickupArrow;
import plugily.projects.minigamesbox.classic.utils.version.xseries.XPotion;
import plugily.projects.minigamesbox.classic.utils.version.xseries.XSound;
import plugily.projects.minigamesbox.classic.utils.version.xseries.inventory.XInventoryView;
import plugily.projects.murdermystery.Main;
import plugily.projects.murdermystery.arena.managers.MapRestorerManager;
import plugily.projects.murdermystery.arena.role.Role;
import plugily.projects.murdermystery.arena.special.pray.PrayerRegistry;
import plugily.projects.murdermystery.utils.ItemPosition;

/**
 * @author Plajer
 * <p>Created at 13.03.2018
 */
public class ArenaEvents extends PluginArenaEvents {

  private final Main plugin;

  public ArenaEvents(Main plugin) {
    super(plugin);
    this.plugin = plugin;
    plugin.getServer().getPluginManager().registerEvents(this, plugin);
  }

  @Override
  public void handleIngameVoidDeath(Player victim, IPluginArena arena) {
    Arena pluginArena = plugin.getArenaRegistry().getArena(arena.getId());
    if(pluginArena == null) {
      return;
    }
    victim.damage(1000.0);
    if(arena.getArenaState() == IArenaState.IN_GAME) {
      VersionUtils.teleport(victim, pluginArena.getPlayerSpawnPoints().get(0));
    }
  }

  @EventHandler
  public void onBowShot(EntityShootBowEvent event) {
    if(event.getEntityType() != EntityType.PLAYER) {
      return;
    }
    Player player = (Player) event.getEntity();
    IUser user = plugin.getUserManager().getUser(player);
    if(!Role.isRole(Role.ANY_DETECTIVE, user)) {
      return;
    }
    if(user.getCooldown("bow_shot") > 0) {
      event.setCancelled(true);
      return;
    }
    int bowCooldown = plugin.getConfig().getInt("Bow.Cooldown", 5);
    if(bowCooldown <= 0) {
      return;
    }
    user.setCooldown("bow_shot", bowCooldown);
    plugin.getBukkitHelper().applyActionBarCooldown(player, bowCooldown);
    VersionUtils.setMaterialCooldown(player, event.getBow().getType(), 20 * (plugin.getConfig().getInt("Bow.Cooldown", 5)));
  }

  @EventHandler
  public void onArrowPickup(PlugilyPlayerPickupArrow e) {
    if(plugin.getArenaRegistry().isInArena(e.getPlayer())) {
      e.getItem().remove();
      e.setCancelled(true);
    }
  }

  @EventHandler
  public void onItemPickup(PlugilyEntityPickupItemEvent e) {
    if(!(e.getEntity() instanceof Player)) {
      return;
    }
    Player player = (Player) e.getEntity();
    Arena arena = plugin.getArenaRegistry().getArena(player);
    if(arena == null) {
      return;
    }
    IUser user = plugin.getUserManager().getUser(player);
    e.setCancelled(true);
    if(arena.getBowHologram() != null
      && e.getItem().equals(arena.getBowHologram().getEntityItem())) {
      if(!user.isSpectator() && Role.isRole(Role.INNOCENT, user, arena)) {
        XSound.BLOCK_LAVA_POP.play(player.getLocation(), 1F, 2F);

        ((MapRestorerManager) arena.getMapRestorerManager()).removeBowHolo();
        e.getItem().remove();

        for(Player loopPlayer : arena.getPlayersLeft()) {
          IUser loopUser = plugin.getUserManager().getUser(loopPlayer);
          if(Role.isRole(Role.INNOCENT, loopUser)) {
            ItemPosition.setItem(loopUser, ItemPosition.BOW_LOCATOR, new ItemStack(Material.AIR, 1));
          }
        }

        arena.setCharacter(Arena.CharacterType.FAKE_DETECTIVE, player);
        ItemPosition.setItem(user, ItemPosition.BOW, new ItemStack(Material.BOW, 1));
        ItemPosition.setItem(user, ItemPosition.INFINITE_ARROWS, new ItemStack(Material.ARROW, plugin.getConfig().getInt("Bow.Amount.Arrows.Fake", 3)));
        new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_BOW_PICKUP").asKey().player(player).arena(arena).sendArena();
      }

      return;
    }

    if(e.getItem().getItemStack().getType() != Material.GOLD_INGOT) {
      return;
    }

    if(user.isSpectator() || arena.getArenaState() != IArenaState.IN_GAME) {
      return;
    }

    if(PrayerRegistry.getBan().contains(player)) {
      e.setCancelled(true);
      return;
    }

    e.getItem().remove();

    XSound.BLOCK_LAVA_POP.play(player.getLocation(), 1, 1);
    arena.getGoldSpawned().remove(e.getItem());

    ItemStack stack = new ItemStack(Material.GOLD_INGOT, e.getItem().getItemStack().getAmount());
    if(PrayerRegistry.getRush().contains(player)) {
      stack.setAmount(3 * e.getItem().getItemStack().getAmount());
    }

    ItemPosition.addItem(user, ItemPosition.GOLD_INGOTS, stack);
    user.adjustStatistic("LOCAL_GOLD", stack.getAmount());
    ArenaUtils.addScore(user, ArenaUtils.ScoreAction.GOLD_PICKUP, stack.getAmount());

    new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_GOLD").asKey().player(player).arena(arena).sendPlayer();
    plugin.getRewardsHandler().performReward(player, plugin.getRewardsHandler().getRewardType("GOLD_PICKUP"));

    if(Role.isRole(Role.ANY_DETECTIVE, user, arena)) {
      ItemPosition.addItem(user, ItemPosition.ARROWS, new ItemStack(Material.ARROW, e.getItem().getItemStack().getAmount() * plugin.getConfig().getInt("Bow.Amount.Arrows.Detective", 3)));
      return;
    }

    if(user.getStatistic("LOCAL_GOLD") >= plugin.getConfig().getInt("Gold.Amount.Bow", 10)) {
      user.setStatistic("LOCAL_GOLD", 0);
      new TitleBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_BOW_SHOT_TITLE")
        .asKey()
        .player(player)
        .arena(arena)
        .sendPlayer();
      ItemPosition.setItem(user, ItemPosition.BOW, new ItemStack(Material.BOW, 1));
      ItemPosition.addItem(
        user,
        ItemPosition.ARROWS,
        new ItemStack(Material.ARROW, plugin.getConfig().getInt("Bow.Amount.Arrows.Gold", 3)));
      player
        .getInventory()
        .setItem(
          /* same for all roles */ ItemPosition.GOLD_INGOTS.getOtherRolesItemPosition(),
          null);
    }
  }


  @EventHandler
  public void onMurdererDamage(EntityDamageByEntityEvent e) {
    if(!(e.getDamager() instanceof Player) || e.getEntityType() != EntityType.PLAYER) {
      return;
    }
    Player attacker = (Player) e.getDamager();
    IUser userAttacker = plugin.getUserManager().getUser(attacker);
    Player victim = (Player) e.getEntity();
    IUser userVictim = plugin.getUserManager().getUser(victim);
    if(!ArenaUtils.areInSameArena(attacker, victim)) {
      return;
    }
    //we are killing player via damage() method so event can be cancelled safely, will work for detective damage murderer and others
    e.setCancelled(true);

    //better check this for future even if anyone else cannot use sword
    if(!Role.isRole(Role.MURDERER, userAttacker)) {
      return;
    }

    //check if victim is murderer
    if(Role.isRole(Role.MURDERER, userVictim)) {
      return;
    }
    if(VersionUtils.getItemInHand(attacker) == null || plugin.getSwordSkinManager().getMurdererSword(attacker) == null) {
      return;
    }
    //just don't kill user if item isn't murderer sword
    if(VersionUtils.getItemInHand(attacker).getType() != plugin.getSwordSkinManager().getMurdererSword(attacker).getType()) {
      return;
    }

    //check if sword has cooldown
    if(ServerVersion.Version.isCurrentLower(ServerVersion.Version.v1_11)) {
      if(plugin.getUserManager().getUser(attacker).getCooldown("sword_attack") > 0) {
        return;
      }
    } else if(attacker.hasCooldown(plugin.getSwordSkinManager().getMurdererSword(attacker).getType())) {
      return;
    }

    if(Role.isRole(Role.MURDERER, userVictim)) {
      plugin.getRewardsHandler().performReward(attacker, plugin.getRewardsHandler().getRewardType("KILL_MURDERER"));
    } else if(Role.isRole(Role.ANY_DETECTIVE, userVictim)) {
      plugin.getRewardsHandler().performReward(attacker, plugin.getRewardsHandler().getRewardType("KILL_DETECTIVE"));
    }

    XSound.ENTITY_PLAYER_DEATH.play(victim.getLocation());
    victim.damage(100.0);

    IUser user = plugin.getUserManager().getUser(attacker);

    user.adjustStatistic("KILLS", 1);
    user.adjustStatistic("LOCAL_KILLS", 1);
    ArenaUtils.addScore(user, ArenaUtils.ScoreAction.KILL_PLAYER, 0);

    Arena arena = plugin.getArenaRegistry().getArena(attacker);
    if(Role.isRole(Role.ANY_DETECTIVE, userVictim) && arena.lastAliveDetective()) {
      //if already true, no effect is done :)
      arena.setDetectiveDead(true);
      if(Role.isRole(Role.FAKE_DETECTIVE, userVictim)) {
        arena.setCharacter(Arena.CharacterType.FAKE_DETECTIVE, null);
      }
      ArenaUtils.dropBowAndAnnounce(arena, victim);
    }
  }


  @EventHandler
  public void onArrowDamage(EntityDamageByEntityEvent e) {
    if(!(e.getDamager() instanceof Arrow)) {
      return;
    }
    if(!(((Arrow) e.getDamager()).getShooter() instanceof Player)) {
      return;
    }
    Player attacker = (Player) ((Arrow) e.getDamager()).getShooter();
    IUser userAttacker = plugin.getUserManager().getUser(attacker);
    if(plugin.getArenaRegistry().isInArena(attacker)) {
      e.setCancelled(true);
      e.getDamager().remove();
    }
    if(e.getEntityType() != EntityType.PLAYER) {
      return;
    }
    Player victim = (Player) e.getEntity();
    IUser userVictim = plugin.getUserManager().getUser(victim);
    if(!ArenaUtils.areInSameArena(attacker, victim)) {
      return;
    }
    //we won't allow to suicide
    if(attacker.equals(victim)) {
      e.setCancelled(true);
      return;
    }
    //dont kill murderer on bow damage if attacker is murderer
    if(Role.isRole(Role.MURDERER, userAttacker) && Role.isRole(Role.MURDERER, userVictim)) {
      e.setCancelled(true);
      return;
    }
    Arena arena = plugin.getArenaRegistry().getArena(attacker);
    if (arena == null) {
      return;
    }
    //we need to set it before the victim die, because of hero character
    if(Role.isRole(Role.MURDERER, userVictim)) {
      arena.setCharacter(Arena.CharacterType.HERO, attacker);
    }
    XSound.ENTITY_PLAYER_DEATH.play(victim.getLocation());
    victim.damage(100.0);


    userAttacker.adjustStatistic("KILLS", 1);
    if(Role.isRole(Role.MURDERER, userAttacker)) {
      userAttacker.adjustStatistic("LOCAL_KILLS", 1);
      arena.adjustContributorValue(Role.DETECTIVE, userAttacker, plugin.getRandom().nextInt(2));
      ArenaUtils.addScore(userAttacker, ArenaUtils.ScoreAction.KILL_PLAYER, 0);
    }

    VersionUtils.sendTitles(victim, new MessageBuilder("IN_GAME_DEATH_SCREEN").asKey().build(), null, 5, 40, 50);

    if(Role.isRole(Role.MURDERER, userVictim)) {
      ArenaUtils.addScore(userAttacker, ArenaUtils.ScoreAction.KILL_MURDERER, 0);
      arena.adjustContributorValue(Role.MURDERER, userAttacker, plugin.getRandom().nextInt(2));
    } else if(plugin.getConfigPreferences().getOption("BOW_KILL_DETECTIVE") && (Role.isRole(Role.ANY_DETECTIVE, userVictim) || Role.isRole(Role.INNOCENT, userVictim))) {
      if(Role.isRole(Role.MURDERER, userAttacker)) {
        VersionUtils.sendTitles(victim, null, new MessageBuilder("IN_GAME_MESSAGES_GAME_END_PLACEHOLDERS_MURDERER_KILLED_YOU").asKey().build(), 5, 40, 5);
      } else {
        VersionUtils.sendTitles(victim, null, new MessageBuilder("IN_GAME_MESSAGES_GAME_END_PLACEHOLDERS_INNOCENT_KILLED_YOU").asKey().build(), 5, 40, 5);
      }

      //if else, murderer killed, so don't kill him :)
      if(Role.isRole(Role.ANY_DETECTIVE, userAttacker) || Role.isRole(Role.INNOCENT, userAttacker)) {
        VersionUtils.sendSubTitle(attacker, new MessageBuilder("IN_GAME_MESSAGES_GAME_END_PLACEHOLDERS_INNOCENT_KILLED_WRONGLY").asKey().build(), 5, 40, 5);

        attacker.damage(100.0);
        ArenaUtils.addScore(userAttacker, ArenaUtils.ScoreAction.INNOCENT_KILL, 0);
        plugin.getRewardsHandler().performReward(attacker, plugin.getRewardsHandler().getRewardType("KILL_DETECTIVE"));
        if(Role.isRole(Role.ANY_DETECTIVE, userAttacker) && arena.lastAliveDetective()) {
          arena.setDetectiveDead(true);
          if(Role.isRole(Role.FAKE_DETECTIVE, userAttacker)) {
            arena.setCharacter(Arena.CharacterType.FAKE_DETECTIVE, null);
          }
          ArenaUtils.dropBowAndAnnounce(arena, victim);
        }
      }
    }
  }

  @EventHandler(priority = EventPriority.HIGH)
  public void onPlayerDie(PlayerDeathEvent e) {
    Player player = e.getEntity();
    Arena arena = plugin.getArenaRegistry().getArena(player);
    if(arena == null) {
      return;
    }
    IUser user = plugin.getUserManager().getUser(player);
    ComplementAccessor.getComplement().setDeathMessage(e, "");
    e.getDrops().clear();
    e.setDroppedExp(0);
    plugin.getCorpseHandler().spawnCorpse(player, arena);
    XPotion.BLINDNESS.buildPotionEffect(3 * 20, 1).apply(player);
    if(arena.getArenaState() == IArenaState.STARTING) {
      return;
    } else if(arena.getArenaState() == IArenaState.ENDING || arena.getArenaState() == IArenaState.RESTARTING) {
      player.getInventory().clear();
      player.setFlying(false);
      player.setAllowFlight(false);
      user.setStatistic("LOCAL_GOLD", 0);
      return;
    }
    if(Role.isRole(Role.MURDERER, user, arena) && arena.lastAliveMurderer()) {
      ArenaUtils.onMurdererDeath(arena);
    }
    if(Role.isRole(Role.ANY_DETECTIVE, user) && arena.lastAliveDetective()) {
      arena.setDetectiveDead(true);
      if(Role.isRole(Role.FAKE_DETECTIVE, user)) {
        arena.setCharacter(Arena.CharacterType.FAKE_DETECTIVE, null);
      }
      ArenaUtils.dropBowAndAnnounce(arena, player);
    }
    user.adjustStatistic("DEATHS", 1);
    user.setSpectator(true);
    VersionUtils.setCollidable(player, false);
    player.setGameMode(GameMode.SURVIVAL);
    user.setStatistic("LOCAL_GOLD", 0);
    ArenaUtils.hidePlayer(player, arena);
    player.setAllowFlight(true);
    player.setFlying(true);
    player.getInventory().clear();
    if(plugin.getConfigPreferences().getOption("HIDE_DEATH")) {
      new MessageBuilder(MessageBuilder.ActionType.DEATH).player(player).arena(arena).sendArena();
    }

    if(arena.getArenaState() != IArenaState.ENDING && arena.getArenaState() != IArenaState.RESTARTING) {
      arena.addDeathPlayer(player);
    }
    //we must call it ticks later due to instant respawn bug
    Bukkit.getScheduler().runTaskLater(plugin, () -> {
      player.spigot().respawn();
      plugin.getSpecialItemManager().addSpecialItemsOfStage(player, SpecialItem.DisplayStage.SPECTATOR);
    }, 5);
  }

  @EventHandler(priority = EventPriority.HIGHEST)
  public void onRespawn(PlayerRespawnEvent event) {
    Player player = event.getPlayer();
    Arena arena = plugin.getArenaRegistry().getArena(player);
    if(arena == null) {
      return;
    }
    if(arena.getArenaState() == IArenaState.STARTING || arena.getArenaState() == IArenaState.WAITING_FOR_PLAYERS) {
      event.setRespawnLocation(arena.getLobbyLocation());
      return;
    }
    if(arena.getArenaState() == IArenaState.RESTARTING) {
      event.setRespawnLocation(arena.getEndLocation());
      return;
    }
    if(arena.getPlayers().contains(player)) {
      IUser user = plugin.getUserManager().getUser(player);
      org.bukkit.Location firstSpawn = arena.getPlayerSpawnPoints().get(0);

      if(player.getLocation().getWorld().equals(firstSpawn.getWorld())) {
        event.setRespawnLocation(player.getLocation());
      } else {
        event.setRespawnLocation(firstSpawn);
      }
      player.setAllowFlight(true);
      player.setFlying(true);
      user.setSpectator(true);
      ArenaUtils.hidePlayer(player, arena);
      VersionUtils.setCollidable(player, false);
      player.setGameMode(GameMode.SURVIVAL);
      player.removePotionEffect(PotionEffectType.NIGHT_VISION);
      user.setStatistic("LOCAL_GOLD", 0);
      plugin.getRewardsHandler().performReward(player, plugin.getRewardsHandler().getRewardType("PLAYER_DEATH"));
    }
  }


  @EventHandler
  public void locatorDistanceUpdate(PlayerMoveEvent event) {
    Player player = event.getPlayer();
    Arena arena = plugin.getArenaRegistry().getArena(player);
    if(arena == null) {
      return;
    }
    IUser user = plugin.getUserManager().getUser(player);
    //skip spectators
    if(user.isSpectator()) {
      return;
    }
    if(arena.getArenaState() == IArenaState.IN_GAME) {
      if(Role.isRole(Role.INNOCENT, user, arena)) {
        if(player.getInventory().getItem(ItemPosition.BOW_LOCATOR.getOtherRolesItemPosition()) != null) {
          ItemStack bowLocator = new ItemStack(Material.COMPASS, 1);
          ItemMeta bowMeta = bowLocator.getItemMeta();
          ComplementAccessor.getComplement().setDisplayName(bowMeta, new MessageBuilder("IN_GAME_MESSAGES_ARENA_LOCATOR_BOW").asKey().player(player).arena(arena).build() + " §7| §a" + (int) Math.round(player.getLocation().distance(player.getCompassTarget())));
          bowLocator.setItemMeta(bowMeta);
          ItemPosition.setItem(user, ItemPosition.BOW_LOCATOR, bowLocator);
          return;
        }
      }
      if(arena.isMurdererLocatorReceived() && Role.isRole(Role.MURDERER, user, arena) && arena.isMurderAlive(player)) {
        ItemStack innocentLocator = new ItemStack(Material.COMPASS, 1);
        ItemMeta innocentMeta = innocentLocator.getItemMeta();
        for(Player p : arena.getPlayersLeft()) {
          Arena playerArena = plugin.getArenaRegistry().getArena(p);
          IUser playerUser = plugin.getUserManager().getUser(p);

          if(Role.isRole(Role.INNOCENT, playerUser, playerArena) || Role.isRole(Role.ANY_DETECTIVE, playerUser, playerArena)) {
            ComplementAccessor.getComplement().setDisplayName(innocentMeta, new MessageBuilder("IN_GAME_MESSAGES_ARENA_LOCATOR_INNOCENT").asKey().player(player).arena(arena).build() + " §7| §a" + (int) Math.round(player.getLocation().distance(p.getLocation())));
            innocentLocator.setItemMeta(innocentMeta);
            ItemPosition.setItem(user, ItemPosition.INNOCENTS_LOCATOR, innocentLocator);
          }
        }
      }
    }
  }

  @EventHandler
  public void onDrop(PlayerDropItemEvent event) {
    if(plugin.getArenaRegistry().getArena(event.getPlayer()) != null && plugin.getArenaRegistry().getArena(event.getPlayer()).getArenaState() == IArenaState.IN_GAME) {
      event.setCancelled(true);
    }
  }

  @EventHandler
  public void onItemMove(InventoryClickEvent event) {
    if(event.getWhoClicked() instanceof Player && plugin.getArenaRegistry().isInArena((Player) event.getWhoClicked())) {
      if(XInventoryView.of(event.getView()).getType() == InventoryType.CRAFTING || XInventoryView.of(event.getView()).getType() == InventoryType.PLAYER) {
        event.setResult(Event.Result.DENY);
      }
    }
  }
}


================================================
FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaManager.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery.arena;

import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import plugily.projects.minigamesbox.api.arena.IArenaState;
import plugily.projects.minigamesbox.api.arena.IPluginArena;
import plugily.projects.minigamesbox.api.user.IUser;
import plugily.projects.minigamesbox.classic.arena.PluginArenaManager;
import plugily.projects.minigamesbox.classic.handlers.language.MessageBuilder;
import plugily.projects.minigamesbox.classic.handlers.language.TitleBuilder;
import plugily.projects.minigamesbox.classic.utils.actionbar.ActionBar;
import plugily.projects.minigamesbox.classic.utils.version.VersionUtils;
import plugily.projects.murdermystery.Main;
import plugily.projects.murdermystery.arena.managers.MapRestorerManager;
import plugily.projects.murdermystery.arena.role.Role;
import plugily.projects.murdermystery.arena.special.SpecialBlock;
import plugily.projects.murdermystery.utils.ItemPosition;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @author Plajer
 * <p>Created at 13.05.2018
 */
public class ArenaManager extends PluginArenaManager {

  private final Main plugin;

  public ArenaManager(Main plugin) {
    super(plugin);
    this.plugin = plugin;
  }

  @Override
  public void joinAttempt(@NotNull Player player, @NotNull IPluginArena arena) {
    Arena pluginArena = (Arena) plugin.getArenaRegistry().getArena(arena.getId());
    if(pluginArena == null) {
      return;
    }
    super.joinAttempt(player, arena);
    ArenaUtils.updateNameTagsVisibility(player);
  }

  @Override
  public void leaveAttempt(@NotNull Player player, @NotNull IPluginArena arena) {
    Arena pluginArena = (Arena) plugin.getArenaRegistry().getArena(arena.getId());
    if(pluginArena == null) {
      return;
    }
    super.leaveAttempt(player, arena);
    if(pluginArena.isDeathPlayer(player)) {
      pluginArena.removeDeathPlayer(player);
    }
    IUser user = plugin.getUserManager().getUser(player);

    int localScore = user.getStatistic("LOCAL_SCORE");
    if(localScore > user.getStatistic("HIGHEST_SCORE")) {
      user.setStatistic("HIGHEST_SCORE", localScore);
    }

    boolean playerHasMurdererRole = Role.isRole(Role.MURDERER, user, arena);
    if(playerHasMurdererRole) {
      pluginArena.removeFromMurdererList(player);
    }

    if(arena.getArenaState() == IArenaState.IN_GAME && !user.isSpectator()) {
      List<Player> playersLeft = arena.getPlayersLeft();

      if(playersLeft.size() > 1) {
        if(playerHasMurdererRole) {
          if(pluginArena.getMurdererList().isEmpty()) {
            List<Player> players = new ArrayList<>();
            for(Player gamePlayer : playersLeft) {
              IUser userGamePlayer = plugin.getUserManager().getUser(gamePlayer);
              if(gamePlayer == player || Role.isRole(Role.ANY_DETECTIVE, userGamePlayer, arena) || Role.isRole(Role.MURDERER, userGamePlayer, arena)) {
                continue;
              }
              players.add(gamePlayer);
            }

            Player newMurderer = players.get(players.size() == 1 ? 0 : ThreadLocalRandom.current().nextInt(players.size()));
            if(newMurderer != null) {
              plugin.getDebugger().debug("A murderer left the game. New murderer: {0}", newMurderer.getName());
              pluginArena.setCharacter(Arena.CharacterType.MURDERER, newMurderer);
              pluginArena.addToMurdererList(newMurderer);
            }

            new TitleBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_ROLE_CHANGE").asKey().player(player).arena(pluginArena).sendArena();
            if(newMurderer != null) {
              new TitleBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_ROLE_MURDERER").asKey().player(player).arena(pluginArena).sendPlayer();
              plugin.getActionBarManager().addActionBar(player, new ActionBar((new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_ROLE_CHANGE")).asKey(), ActionBar.ActionBarType.DISPLAY, 5));
              ItemPosition.setItem(plugin.getUserManager().getUser(newMurderer), ItemPosition.MURDERER_SWORD, plugin.getSwordSkinManager().getRandomSwordSkin(player));
            }
          } else {
            plugin.getDebugger().debug("No new murderer added as there are some");
          }
        } else if(Role.isRole(Role.ANY_DETECTIVE, user, arena)
          && pluginArena.lastAliveDetective()) {
          pluginArena.setDetectiveDead(true);
          if(Role.isRole(Role.FAKE_DETECTIVE, user, arena)) {
            pluginArena.setCharacter(Arena.CharacterType.FAKE_DETECTIVE, null);
          }
          ArenaUtils.dropBowAndAnnounce(pluginArena, player);
        }
        plugin.getCorpseHandler().spawnCorpse(player, pluginArena);
      } else {
        stopGame(false, arena);
      }
    }
  }

  @Override
  public void stopGame(boolean quickStop, @NotNull IPluginArena arena) {
    Arena pluginArena = (Arena) plugin.getArenaRegistry().getArena(arena.getId());
    if(pluginArena == null) {
      return;
    }
    for(SpecialBlock specialBlock : pluginArena.getSpecialBlocks()) {
      if(specialBlock.getArmorStandHologram() != null) {
        specialBlock.getArmorStandHologram().delete();
      }
    }
    ((MapRestorerManager) pluginArena.getMapRestorerManager()).removeBowHolo();
    boolean murderWon = arena.getPlayersLeft().size() == pluginArena.aliveMurderer();
    for(Player player : arena.getPlayersLeft()) {
      if(!quickStop) {
        IUser user = plugin.getUserManager().getUser(player);
        if(Role.isAnyRole(user, arena)) {
          boolean hasDeathRole = Role.isRole(Role.DEATH, user, arena);
          int multiplicator = 1;
          if(!hasDeathRole) {
            multiplicator = arena.getMaximumPlayers();
          }
          pluginArena.adjustContributorValue(Role.MURDERER, user, plugin.getRandom().nextInt(10 * multiplicator));
          pluginArena.adjustContributorValue(Role.DETECTIVE, user, plugin.getRandom().nextInt(10 * multiplicator));
          if(!hasDeathRole) {
            boolean hasMurdererRole = Role.isRole(Role.MURDERER, user, arena);
            if(murderWon || !hasMurdererRole) {
              user.adjustStatistic("WINS", 1);
              plugin.getRewardsHandler().performReward(player, plugin.getRewardsHandler().getRewardType("WIN"));
            } else {
              user.adjustStatistic("LOSES", 1);
              plugin.getRewardsHandler().performReward(player, plugin.getRewardsHandler().getRewardType("LOSE"));
            }
          } else {
            user.adjustStatistic("LOSES", 1);
            plugin.getRewardsHandler().performReward(player, plugin.getRewardsHandler().getRewardType("LOSE"));
          }
        }
      }
    }
    super.stopGame(quickStop, arena);
  }
}


================================================
FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaRegistry.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery.arena;

import org.bukkit.Location;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import plugily.projects.minigamesbox.api.arena.IPluginArena;
import plugily.projects.minigamesbox.classic.arena.PluginArena;
import plugily.projects.minigamesbox.classic.arena.PluginArenaRegistry;
import plugily.projects.minigamesbox.classic.handlers.language.MessageBuilder;
import plugily.projects.minigamesbox.classic.utils.serialization.LocationSerializer;
import plugily.projects.murdermystery.Main;
import plugily.projects.murdermystery.arena.special.SpecialBlock;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Tom on 27/07/2014.
 */
public class ArenaRegistry extends PluginArenaRegistry {

  private final Main plugin;

  public ArenaRegistry(Main plugin) {
    super(plugin);
    this.plugin = plugin;
  }


  @Override
  public PluginArena getNewArena(String id) {
    return new Arena(id);
  }

  @Override
  public boolean additionalValidatorChecks(ConfigurationSection section, PluginArena arena, String id) {
    boolean checks = super.additionalValidatorChecks(section, arena, id);
    if(!checks) return false;

    if(!section.getBoolean(id + ".isdone")) {
      plugin.getDebugger().sendConsoleMsg(new MessageBuilder("VALIDATOR_INVALID_ARENA_CONFIGURATION").asKey().value("NOT VALIDATED").arena(arena).build());
      return false;
    }

    List<Location> playerSpawnPoints = new ArrayList<>();
    for(String loc : section.getStringList(id + ".playerspawnpoints")) {
      org.bukkit.Location serialized = LocationSerializer.getLocation(loc);

      // Ignore the arena if world is not exist at least in spawn points
      if(serialized == null || serialized.getWorld() == null) {
        section.set(id + ".isdone", false);
      } else {
        playerSpawnPoints.add(serialized);
      }
    }

    ((Arena) arena).setSpawnGoldTime(section.getInt(id + ".spawngoldtime", 5));
    ((Arena) arena).setHideChances(section.getBoolean(id + ".hidechances"));
    arena.setArenaOption("MURDERER_DIVIDER",section.getInt(id + ".playerpermurderer", 5));
    arena.setArenaOption("DETECTIVE_DIVIDER",section.getInt(id + ".playerperdetective", 7));
    ((Arena) arena).setGoldVisuals(section.getBoolean(id + ".goldvisuals"));
    ((Arena) arena).setPlayerSpawnPoints(playerSpawnPoints);

    List<Location> goldSpawnPoints = new ArrayList<>();
    for(String loc : section.getStringList(id + ".goldspawnpoints")) {
      goldSpawnPoints.add(LocationSerializer.getLocation(loc));
    }
    ((Arena) arena).setGoldSpawnPoints(goldSpawnPoints);

    List<SpecialBlock> specialBlocks = new ArrayList<>();
    for(String loc : section.getStringList(id + ".mystery-cauldrons")) {
      specialBlocks.add(new SpecialBlock(LocationSerializer.getLocation(loc), SpecialBlock.SpecialBlockType.MYSTERY_CAULDRON));
    }
    for(String loc : section.getStringList(id + ".confessionals")) {
      specialBlocks.add(new SpecialBlock(LocationSerializer.getLocation(loc), SpecialBlock.SpecialBlockType.PRAISE_DEVELOPER));
    }

    specialBlocks.forEach(((Arena) arena)::loadSpecialBlock);
    return true;
  }

  @Override
  public @Nullable Arena getArena(Player player) {
    IPluginArena pluginArena = super.getArena(player);
    if(pluginArena instanceof Arena) {
      return (Arena) pluginArena;
    }
    return null;
  }

  @Override
  public @Nullable Arena getArena(String id) {
    IPluginArena pluginArena = super.getArena(id);
    if(pluginArena instanceof Arena) {
      return (Arena) pluginArena;
    }
    return null;
  }

  public @NotNull List<Arena> getPluginArenas() {
    List<Arena> arenas = new ArrayList<>();
    for(IPluginArena pluginArena : super.getArenas()) {
      if(pluginArena instanceof Arena) {
        arenas.add((Arena) pluginArena);
      }
    }
    return arenas;
  }
}


================================================
FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaUtils.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package plugily.projects.murdermystery.arena;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import plugily.projects.minigamesbox.api.arena.IArenaState;
import plugily.projects.minigamesbox.api.arena.IPluginArena;
import plugily.projects.minigamesbox.api.user.IUser;
import plugily.projects.minigamesbox.classic.arena.PluginArenaUtils;
import plugily.projects.minigamesbox.classic.handlers.language.MessageBuilder;
import plugily.projects.minigamesbox.classic.handlers.language.TitleBuilder;
import plugily.projects.minigamesbox.classic.utils.hologram.ArmorStandHologram;
import plugily.projects.minigamesbox.classic.utils.misc.complement.ComplementAccessor;
import plugily.projects.minigamesbox.classic.utils.version.VersionUtils;
import plugily.projects.minigamesbox.classic.utils.version.xseries.XSound;
import plugily.projects.murdermystery.arena.role.Role;
import plugily.projects.murdermystery.utils.ItemPosition;

/**
 * @author Plajer
 * <p>Created at 13.03.2018
 */
public class ArenaUtils extends PluginArenaUtils {

  private ArenaUtils() {
    super();
  }

  public static void onMurdererDeath(Arena arena) {
    for(Player player : arena.getPlayers()) {
      VersionUtils.sendSubTitle(player, new MessageBuilder("IN_GAME_MESSAGES_GAME_END_PLACEHOLDERS_MURDERER_STOPPED").asKey().build(), 5, 40, 5);
      IUser loopUser = getPlugin().getUserManager().getUser(player);
      if(Role.isRole(Role.INNOCENT, loopUser, arena)) {
        addScore(loopUser, ScoreAction.SURVIVE_GAME, 0);
      } else if(Role.isRole(Role.ANY_DETECTIVE, loopUser, arena)) {
        addScore(loopUser, ScoreAction.WIN_GAME, 0);
        addScore(loopUser, ScoreAction.DETECTIVE_WIN_GAME, 0);
      }
    }
    //we must call it ticks later due to instant respawn bug
    Bukkit.getScheduler().runTask(getPlugin(), () -> getPlugin().getArenaManager().stopGame(false, arena));
  }

  public static void updateInnocentLocator(Arena arena) {
    java.util.List<Player> list = arena.getPlayersLeft();

    if(!arena.isMurdererLocatorReceived()) {
      ItemStack innocentLocator = new ItemStack(Material.COMPASS, 1);
      ItemMeta innocentMeta = innocentLocator.getItemMeta();
      ComplementAccessor.getComplement()
        .setDisplayName(
          innocentMeta,
          new MessageBuilder("IN_GAME_MESSAGES_ARENA_LOCATOR_INNOCENT").asKey().build());
      innocentLocator.setItemMeta(innocentMeta);
      for(Player p : list) {
        if(arena.isMurderAlive(p)) {
          ItemPosition.setItem(getPlugin().getUserManager().getUser(p), ItemPosition.INNOCENTS_LOCATOR, innocentLocator);
        }
      }
      arena.setMurdererLocatorReceived(true);

      for(Player p : list) {
        if(Role.isRole(Role.MURDERER, getPlugin().getUserManager().getUser(p), arena)) {
          continue;
        }
        new TitleBuilder("IN_GAME_MESSAGES_ARENA_LOCATOR_WATCH_OUT")
          .asKey()
          .player(p)
          .arena(arena)
          .sendPlayer();
      }
    }

    for(Player p : list) {
      if(Role.isRole(Role.MURDERER, getPlugin().getUserManager().getUser(p), arena)) {
        continue;
      }
      for(Player murder : arena.getMurdererList()) {
        if(arena.isMurderAlive(murder)) {
          murder.setCompassTarget(p.getLocation());
        }
      }
      break;
    }
  }

  public static void dropBowAndAnnounce(Arena arena, Player victim) {
    if(arena.getBowHologram() != null) {
      return;
    }

    for(Player player : arena.getPlayers()) {
      IUser user = arena.getPlugin().getUserManager().getUser(player);
      if(Role.isRole(Role.MURDERER, user, arena)) {
        continue;
      }
      new TitleBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_BOW_DROPPED").asKey().arena(arena).send(player);
    }

    ArmorStandHologram hologram =
      new ArmorStandHologram(victim.getLocation()).appendItem(new ItemStack(Material.BOW, 1));

    arena.setBowHologram(hologram);
    addBowLocator(arena, hologram.getLocation());
  }

  private static void addBowLocator(Arena arena, Location loc) {
    ItemStack bowLocator = new ItemStack(Material.COMPASS, 1);
    ItemMeta bowMeta = bowLocator.getItemMeta();
    ComplementAccessor.getComplement()
      .setDisplayName(
        bowMeta, new MessageBuilder("IN_GAME_MESSAGES_ARENA_LOCATOR_BOW").asKey().build());
    bowLocator.setItemMeta(bowMeta);
    for(Player p : arena.getPlayersLeft()) {
      IUser user = getPlugin().getUserManager().getUser(p);
      if(Role.isRole(Role.INNOCENT, user, arena)) {
        ItemPosition.setItem(user, ItemPosition.BOW_LOCATOR, bowLocator);
        p.setCompassTarget(loc);
      }
    }
  }

  public static void updateNameTagsVisibility(final Player p) {
    if(!getPlugin().getConfigPreferences().getOption("HIDE_NAMETAGS")) {
      return;
    }
    for(Player players : getPlugin().getServer().getOnlinePlayers()) {
      IPluginArena arena = getPlugin().getArenaRegistry().getArena(players);
      if(arena == null) {
        continue;
      }
      VersionUtils.updateNameTagsVisibility(
        p, players, "MMHide", arena.getArenaState() != IArenaState.IN_GAME);
    }
  }

  public static void addScore(IUser user, ScoreAction action, int amount) {
    XSound.matchXSound(XSound.ENTITY_EXPERIENCE_ORB_PICKUP.parseSound())
      .play(user.getPlayer().getLocation(), 1F, 2F);

    if(action == ScoreAction.GOLD_PICKUP && amount > 1) {
      int score = action.points * amount;
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_BONUS")
        .asKey()
        .player(user.getPlayer())
        .arena(user.getArena())
        .integer(score)
        .value(action.action)
        .sendPlayer();
      user.adjustStatistic("LOCAL_SCORE", score);
      return;
    }

    if(action == ScoreAction.DETECTIVE_WIN_GAME) {
      int innocents = 0;
      Arena arena = (Arena) user.getArena();

      for(Player p : arena.getPlayersLeft()) {
        if(Role.isRole(Role.INNOCENT, getPlugin().getUserManager().getUser(p), arena)) {
          innocents++;
        }
      }

      int overallInnocents = 100 * innocents;

      user.adjustStatistic("LOCAL_SCORE", overallInnocents);
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_BONUS")
        .asKey()
        .player(user.getPlayer())
        .arena(user.getArena())
        .integer(overallInnocents)
        .value(new MessageBuilder(action.action).integer(innocents).build())
        .sendPlayer();
      return;
    }
    String msg =
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_BONUS")
        .asKey()
        .player(user.getPlayer())
        .arena(user.getArena())
        .integer(action.points)
        .value(action.action)
        .build();

    if(action.points < 0) {
      msg = msg.replace("+", "");
    }

    user.adjustStatistic("LOCAL_SCORE", action.points);
    user.getPlayer().sendMessage(msg);
  }

  public enum ScoreAction {
    KILL_PLAYER(
      100,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_KILL_PLAYER")
        .asKey()
        .build()),
    KILL_MURDERER(
      200,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_KILL_MURDERER")
        .asKey()
        .build()),
    GOLD_PICKUP(
      15,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_PICKUP_GOLD")
        .asKey()
        .build()),
    SURVIVE_TIME(
      150,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_SURVIVING_TIME")
        .asKey()
        .build()),
    SURVIVE_GAME(
      200,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_SURVIVING_END")
        .asKey()
        .build()),
    WIN_GAME(
      100, new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_WIN").asKey().build()),
    DETECTIVE_WIN_GAME(
      0,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_DETECTIVE")
        .asKey()
        .build()),
    INNOCENT_KILL(
      -100,
      new MessageBuilder("IN_GAME_MESSAGES_ARENA_PLAYING_SCORE_ACTION_KILL_INNOCENT")
        .asKey()
        .build());

    int points;
    String action;

    ScoreAction(int points, String action) {
      this.points = points;
      this.action = action;
    }

    public int getPoints() {
      return points;
    }

    public String getAction() {
      return action;
    }
  }
}


================================================
FILE: src/main/java/plugily/projects/murdermystery/arena/corpse/Corpse.java
================================================
/*
 * MurderMystery - Find the murderer, kill him and survive!
 * Copyright (c) 2022  Plugily Projects - maintained by Tigerpanzer_02 and contributors
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If no
Download .txt
gitextract_4vxfrib5/

├── .checkstyle/
│   └── checkstyle.xml
├── .editorconfig
├── .github/
│   ├── CHANGELOG.md
│   ├── CONTRIBUTORS.md
│   ├── FUNDING.yml
│   ├── LICENSE.md
│   ├── README.md
│   ├── building/
│   │   ├── build.gradle.kts
│   │   ├── gradlew
│   │   ├── gradlew.bat
│   │   ├── pom.xml
│   │   └── settings.gradle.kts
│   └── workflows/
│       ├── deploy-development.yml
│       └── deploy-master.yml
├── .gitignore
├── gradle/
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── lib/
│   ├── CorpseReborn.jar
│   └── README.md
├── pom.xml
├── pom.xml.versionsBackup
└── src/
    └── main/
        ├── java/
        │   └── plugily/
        │       └── projects/
        │           └── murdermystery/
        │               ├── HookManager.java
        │               ├── Main.java
        │               ├── api/
        │               │   ├── events/
        │               │   │   ├── game/
        │               │   │   │   ├── MurderGameCorpseSpawnEvent.java
        │               │   │   │   └── package-info.java
        │               │   │   └── player/
        │               │   │       └── package-info.java
        │               │   └── package-info.java
        │               ├── arena/
        │               │   ├── Arena.java
        │               │   ├── ArenaEvents.java
        │               │   ├── ArenaManager.java
        │               │   ├── ArenaRegistry.java
        │               │   ├── ArenaUtils.java
        │               │   ├── corpse/
        │               │   │   ├── Corpse.java
        │               │   │   └── Stand.java
        │               │   ├── managers/
        │               │   │   ├── MapRestorerManager.java
        │               │   │   └── ScoreboardManager.java
        │               │   ├── role/
        │               │   │   └── Role.java
        │               │   ├── special/
        │               │   │   ├── SpecialBlock.java
        │               │   │   ├── SpecialBlockEvents.java
        │               │   │   ├── mysterypotion/
        │               │   │   │   ├── MysteryPotion.java
        │               │   │   │   └── MysteryPotionRegistry.java
        │               │   │   └── pray/
        │               │   │       ├── Prayer.java
        │               │   │       └── PrayerRegistry.java
        │               │   └── states/
        │               │       ├── InGameState.java
        │               │       ├── RestartingState.java
        │               │       ├── StartingState.java
        │               │       └── WaitingState.java
        │               ├── boot/
        │               │   ├── AdditionalValueInitializer.java
        │               │   ├── MessageInitializer.java
        │               │   └── PlaceholderInitializer.java
        │               ├── commands/
        │               │   └── arguments/
        │               │       ├── ArgumentsRegistry.java
        │               │       ├── admin/
        │               │       │   ├── RolePassArgument.java
        │               │       │   └── arena/
        │               │       │       └── SpecialBlockRemoverArgument.java
        │               │       └── game/
        │               │           └── RoleSelectorArgument.java
        │               ├── events/
        │               │   └── PluginEvents.java
        │               ├── handlers/
        │               │   ├── CorpseHandler.java
        │               │   ├── lastwords/
        │               │   │   ├── LastWord.java
        │               │   │   └── LastWordsManager.java
        │               │   ├── setup/
        │               │   │   ├── LocationCategory.java
        │               │   │   ├── SetupCategoryManager.java
        │               │   │   ├── SpecificCategory.java
        │               │   │   └── SwitchCategory.java
        │               │   ├── skins/
        │               │   │   └── sword/
        │               │   │       ├── SwordSkin.java
        │               │   │       └── SwordSkinManager.java
        │               │   └── trails/
        │               │       ├── BowTrailsHandler.java
        │               │       ├── Trail.java
        │               │       └── TrailsManager.java
        │               └── utils/
        │                   └── ItemPosition.java
        └── resources/
            ├── arena_selector.yml
            ├── arenas.yml
            ├── bungee.yml
            ├── config.yml
            ├── internal/
            │   ├── data.yml
            │   └── leaderboards_data.yml
            ├── language.yml
            ├── lastwords.yml
            ├── leaderboards.yml
            ├── locales/
            │   └── language_default.yml
            ├── mysql.yml
            ├── permissions.yml
            ├── plugin.yml
            ├── powerups.yml
            ├── rewards.yml
            ├── signs.yml
            ├── skins.yml
            ├── special_blocks.yml
            ├── special_items.yml
            ├── spectator.yml
            ├── stats.yml
            └── trails.yml
Download .txt
SYMBOL INDEX (310 symbols across 44 files)

FILE: src/main/java/plugily/projects/murdermystery/HookManager.java
  class HookManager (line 33) | public class HookManager {
    method HookManager (line 38) | public HookManager(Main plugin) {
    method enableHooks (line 43) | private void enableHooks() {
    method isFeatureEnabled (line 62) | public boolean isFeatureEnabled(HookFeature feature) {
    type HookFeature (line 66) | public enum HookFeature {
      method HookFeature (line 71) | HookFeature(Hook... requiredHooks) {
      method getRequiredHooks (line 75) | public Hook[] getRequiredHooks() {
    type Hook (line 80) | public enum Hook {
      method Hook (line 85) | Hook(String pluginName) {
      method getPluginName (line 89) | public String getPluginName() {

FILE: src/main/java/plugily/projects/murdermystery/Main.java
  class Main (line 45) | public class Main extends PluginMain {
    method Main (line 55) | @TestOnly
    method onEnable (line 60) | @Override
    method initializePluginClasses (line 84) | public void initializePluginClasses() {
    method addPluginMetrics (line 112) | private void addPluginMetrics() {
    method getArenaRegistry (line 125) | @Override
    method getArgumentsRegistry (line 130) | @Override
    method getArenaManager (line 135) | @Override
    method getLastWordsManager (line 140) | public LastWordsManager getLastWordsManager() {
    method getTrailsManager (line 144) | public TrailsManager getTrailsManager() {
    method getSwordSkinManager (line 148) | public SwordSkinManager getSwordSkinManager() {
    method getHookManager (line 152) | public HookManager getHookManager() {
    method getCorpseHandler (line 156) | public CorpseHandler getCorpseHandler() {
    method getSetupCategoryManager (line 160) | @Override

FILE: src/main/java/plugily/projects/murdermystery/api/events/game/MurderGameCorpseSpawnEvent.java
  class MurderGameCorpseSpawnEvent (line 33) | public class MurderGameCorpseSpawnEvent extends PlugilyEvent implements ...
    method MurderGameCorpseSpawnEvent (line 40) | public MurderGameCorpseSpawnEvent(Arena arena, Player player, Location...
    method getHandlerList (line 46) | public static HandlerList getHandlerList() {
    method getHandlers (line 50) | @Override
    method isCancelled (line 55) | @Override
    method setCancelled (line 60) | @Override
    method getPlayer (line 65) | public Player getPlayer() {
    method getLocation (line 69) | public Location getLocation() {

FILE: src/main/java/plugily/projects/murdermystery/arena/Arena.java
  class Arena (line 55) | public class Arena extends PluginArena {
    method Arena (line 79) | public Arena(String id) {
    method init (line 91) | public static void init(Main plugin) {
    method getPlugin (line 95) | @Override
    method getMapRestorerManager (line 101) | @Override
    method setPluginValues (line 107) | private void setPluginValues() {
    method addCorpse (line 110) | public void addCorpse(Corpse corpse) {
    method getCorpses (line 116) | public List<Corpse> getCorpses() {
    method getStands (line 120) | public List<Stand> getStands() {
    method addHead (line 124) | public void addHead(Stand stand) {
    method setSpawnGoldTime (line 128) | public void setSpawnGoldTime(int spawnGoldTime) {
    method setHideChances (line 132) | public void setHideChances(boolean hideChances) {
    method isDetectiveDead (line 136) | public boolean isDetectiveDead() {
    method setDetectiveDead (line 140) | public void setDetectiveDead(boolean detectiveDead) {
    method isMurdererLocatorReceived (line 144) | public boolean isMurdererLocatorReceived() {
    method setMurdererLocatorReceived (line 148) | public void setMurdererLocatorReceived(boolean murdererLocatorReceived) {
    method getGameCharacters (line 152) | public Map<CharacterType, Player> getGameCharacters() {
    method isHideChances (line 156) | public boolean isHideChances() {
    method getGoldSpawned (line 160) | @NotNull
    method getGoldSpawnPoints (line 165) | @NotNull
    method setGoldSpawnPoints (line 170) | public void setGoldSpawnPoints(@NotNull List<Location> goldSpawnPoints) {
    method startGoldVisuals (line 176) | public void startGoldVisuals() {
    method isGoldVisuals (line 194) | public boolean isGoldVisuals() {
    method setGoldVisuals (line 198) | public void setGoldVisuals(boolean goldVisuals) {
    method loadSpecialBlock (line 205) | public void loadSpecialBlock(SpecialBlock block) {
    method getSpecialBlocks (line 229) | public List<SpecialBlock> getSpecialBlocks() {
    method getTotalRoleChances (line 233) | public int getTotalRoleChances(Role role) {
    method isCharacterSet (line 244) | public boolean isCharacterSet(Arena.CharacterType type) {
    method setCharacter (line 248) | public void setCharacter(Arena.CharacterType type, Player player) {
    method setCharacter (line 252) | public void setCharacter(Role role, Player player) {
    method getCharacter (line 256) | @Nullable
    method addToDetectiveList (line 261) | public void addToDetectiveList(Player player) {
    method lastAliveDetective (line 265) | public boolean lastAliveDetective() {
    method aliveDetective (line 269) | public int aliveDetective() {
    method isDetectiveAlive (line 279) | public boolean isDetectiveAlive(Player player) {
    method getDetectiveList (line 288) | public List<Player> getDetectiveList() {
    method addToMurdererList (line 292) | public void addToMurdererList(Player player) {
    method removeFromMurdererList (line 296) | public void removeFromMurdererList(Player player) {
    method lastAliveMurderer (line 301) | public boolean lastAliveMurderer() {
    method aliveMurderer (line 305) | public int aliveMurderer() {
    method isMurderAlive (line 315) | public boolean isMurderAlive(Player player) {
    method getMurdererList (line 324) | public List<Player> getMurdererList() {
    method setBowHologram (line 328) | public void setBowHologram(ArmorStandHologram bowHologram) {
    method getBowHologram (line 337) | public ArmorStandHologram getBowHologram() {
    method addDeathPlayer (line 341) | public void addDeathPlayer(Player player) {
    method removeDeathPlayer (line 345) | public void removeDeathPlayer(Player player) {
    method isDeathPlayer (line 349) | public boolean isDeathPlayer(Player player) {
    method getDeaths (line 353) | public List<Player> getDeaths() {
    method addSpectatorPlayer (line 357) | public void addSpectatorPlayer(Player player) {
    method removeSpectatorPlayer (line 361) | public void removeSpectatorPlayer(Player player) {
    method isSpectatorPlayer (line 365) | public boolean isSpectatorPlayer(Player player) {
    method getPlayerSpawnPoints (line 369) | public List<Location> getPlayerSpawnPoints() {
    method getSpawnGoldTime (line 373) | public int getSpawnGoldTime() {
    method getSpawnGoldTimer (line 377) | public int getSpawnGoldTimer() {
    method setSpawnGoldTimer (line 381) | public void setSpawnGoldTimer(int spawnGoldTimer) {
    method setPlayerSpawnPoints (line 386) | public void setPlayerSpawnPoints(@NotNull List<Location> playerSpawnPo...
    method adjustContributorValue (line 390) | public void adjustContributorValue(Role role, IUser user, int number) {
    method getMurdererContributions (line 397) | public Map<IUser, Integer> getMurdererContributions() {
    method getDetectiveContributions (line 401) | public Map<IUser, Integer> getDetectiveContributions() {
    method getContributorValue (line 405) | public int getContributorValue(Role role, IUser user) {
    method resetContributorValue (line 424) | public void resetContributorValue(Role role, IUser user) {
    type CharacterType (line 428) | public enum CharacterType {

FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java
  class ArenaEvents (line 67) | public class ArenaEvents extends PluginArenaEvents {
    method ArenaEvents (line 71) | public ArenaEvents(Main plugin) {
    method handleIngameVoidDeath (line 77) | @Override
    method onBowShot (line 89) | @EventHandler
    method onArrowPickup (line 112) | @EventHandler
    method onItemPickup (line 120) | @EventHandler
    method onMurdererDamage (line 212) | @EventHandler
    method onArrowDamage (line 280) | @EventHandler
    method onPlayerDie (line 361) | @EventHandler(priority = EventPriority.HIGH)
    method onRespawn (line 416) | @EventHandler(priority = EventPriority.HIGHEST)
    method locatorDistanceUpdate (line 453) | @EventHandler
    method onDrop (line 493) | @EventHandler
    method onItemMove (line 500) | @EventHandler

FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaManager.java
  class ArenaManager (line 45) | public class ArenaManager extends PluginArenaManager {
    method ArenaManager (line 49) | public ArenaManager(Main plugin) {
    method joinAttempt (line 54) | @Override
    method leaveAttempt (line 64) | @Override
    method stopGame (line 132) | @Override

FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaRegistry.java
  class ArenaRegistry (line 40) | public class ArenaRegistry extends PluginArenaRegistry {
    method ArenaRegistry (line 44) | public ArenaRegistry(Main plugin) {
    method getNewArena (line 50) | @Override
    method additionalValidatorChecks (line 55) | @Override
    method getArena (line 102) | @Override
    method getArena (line 111) | @Override
    method getPluginArenas (line 120) | public @NotNull List<Arena> getPluginArenas() {

FILE: src/main/java/plugily/projects/murdermystery/arena/ArenaUtils.java
  class ArenaUtils (line 44) | public class ArenaUtils extends PluginArenaUtils {
    method ArenaUtils (line 46) | private ArenaUtils() {
    method onMurdererDeath (line 50) | public static void onMurdererDeath(Arena arena) {
    method updateInnocentLocator (line 65) | public static void updateInnocentLocator(Arena arena) {
    method dropBowAndAnnounce (line 108) | public static void dropBowAndAnnounce(Arena arena, Player victim) {
    method addBowLocator (line 128) | private static void addBowLocator(Arena arena, Location loc) {
    method updateNameTagsVisibility (line 144) | public static void updateNameTagsVisibility(final Player p) {
    method addScore (line 158) | public static void addScore(IUser user, ScoreAction action, int amount) {
    type ScoreAction (line 214) | public enum ScoreAction {
      method ScoreAction (line 256) | ScoreAction(int points, String action) {
      method getPoints (line 261) | public int getPoints() {
      method getAction (line 265) | public String getAction() {

FILE: src/main/java/plugily/projects/murdermystery/arena/corpse/Corpse.java
  class Corpse (line 30) | public class Corpse {
    method Corpse (line 35) | public Corpse(ArmorStandHologram hologram, Corpses.CorpseData corpseDa...
    method getHologram (line 40) | public ArmorStandHologram getHologram() {
    method getCorpseData (line 44) | public Corpses.CorpseData getCorpseData() {

FILE: src/main/java/plugily/projects/murdermystery/arena/corpse/Stand.java
  class Stand (line 30) | public class Stand {
    method Stand (line 35) | public Stand(ArmorStandHologram hologram, ArmorStand stand) {
    method getHologram (line 40) | public ArmorStandHologram getHologram() {
    method getStand (line 44) | public ArmorStand getStand() {

FILE: src/main/java/plugily/projects/murdermystery/arena/managers/MapRestorerManager.java
  class MapRestorerManager (line 32) | public class MapRestorerManager extends PluginMapRestorerManager {
    method MapRestorerManager (line 36) | public MapRestorerManager(Arena arena) {
    method fullyRestoreArena (line 41) | @Override
    method cleanUpArena (line 48) | public void cleanUpArena() {
    method removeBowHolo (line 62) | public void removeBowHolo() {
    method clearGold (line 69) | public void clearGold() {
    method clearCorpses (line 74) | public void clearCorpses() {

FILE: src/main/java/plugily/projects/murdermystery/arena/managers/ScoreboardManager.java
  class ScoreboardManager (line 36) | public class ScoreboardManager extends PluginScoreboardManager {
    method ScoreboardManager (line 40) | public ScoreboardManager(PluginArena arena) {
    method getScoreboardLines (line 45) | @Override

FILE: src/main/java/plugily/projects/murdermystery/arena/role/Role.java
  type Role (line 33) | public enum Role {
    method isRole (line 72) | public static boolean isRole(Role role, IUser user) {
    method isRole (line 84) | public static boolean isRole(Role role, IUser user, IPluginArena arena) {
    method isAnyRole (line 118) | public static boolean isAnyRole(User user) {
    method isAnyRole (line 131) | public static boolean isAnyRole(IUser user, IPluginArena arena) {

FILE: src/main/java/plugily/projects/murdermystery/arena/special/SpecialBlock.java
  class SpecialBlock (line 30) | public class SpecialBlock {
    method SpecialBlock (line 36) | public SpecialBlock(Location location, SpecialBlockType specialBlockTy...
    method getLocation (line 41) | public Location getLocation() {
    method getSpecialBlockType (line 45) | public SpecialBlockType getSpecialBlockType() {
    method getArmorStandHologram (line 49) | public ArmorStandHologram getArmorStandHologram() {
    method setArmorStandHologram (line 53) | public void setArmorStandHologram(ArmorStandHologram armorStandHologra...
    type SpecialBlockType (line 57) | public enum SpecialBlockType {

FILE: src/main/java/plugily/projects/murdermystery/arena/special/SpecialBlockEvents.java
  class SpecialBlockEvents (line 51) | public class SpecialBlockEvents implements Listener {
    method SpecialBlockEvents (line 55) | public SpecialBlockEvents(Main plugin) {
    method onSpecialBlockClick (line 60) | @EventHandler
    method onCauldronClick (line 101) | private void onCauldronClick(PlayerInteractEvent event) {
    method onPrayerClick (line 130) | private void onPrayerClick(PlayerInteractEvent event) {
    method onPrayLeverClick (line 151) | private void onPrayLeverClick(PlayerInteractEvent event) {
    method onMysteryPotionDrink (line 161) | @EventHandler

FILE: src/main/java/plugily/projects/murdermystery/arena/special/mysterypotion/MysteryPotion.java
  class MysteryPotion (line 28) | public class MysteryPotion {
    method MysteryPotion (line 34) | public MysteryPotion(String name, String subtitle, PotionEffect potion...
    method getName (line 40) | public String getName() {
    method getSubtitle (line 44) | public String getSubtitle() {
    method getPotionEffect (line 48) | public PotionEffect getPotionEffect() {

FILE: src/main/java/plugily/projects/murdermystery/arena/special/mysterypotion/MysteryPotionRegistry.java
  class MysteryPotionRegistry (line 37) | public class MysteryPotionRegistry {
    method init (line 41) | public static void init(Main plugin) {
    method getRandomPotion (line 56) | public static MysteryPotion getRandomPotion() {
    method getMysteryPotions (line 60) | public static List<MysteryPotion> getMysteryPotions() {

FILE: src/main/java/plugily/projects/murdermystery/arena/special/pray/Prayer.java
  class Prayer (line 26) | public class Prayer {
    method Prayer (line 32) | public Prayer(PrayerType prayerType, boolean goodPray, String prayerDe...
    method getPrayerType (line 38) | public PrayerType getPrayerType() {
    method isGoodPray (line 42) | public boolean isGoodPray() {
    method getPrayerDescription (line 46) | public String getPrayerDescription() {
    type PrayerType (line 50) | public enum PrayerType {

FILE: src/main/java/plugily/projects/murdermystery/arena/special/pray/PrayerRegistry.java
  class PrayerRegistry (line 47) | public class PrayerRegistry {
    method PrayerRegistry (line 53) | private PrayerRegistry() {
    method init (line 56) | public static void init(Main plugin) {
    method getRandomPray (line 71) | public static Prayer getRandomPray() {
    method getPrayers (line 75) | public static List<Prayer> getPrayers() {
    method applyRandomPrayer (line 79) | public static void applyRandomPrayer(IUser user) {
    method getBan (line 162) | public static List<Player> getBan() {
    method getRush (line 166) | public static List<Player> getRush() {

FILE: src/main/java/plugily/projects/murdermystery/arena/states/InGameState.java
  class InGameState (line 43) | public class InGameState extends PluginInGameState {
    method handleCall (line 45) | @Override
    method addMurdererSpeed (line 71) | private void addMurdererSpeed(Arena pluginArena) {
    method distributeMurdererSword (line 83) | private void distributeMurdererSword(Arena pluginArena) {
    method spawnGold (line 107) | private void spawnGold(Arena pluginArena) {
    method givePlayerSurviveReward (line 117) | private void givePlayerSurviveReward(Arena pluginArena) {
    method addInnocentLocator (line 129) | private void addInnocentLocator(Arena pluginArena) {
    method spawnSomeGold (line 137) | private void spawnSomeGold(Arena arena) {
    method dropGold (line 160) | private void dropGold(Arena arena, Location location) {

FILE: src/main/java/plugily/projects/murdermystery/arena/states/RestartingState.java
  class RestartingState (line 30) | public class RestartingState extends PluginRestartingState {
    method handleCall (line 32) | @Override

FILE: src/main/java/plugily/projects/murdermystery/arena/states/StartingState.java
  class StartingState (line 46) | public class StartingState extends PluginStartingState {
    method handleCall (line 51) | @Override
    method addRole (line 96) | private void addRole(Arena arena, Role role, Set<Player> playersToSet) {
    method getMaxRolesToSet (line 128) | private void getMaxRolesToSet(Arena arena) {

FILE: src/main/java/plugily/projects/murdermystery/arena/states/WaitingState.java
  class WaitingState (line 9) | public class WaitingState extends PluginWaitingState {
    method handleCall (line 11) | @Override

FILE: src/main/java/plugily/projects/murdermystery/boot/AdditionalValueInitializer.java
  class AdditionalValueInitializer (line 21) | public class AdditionalValueInitializer {
    method AdditionalValueInitializer (line 25) | public AdditionalValueInitializer(Main plugin) {
    method registerConfigOptions (line 35) | private void registerConfigOptions() {
    method registerStatistics (line 46) | private void registerStatistics() {
    method registerPermission (line 62) | private void registerPermission() {
    method registerRewards (line 68) | private void registerRewards() {
    method registerSpecialItems (line 77) | private void registerSpecialItems() {
    method registerArenaOptions (line 81) | private void registerArenaOptions() {
    method getConfigPreferences (line 86) | private IConfigPreferences getConfigPreferences() {
    method getStatsStorage (line 90) | private StatsStorage getStatsStorage() {
    method getPermissionsManager (line 94) | private PermissionsManager getPermissionsManager() {
    method getRewardsHandler (line 98) | private RewardsFactory getRewardsHandler() {
    method getSpecialItemManager (line 102) | private SpecialItemManager getSpecialItemManager() {
    method getArenaOptionManager (line 106) | private ArenaOptionManager getArenaOptionManager() {

FILE: src/main/java/plugily/projects/murdermystery/boot/MessageInitializer.java
  class MessageInitializer (line 18) | public class MessageInitializer {
    method MessageInitializer (line 21) | public MessageInitializer(Main plugin) {
    method registerMessages (line 25) | public void registerMessages() {
    method getMessageManager (line 102) | private MessageManager getMessageManager() {

FILE: src/main/java/plugily/projects/murdermystery/boot/PlaceholderInitializer.java
  class PlaceholderInitializer (line 24) | public class PlaceholderInitializer {
    method PlaceholderInitializer (line 28) | public PlaceholderInitializer(Main plugin) {
    method registerPlaceholders (line 33) | private void registerPlaceholders() {
    method getPlaceholderManager (line 252) | private PlaceholderManager getPlaceholderManager() {
    method getArenaRegistry (line 256) | private ArenaRegistry getArenaRegistry() {
    method getUserManager (line 260) | private IUserManager getUserManager() {

FILE: src/main/java/plugily/projects/murdermystery/commands/arguments/ArgumentsRegistry.java
  class ArgumentsRegistry (line 32) | public class ArgumentsRegistry extends PluginArgumentsRegistry {
    method ArgumentsRegistry (line 34) | public ArgumentsRegistry(Main plugin) {

FILE: src/main/java/plugily/projects/murdermystery/commands/arguments/admin/RolePassArgument.java
  class RolePassArgument (line 39) | public class RolePassArgument {
    method RolePassArgument (line 41) | public RolePassArgument(ArgumentsRegistry registry) {

FILE: src/main/java/plugily/projects/murdermystery/commands/arguments/admin/arena/SpecialBlockRemoverArgument.java
  class SpecialBlockRemoverArgument (line 45) | public class SpecialBlockRemoverArgument {
    method SpecialBlockRemoverArgument (line 46) | public SpecialBlockRemoverArgument(ArgumentsRegistry registry) {

FILE: src/main/java/plugily/projects/murdermystery/commands/arguments/game/RoleSelectorArgument.java
  class RoleSelectorArgument (line 40) | public class RoleSelectorArgument implements Listener {
    method RoleSelectorArgument (line 42) | public RoleSelectorArgument(ArgumentsRegistry registry) {
    method openRolePassMenu (line 56) | public static void openRolePassMenu(Player player, PluginMain plugin) {

FILE: src/main/java/plugily/projects/murdermystery/events/PluginEvents.java
  class PluginEvents (line 50) | public class PluginEvents implements Listener {
    method PluginEvents (line 54) | public PluginEvents(Main plugin) {
    method onSwordThrow (line 59) | @EventHandler
    method createFlyingSword (line 102) | private void createFlyingSword(Player attacker, IUser attackerUser) {
    method killBySword (line 159) | private void killBySword(Arena arena, IUser attackerUser, Player victi...
    method onBlockBreak (line 184) | @EventHandler(priority = EventPriority.HIGH)
    method onBuild (line 205) | @EventHandler(priority = EventPriority.HIGH)

FILE: src/main/java/plugily/projects/murdermystery/handlers/CorpseHandler.java
  class CorpseHandler (line 54) | public class CorpseHandler implements Listener {
    method CorpseHandler (line 62) | public CorpseHandler(Main plugin) {
    method registerLastWord (line 72) | public void registerLastWord(String permission, String lastWord) {
    method spawnCorpse (line 76) | @SuppressWarnings("deprecation")
    method getLastWordsHologram (line 120) | private ArmorStandHologram getLastWordsHologram(Player player) {
    method onCorpseSpawn (line 127) | @EventHandler
    method onCorpseClick (line 137) | @EventHandler

FILE: src/main/java/plugily/projects/murdermystery/handlers/lastwords/LastWord.java
  class LastWord (line 25) | public class LastWord {
    method LastWord (line 30) | public LastWord(String message, String permission) {
    method getMessage (line 35) | public String getMessage() {
    method getPermission (line 39) | public String getPermission() {
    method hasPermission (line 43) | public boolean hasPermission() {

FILE: src/main/java/plugily/projects/murdermystery/handlers/lastwords/LastWordsManager.java
  class LastWordsManager (line 37) | public class LastWordsManager {
    method LastWordsManager (line 43) | public LastWordsManager(Main plugin) {
    method registerLastWords (line 47) | public void registerLastWords(Main plugin) {
    method getRegisteredLastWords (line 57) | public List<LastWord> getRegisteredLastWords() {
    method getHologramTitle (line 61) | public String getHologramTitle() {
    method addLastWord (line 65) | public void addLastWord(LastWord lastWord) {
    method getRandomLastWord (line 69) | public String getRandomLastWord(Player player) {

FILE: src/main/java/plugily/projects/murdermystery/handlers/setup/LocationCategory.java
  class LocationCategory (line 40) | public class LocationCategory extends PluginLocationCategory {
    method addItems (line 41) | @Override

FILE: src/main/java/plugily/projects/murdermystery/handlers/setup/SetupCategoryManager.java
  class SetupCategoryManager (line 12) | public class SetupCategoryManager extends PluginSetupCategoryManager {
    method SetupCategoryManager (line 14) | public SetupCategoryManager(SetupInventory setupInventory) {

FILE: src/main/java/plugily/projects/murdermystery/handlers/setup/SpecificCategory.java
  class SpecificCategory (line 42) | public class SpecificCategory extends PluginSpecificCategory {
    method addItems (line 43) | @Override

FILE: src/main/java/plugily/projects/murdermystery/handlers/setup/SwitchCategory.java
  class SwitchCategory (line 20) | public class SwitchCategory extends PluginSwitchCategory {
    method addItems (line 21) | @Override

FILE: src/main/java/plugily/projects/murdermystery/handlers/skins/sword/SwordSkin.java
  class SwordSkin (line 27) | public class SwordSkin {
    method SwordSkin (line 32) | public SwordSkin(ItemStack itemStack, String permission) {
    method getItemStack (line 37) | public ItemStack getItemStack() {
    method getPermission (line 41) | public String getPermission() {
    method hasPermission (line 45) | public boolean hasPermission() {

FILE: src/main/java/plugily/projects/murdermystery/handlers/skins/sword/SwordSkinManager.java
  class SwordSkinManager (line 39) | public class SwordSkinManager {
    method SwordSkinManager (line 44) | public SwordSkinManager(Main plugin) {
    method registerSwordSkins (line 48) | public void registerSwordSkins(Main plugin) {
    method getRegisteredSwordSkins (line 62) | public List<SwordSkin> getRegisteredSwordSkins() {
    method addSwordSkin (line 66) | public void addSwordSkin(SwordSkin lastWord) {
    method getRandomSwordSkin (line 70) | public ItemStack getRandomSwordSkin(Player player) {
    method removeMurdererSword (line 99) | public void removeMurdererSword(Player player) {
    method getMurdererSword (line 103) | public ItemStack getMurdererSword(Player player) {

FILE: src/main/java/plugily/projects/murdermystery/handlers/trails/BowTrailsHandler.java
  class BowTrailsHandler (line 37) | public class BowTrailsHandler implements Listener {
    method BowTrailsHandler (line 41) | public BowTrailsHandler(Main plugin) {
    method onArrowShoot (line 46) | @EventHandler

FILE: src/main/java/plugily/projects/murdermystery/handlers/trails/Trail.java
  class Trail (line 25) | public class Trail {
    method Trail (line 30) | public Trail(String message, String permission) {
    method getName (line 35) | public String getName() {
    method getPermission (line 39) | public String getPermission() {
    method hasPermission (line 43) | public boolean hasPermission() {

FILE: src/main/java/plugily/projects/murdermystery/handlers/trails/TrailsManager.java
  class TrailsManager (line 37) | public class TrailsManager {
    method TrailsManager (line 43) | public TrailsManager(Main plugin) {
    method registerTrails (line 49) | public void registerTrails() {
    method getRegisteredTrails (line 58) | public List<Trail> getRegisteredTrails() {
    method addTrail (line 62) | public void addTrail(Trail lastWord) {
    method gotAnyTrails (line 66) | public boolean gotAnyTrails(Player player) {
    method getRandomTrail (line 70) | public Trail getRandomTrail(Player player) {

FILE: src/main/java/plugily/projects/murdermystery/utils/ItemPosition.java
  type ItemPosition (line 31) | public enum ItemPosition {
    method ItemPosition (line 39) | ItemPosition(int murdererItemPosition, int otherRolesItemPosition) {
    method addItem (line 52) | public static void addItem(IUser user, ItemPosition itemPosition, Item...
    method setItem (line 79) | public static void setItem(IUser user, ItemPosition itemPosition, Item...
    method removeItem (line 87) | public static void removeItem(IUser user, ItemStack itemStack) {
    method getMurdererItemPosition (line 92) | public int getMurdererItemPosition() {
    method getOtherRolesItemPosition (line 96) | public int getOtherRolesItemPosition() {
Condensed preview — 90 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (419K chars).
[
  {
    "path": ".checkstyle/checkstyle.xml",
    "chars": 13809,
    "preview": "<?xml version=\"1.0\"?>\n\n<!--\n  ~ MurderMystery - Find the murderer, kill him and survive!\n  ~ Copyright (c) 2022  Plugily"
  },
  {
    "path": ".editorconfig",
    "chars": 53,
    "preview": "root = true\n\n[*.java]\nindent_size = 2\ncharset = utf-8"
  },
  {
    "path": ".github/CHANGELOG.md",
    "chars": 28565,
    "preview": "### 2.1.6 Release (17.01.2026)\n* Updated minigamesbox to 1.4.5\n\n### 2.1.5 Release (13.07.2025)\n* Updated minigamesbox to"
  },
  {
    "path": ".github/CONTRIBUTORS.md",
    "chars": 1841,
    "preview": "## This file is dedicated to **Murder Mystery** project's all-time contributors.\n\n## **very outdated, please nag me if y"
  },
  {
    "path": ".github/FUNDING.yml",
    "chars": 17,
    "preview": "patreon: plugily\n"
  },
  {
    "path": ".github/LICENSE.md",
    "chars": 35147,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": ".github/README.md",
    "chars": 3485,
    "preview": "![](https://images.plugily.xyz/banner/display.php?id=MurderMystery)\n\n# Murder Mystery [![Maven Repository](https://maven"
  },
  {
    "path": ".github/building/build.gradle.kts",
    "chars": 2236,
    "preview": "plugins {\n    id(\"signing\")\n    `maven-publish`\n    id (\"com.gradleup.shadow\") version \"9.0.0-beta5\"\n    java\n}\n\nreposit"
  },
  {
    "path": ".github/building/gradlew",
    "chars": 8739,
    "preview": "#!/bin/sh\n\n#\n# Copyright © 2015-2021 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"Lice"
  },
  {
    "path": ".github/building/gradlew.bat",
    "chars": 2872,
    "preview": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \""
  },
  {
    "path": ".github/building/pom.xml",
    "chars": 7961,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!--\n  ~ MurderMystery - Find the murderer, kill him and survive!\n  ~ Copyright ("
  },
  {
    "path": ".github/building/settings.gradle.kts",
    "chars": 35,
    "preview": "rootProject.name = \"murdermystery\"\n"
  },
  {
    "path": ".github/workflows/deploy-development.yml",
    "chars": 1656,
    "preview": "name: Bump and Publish Development Branch\n\non:\n  push:\n    branches: [ development ]\n  workflow_dispatch:\njobs:\n  bump:\n"
  },
  {
    "path": ".github/workflows/deploy-master.yml",
    "chars": 1729,
    "preview": "name: Bump and Publish Master Branch\n\non:\n  pull_request:\n    types:\n      - closed\n  workflow_dispatch:\njobs:\n  bump:\n "
  },
  {
    "path": ".gitignore",
    "chars": 38,
    "preview": "/out/\n/generated/\n/minecraft/\n/target/"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "chars": 251,
    "preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
  },
  {
    "path": "lib/README.md",
    "chars": 513,
    "preview": "_This lib folder contains external libs that are not provided by their author with Maven._\n\n**(The following libraries l"
  },
  {
    "path": "pom.xml",
    "chars": 7952,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!--\n  ~ MurderMystery - Find the murderer, kill him and survive!\n  ~ Copyright ("
  },
  {
    "path": "pom.xml.versionsBackup",
    "chars": 8188,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!--\n  ~ MurderMystery - Find the murderer, kill him and survive!\n  ~ Copyright ("
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/HookManager.java",
    "chars": 2745,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/Main.java",
    "chars": 5656,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/api/events/game/MurderGameCorpseSpawnEvent.java",
    "chars": 2031,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/api/events/game/package-info.java",
    "chars": 900,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/api/events/player/package-info.java",
    "chars": 1570,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/api/package-info.java",
    "chars": 929,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/Arena.java",
    "chars": 12987,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/ArenaEvents.java",
    "chars": 21129,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/ArenaManager.java",
    "chars": 7572,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/ArenaRegistry.java",
    "chars": 4785,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/ArenaUtils.java",
    "chars": 9254,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/corpse/Corpse.java",
    "chars": 1457,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/corpse/Stand.java",
    "chars": 1388,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/managers/MapRestorerManager.java",
    "chars": 3126,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/managers/ScoreboardManager.java",
    "chars": 2159,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/role/Role.java",
    "chars": 4159,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/special/SpecialBlock.java",
    "chars": 1834,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/special/SpecialBlockEvents.java",
    "chars": 7604,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/special/mysterypotion/MysteryPotion.java",
    "chars": 1467,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/special/mysterypotion/MysteryPotionRegistry.java",
    "chars": 2456,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/special/pray/Prayer.java",
    "chars": 1624,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/special/pray/PrayerRegistry.java",
    "chars": 6954,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/states/InGameState.java",
    "chars": 6742,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/states/RestartingState.java",
    "chars": 1533,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/states/StartingState.java",
    "chars": 7305,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/arena/states/WaitingState.java",
    "chars": 885,
    "preview": "package plugily.projects.murdermystery.arena.states;\n\nimport org.bukkit.configuration.file.FileConfiguration;\nimport plu"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/boot/AdditionalValueInitializer.java",
    "chars": 5920,
    "preview": "package plugily.projects.murdermystery.boot;\n\nimport plugily.projects.minigamesbox.api.preferences.IConfigPreferences;\ni"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/boot/MessageInitializer.java",
    "chars": 12225,
    "preview": "\npackage plugily.projects.murdermystery.boot;\n\n\nimport plugily.projects.minigamesbox.classic.handlers.language.Message;\n"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/boot/PlaceholderInitializer.java",
    "chars": 10672,
    "preview": "\npackage plugily.projects.murdermystery.boot;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.entity.Player;\nimport org."
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/commands/arguments/ArgumentsRegistry.java",
    "chars": 1636,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/commands/arguments/admin/RolePassArgument.java",
    "chars": 5073,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/commands/arguments/admin/arena/SpecialBlockRemoverArgument.java",
    "chars": 5407,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/commands/arguments/game/RoleSelectorArgument.java",
    "chars": 5094,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/events/PluginEvents.java",
    "chars": 8467,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/CorpseHandler.java",
    "chars": 6062,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/lastwords/LastWord.java",
    "chars": 1350,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/lastwords/LastWordsManager.java",
    "chars": 3137,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/setup/LocationCategory.java",
    "chars": 2554,
    "preview": "/*\n *\n * MurderMystery\n * Copyright (C) 2021 Plugily Projects - maintained by Tigerpanzer_02, 2Wild4You and contributors"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/setup/SetupCategoryManager.java",
    "chars": 802,
    "preview": "package plugily.projects.murdermystery.handlers.setup;\n\nimport plugily.projects.minigamesbox.classic.handlers.setup.Setu"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/setup/SpecificCategory.java",
    "chars": 4740,
    "preview": "/*\n *\n * MurderMystery\n * Copyright (C) 2021 Plugily Projects - maintained by Tigerpanzer_02, 2Wild4You and contributors"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/setup/SwitchCategory.java",
    "chars": 1250,
    "preview": "package plugily.projects.murdermystery.handlers.setup;\n\nimport org.bukkit.plugin.java.JavaPlugin;\nimport plugily.project"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/skins/sword/SwordSkin.java",
    "chars": 1404,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/skins/sword/SwordSkinManager.java",
    "chars": 3771,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/trails/BowTrailsHandler.java",
    "chars": 2716,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/trails/Trail.java",
    "chars": 1329,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/handlers/trails/TrailsManager.java",
    "chars": 2729,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/java/plugily/projects/murdermystery/utils/ItemPosition.java",
    "chars": 3455,
    "preview": "/*\n * MurderMystery - Find the murderer, kill him and survive!\n * Copyright (c) 2022  Plugily Projects - maintained by T"
  },
  {
    "path": "src/main/resources/arena_selector.yml",
    "chars": 178,
    "preview": "# Don't edit it. But who's stopping you? It's your server!\n# Really, don't edit ;p\n# You edited it, huh? Next time hurt "
  },
  {
    "path": "src/main/resources/arenas.yml",
    "chars": 727,
    "preview": "instances:\n  default:\n    lobbylocation: world,364.0,63.0,-72.0,0.0,0.0\n    startlocation: world,364.0,63.0,-72.0,0.0,0."
  },
  {
    "path": "src/main/resources/bungee.yml",
    "chars": 1006,
    "preview": "# Configuration for Bungeecord support.\n# Remember to enable it in config.yml (Bungee-Mode: true)\n\n# Your bungeecord ser"
  },
  {
    "path": "src/main/resources/config.yml",
    "chars": 8941,
    "preview": "## Thanks for using our plugins! ~Tigerpanzer_02 from Plugily Projects\n#      murdermystery configuration file\n#\n#    Yo"
  },
  {
    "path": "src/main/resources/internal/data.yml",
    "chars": 598,
    "preview": "###############################[IMPORTANT]###############################\n#\n#   Leave this file as it is! It is kinda an"
  },
  {
    "path": "src/main/resources/internal/leaderboards_data.yml",
    "chars": 13,
    "preview": "holograms: {}"
  },
  {
    "path": "src/main/resources/language.yml",
    "chars": 17328,
    "preview": "#    You can translate MurderMystery messages here.\n#             Color codes (&) supported.\n#\n#             Use \\n to m"
  },
  {
    "path": "src/main/resources/lastwords.yml",
    "chars": 567,
    "preview": "Last-Words:\n  Hologram:\n    Title: \"%player%'s last words:\"\n    Content:\n      'default':\n        Message: \"&fPlease res"
  },
  {
    "path": "src/main/resources/leaderboards.yml",
    "chars": 178,
    "preview": "# Don't edit it. But who's stopping you? It's your server!\n# Really, don't edit ;p\n# You edited it, huh? Next time hurt "
  },
  {
    "path": "src/main/resources/locales/language_default.yml",
    "chars": 17648,
    "preview": "###############################[IMPORTANT]###############################\n#\n#   Leave this file as it is! It is kinda an"
  },
  {
    "path": "src/main/resources/mysql.yml",
    "chars": 772,
    "preview": "# MySQL database configuration, you don't need to touch this unless you enabled MySQL support.\n# To enable MySQL support"
  },
  {
    "path": "src/main/resources/permissions.yml",
    "chars": 1506,
    "preview": "# You can create custom players permissions here.\n# Player with your custom permission will get int\n\n# All chances inclu"
  },
  {
    "path": "src/main/resources/plugin.yml",
    "chars": 1209,
    "preview": "name: MurderMystery\nmain: plugily.projects.murdermystery.Main\nauthors: [ PlugilyProjects, Tigerpanzer_02 ]\nversion: ${pr"
  },
  {
    "path": "src/main/resources/powerups.yml",
    "chars": 1332,
    "preview": "## Murder Mystery powerups.yml\n#\nPowerups:\n  Pickup:\n    Chat: \"&a%player% picked the &4Powerup %value% up\"\n  Ended:\n   "
  },
  {
    "path": "src/main/resources/rewards.yml",
    "chars": 3110,
    "preview": "#\n#           Plugily Projects rewards configuration\n#\n#                          Placeholders list:\n#             https"
  },
  {
    "path": "src/main/resources/signs.yml",
    "chars": 178,
    "preview": "# Don't edit it. But who's stopping you? It's your server!\n# Really, don't edit ;p\n# You edited it, huh? Next time hurt "
  },
  {
    "path": "src/main/resources/skins.yml",
    "chars": 150,
    "preview": "Skins:\n  Sword:\n    'default':\n      Material: IRON_SWORD\n    'Stone':\n      Material: STONE_SWORD\n      Permission: \"mu"
  },
  {
    "path": "src/main/resources/special_blocks.yml",
    "chars": 1526,
    "preview": "#\n#             Murder Mystery special blocks configuration\n#\nSpecial-Blocks:\n  Cauldron-Potions:\n    Speed-I:\n      # U"
  },
  {
    "path": "src/main/resources/special_items.yml",
    "chars": 3136,
    "preview": "# Custom special items.\n# You can also add your own special items!\n#\n# Stage: SERVER_JOIN, WAITING_FOR_PLAYERS, ENOUGH_P"
  },
  {
    "path": "src/main/resources/spectator.yml",
    "chars": 2436,
    "preview": "# Make sure to read the wiki for further reference!\n# section keys with DEFAULT_SPEED, SPEED1, SPEED2, SPEED3, SPEED4, A"
  },
  {
    "path": "src/main/resources/stats.yml",
    "chars": 15,
    "preview": "data-version: 1"
  },
  {
    "path": "src/main/resources/trails.yml",
    "chars": 159,
    "preview": "#Add trails that you want to blacklist from all trails(particles)\nBlacklisted-Trails:\n  - \"elder_guardian\"\n  - \"block_cr"
  }
]

// ... and 2 more files (download for full content)

About this extraction

This page contains the full source code of the Plugily-Projects/MurderMystery GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 90 files (388.5 KB), approximately 98.7k tokens, and a symbol index with 310 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!