# MAStaff

Welcome to MAStaff Documentation

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

a


# Let's get started

First you have to download the plugin from one of this pages

Spigot: [https://www.spigotmc.org/resources/105713/](https://www.spigotmc.org/resources/%E2%9C%A8-mastaff-staff-mode-staff-chat-bungee-spigot.105713/)

builtbybit: <https://builtbybit.com/resources/mastaff-staff-mode-staff-chat.25460/>

Polymart: <https://polymart.org/resource/mastaff.3051>

## Requirements

* Spigot 1.7.10 - 1.20.X Server (2.4.2 =<)
* Spigot 1.8.8, 1.12.2, 1.16.5, 1.17.1, 1.18.2, 1.19.4, 1.20.1 (2.5 or higher)&#x20;
* MariaDB or MySQL for MultiServer
* Bungeecord or Velocity for multiserver sync

> In 2.5 NMS (net.minecraft.server) was included for a better performance granting to the plugin direct acces to mojang code, for that reason now is mandatory to make an implementation for each version of Mineacraft if you really need to use a version that isn't listed in the resource page you can request it in our [discord](https://discord.nookure.com/)


# Databases

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

MAStaff supports MySQL and SQLite databases.

## What database I should use ?

|                   | MySQL | SQLite |
| ----------------- | ----- | ------ |
| Sync staff mode   | ✔     | ❌      |
| Sync vanish       | ✔     | ❌      |
| Global staff mode | ✔     | ❌      |
| Global vanish     | ✔     | ❌      |
| Staff Mode        | ✔     | ✔      |
| Staff Chat        | ✔     | ✔      |

> For greater scalability

## MySQL

To use MySQL you need to have a MySQL or MariaDB server running. You can use a local server or a remote server.

1. First go to the config and change the type from SQLite to MySQL
2. Fill the params with your host database data access, then restart the server

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

## SQLite

1. Change the database type to SQLite and restart the server
2. That's it, you are ready to go


# Permissions

This page include al permissions for the plugin including all modules

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

Permission table

<table><thead><tr><th width="252">Permission</th><th>Explanation</th></tr></thead><tbody><tr><td>mast.staff</td><td>Perm to staff mode</td></tr><tr><td>mast.admin</td><td>Perm to use the /mast command</td></tr><tr><td>mast.dump</td><td>Perm to Dump plugin info</td></tr><tr><td>mast.reload</td><td>Perm to Reload plugin</td></tr><tr><td>mast.staff.gui.punishments</td><td>Punishments gui perm</td></tr><tr><td>mast.*</td><td>Full perms</td></tr><tr><td>mast.staffchat</td><td>Perm to chat in staff chat</td></tr><tr><td>mast.vanish.see</td><td>View players in vanish</td></tr><tr><td>mast.build</td><td>Can destroy blocks in staff mode</td></tr><tr><td>mast.staff.stafflist</td><td>acces to /staff staffList</td></tr><tr><td>mast.freeze</td><td>Perm to freeze players</td></tr><tr><td>mast.freeze.bypass</td><td>Bypass freeze</td></tr><tr><td>mast.staff.join</td><td>Announce join</td></tr><tr><td>mast.staff.leave</td><td>Announce leave</td></tr><tr><td>mast.staff.change</td><td>Announce server change</td></tr><tr><td>mast.staff.notify.join</td><td>View staff join message</td></tr><tr><td>mast.staff.notify.change</td><td>View staff change message</td></tr><tr><td>mast.staff.leave</td><td>View staff leave message</td></tr><tr><td>mast.helpop</td><td>Acces to helpop</td></tr><tr><td>mast.helpop.recive</td><td>Recive helpop messages</td></tr><tr><td>mast.staff.vault</td><td>Permission to open StaffVault</td></tr></tbody></table>


# Permission Setup

Here you will learn how to setup the permissions

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

For me the best permission management plugin is [LuckPerms](https://luckperms.net/)

<figure><img src="https://2930685109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNUm70bIwgTHzcYCpbod%2Fuploads%2FanM4DSkozjFNwRYTp1MM%2FCaptura%20de%20pantalla%202023-04-25%20194042.png?alt=media&amp;token=b7d60d3d-9626-4c0c-afc6-0a3bec1a9537" alt=""><figcaption><p>LuckPerms Website</p></figcaption></figure>

### First Install the plugin

Click the download button

<figure><img src="https://2930685109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNUm70bIwgTHzcYCpbod%2Fuploads%2FIcndVcu3rgyaraKKcJ37%2FCaptura%20de%20pantalla%202023-04-25%20194216.png?alt=media&amp;token=1f556383-6e66-44e1-b95e-2206f7601aa6" alt=""><figcaption></figcaption></figure>

Then select your platform

<figure><img src="https://2930685109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNUm70bIwgTHzcYCpbod%2Fuploads%2FYiNRp4H7AQynUNWRVAyK%2FCaptura%20de%20pantalla%202023-04-25%20194236.png?alt=media&amp;token=10f8ada5-873b-48a7-94fe-a526f46ecf87" alt=""><figcaption></figcaption></figure>

Once you have donwloaded the Jar file place it in your server plugins folder and restart the server

Then in your server type 'lp editor' if you are in a bukkit based server and 'lpb editor' if you are in bungeecord, that will give you a link with an editor session

<figure><img src="https://2930685109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNUm70bIwgTHzcYCpbod%2Fuploads%2F4nETFgcsIeVYGJCxU1nN%2FCaptura%20de%20pantalla%202023-04-25%20194534%20(2).png?alt=media&amp;token=eb57d8ac-46a7-4790-9050-1beb59e77877" alt=""><figcaption></figcaption></figure>

Type mast. and start typing perms to the respective group!

{% hint style="info" %}
If you add the perm mast.\* you will have all the perms
{% endhint %}

You can see the full Permissions list in the [Permission Page](/introduction/permissions)


# Commands

Command list for bukkit

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

|                         |                             |
| ----------------------- | --------------------------- |
| mast \<no arg> \| help  | Shows mast command list     |
| mast dump               | Create a dump link          |
| mast reload             | Reload the plugin           |
| staff                   | Enter in staff mode         |
| staff help              | Shows staff help            |
| staff staffList         | Shows staff list            |
| staff punishments       | Open punishments menu       |
| freeze \<player>        | Freeze/Unfreeze a player    |
| StaffChat/sc \<message> | Send a message to StaffChat |


# Config

Plugin configuration for bukkit/paper/folia/purpur

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

* If you modify something remeber to reload the plugin with **/mast reload**

```yaml
#
#  ███▄ ▄███▓ ▄▄▄        ██████ ▄▄▄█████▓ ▄▄▄        █████▒ █████▒
#  ▓██▒▀█▀ ██▒▒████▄    ▒██    ▒ ▓  ██▒ ▓▒▒████▄    ▓██   ▒▓██   ▒
#  ▓██    ▓██░▒██  ▀█▄  ░ ▓██▄   ▒ ▓██░ ▒░▒██  ▀█▄  ▒████ ░▒████ ░
#  ▒██    ▒██ ░██▄▄▄▄██   ▒   ██▒░ ▓██▓ ░ ░██▄▄▄▄██ ░▓█▒  ░░▓█▒  ░
#  ▒██▒   ░██▒ ▓█   ▓██▒▒██████▒▒  ▒██▒ ░  ▓█   ▓██▒░▒█░   ░▒█░
#  ░ ▒░   ░  ░ ▒▒   ▓▒█░▒ ▒▓▒ ▒ ░  ▒ ░░    ▒▒   ▓▒█░ ▒ ░    ▒ ░
#  ░  ░      ░  ▒   ▒▒ ░░ ░▒  ░ ░    ░      ▒   ▒▒ ░ ░      ░
#  ░      ░     ░   ▒   ░  ░  ░    ░        ░   ▒    ░ ░    ░ ░
#  ░         ░  ░      ░                 ░  ░
#
# This is the Config file for MAStaff Spigot,
# where you can modify and customize the plugin.
#
# Remember to join my Discord server if you need help:
# https://discord.nookure.com/
#
# General configuration for the plugin.
#
Config:
  # The language file you want to use for the plugin messages.
  # Included locales: english.yml and spanish.yml
  language: "english.yml"
  # Enable or disable the debug mode.
  # If enabled, the plugin will send more information about the plugin status.
  debug: false
  # Teleport to the previous location when the player leaves the staff mode.
  teleportBack: true
  # Disable the staff mode on exit.
  disableStaffModeOnExit: false
  # Silent chest opening.
  silentChestOpening: true
# Database configuration for the plugin. With the Bungee version, you must use MariaDB or MySQL.
Database:
  # The type of database you want to use, you can choose between SQLite or MySQL.
  # The MySQL driver also works with MariaDB
  type: 'SQLite'
  # Your database host IP address.
  host: '127.0.0.1'
  # Your database host connection port. Default for MariaDB and MySQL is 3306.
  port: 3306
  # Name of your database. A database server can contain multiple databases.
  database: 'mastaff'
  # Your database host username.
  user: 'mastaff'
  # Your database host password.
  password: 'mastaff'
```


# Glow

How to set-up the glow module

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

### Config  of the module

```yaml
Config:
  # The plugin will get the groups from Vault,
  # make sure you have it installed.
  # Color per group. These are the available colors:
  # BLUE, GREEN, YELLOW, AQUA, DARK_AQUA, DARK_BLUE,
  # DARK_GRAY, DARK_GREEN, DARK_PURPLE, DARK_RED, GOLD,
  # GRAY, LIGHT_PURPLE, WHITE, BLACK
  groups:
    helper:
      color: 'GREEN'
    moderator:
      color: 'DARK_AQUA'
    administrator:
      color: 'RED'
    owner:
      color: 'DARK_RED'
```

Here you will learn to set-up the glow module colors for each group, for this you will need vault, if you doesn't have a tab/scoreboard plugin thats all

## Tab settings

#### Compatibility issue

> Glow color is managed by scoreboard teams, which also handle nametag formatting and player sorting in tablist. Only one plugin can handle teams at a time. Because of that, TAB will prevent glow plugins from assigning players into teams.
>
> From its oficial [wiki](https://github.com/NEZNAMY/TAB/wiki/How-to-make-TAB-compatible-with-glow-plugins#reason-for-compatibility-issue)

You are going to need to go to the **groups.yml** and add this placeholder \`%mastaff\_glow\_color%\`

```yaml
_DEFAULT_:
  tagprefix: '%vault-prefix%%mastaff_glow:color%'
```

This will add the color to the name if you are in staffmode with glow enabled

> Keep in mind glow color is the same as name color. That's because there's only one field handling both values. However, you can bypass this with [Unlimited nametag mode](https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Unlimited-nametag-mode). When enabling it, you'll get access to `customtagname` property, which is really just a part of the final armor stand string and can be freely modified.
>
> From its official [wiki](https://github.com/NEZNAMY/TAB/wiki/How-to-make-TAB-compatible-with-glow-plugins#solution)


# Staff Vault

Here I will explain what is the Staff Vault and its limitations

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

The Staff Vault is an virtual backpack where the items that you get while you are in Staff Mode are stored.

For example if there is an key all and you get the keys in your inv the keys will be stored in the StaffVault inventory, then when you disable de Staff Mode you can do /staff vault to open the Staff Vault


# Placeholders

Here you will find all placeholder api placeholders with they explication and an example output

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

<table><thead><tr><th>Placeholder</th><th width="407.3333333333333">Explanation</th><th>Expected output</th></tr></thead><tbody><tr><td>%mastaff_staffmode%</td><td>Returns if a player is or not in staffmode</td><td>boolean</td></tr><tr><td>%mastaff_staffcount%</td><td>Returns the number of staffs (players with mast.staff permission)</td><td>number</td></tr><tr><td>%mastaff_servercount%</td><td>Returns the servercount - the players that are vanished</td><td>number</td></tr><tr><td>%mastaff_glow:color%</td><td>Returns the color in legacy format of the glow feature</td><td>string</td></tr></tbody></table>


# Paper 1.17 Support

How to install MAStaff in Paper 1.17

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

aIn this version of Paper the library adventure (minimessage) has an old version, in order to make it work with MAStaff you will need to add MiniMessage to the server jar

{% embed url="<https://www.youtube.com/embed/x4hSMpARbh4>" %}

### Useful links

> <https://central.sonatype.com/artifact/net.kyori/adventure-api/versions>
>
> <https://repo1.maven.org/maven2/net/kyori/adventure-api/4.14.0/>


# Commands

Bungeecord commands list

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

|                   |                                |
| ----------------- | ------------------------------ |
| Helpop \<message> | Send a helop message to staffs |
| mastb reload      | Reload the plugin              |
| sc/staffchat      | Send a staff chat message      |


# Config

Plugin configuration for bungeecord/waterfall

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

If you modify something remeber to reload the plugin with **/mastb reload**

```yaml
#
#  ███▄ ▄███▓ ▄▄▄        ██████ ▄▄▄█████▓ ▄▄▄        █████▒ █████▒
#  ▓██▒▀█▀ ██▒▒████▄    ▒██    ▒ ▓  ██▒ ▓▒▒████▄    ▓██   ▒▓██   ▒
#  ▓██    ▓██░▒██  ▀█▄  ░ ▓██▄   ▒ ▓██░ ▒░▒██  ▀█▄  ▒████ ░▒████ ░
#  ▒██    ▒██ ░██▄▄▄▄██   ▒   ██▒░ ▓██▓ ░ ░██▄▄▄▄██ ░▓█▒  ░░▓█▒  ░
#  ▒██▒   ░██▒ ▓█   ▓██▒▒██████▒▒  ▒██▒ ░  ▓█   ▓██▒░▒█░   ░▒█░
#  ░ ▒░   ░  ░ ▒▒   ▓▒█░▒ ▒▓▒ ▒ ░  ▒ ░░    ▒▒   ▓▒█░ ▒ ░    ▒ ░
#  ░  ░      ░  ▒   ▒▒ ░░ ░▒  ░ ░    ░      ▒   ▒▒ ░ ░      ░
#  ░      ░     ░   ▒   ░  ░  ░    ░        ░   ▒    ░ ░    ░ ░
#  ░         ░  ░      ░                 ░  ░
#
# This is the Config file for MAStaff Bungee,
# where you can modify and customize the plugin.
#
# Remember to join my Discord server if you need help:
# https://discord.angelillo15.es/
#
# General configuration for the plugin.
#
Config:
  # The language file you want to use for the plugin messages.
  # Included locales: english.yml and spanish.yml
  language: "english.yml"
  # Enable or disable the debug mode.
  # If enabled, the plugin will send more information about the plugin status.
  debug: false
Helpop:
  # Cooldown in seconds
  cooldown: 30
#
# Server synchronization configuration for the plugin.
# This is used to synchronize the staff mode between bungeecord servers.
# If you don't want to use this feature, you can disable it.
# This feature requires a Redis server and Redis Bungee.
#
Redis:
  # Enable or disable the Redis synchronization.
  enabled: false
  # The host of your Redis server.
  host: "localhost"
  # The port of your Redis server.
  port: 6379
  # The password of your Redis server.
  password: ""
  # The database of your Redis server.
  database: 0
  # The timeout of your Redis server.
  timeout: 2000
  # The pool size of your Redis server.
  poolSize: 8
  # The prefix of your Redis server.
  prefix: "MAStaff"
  # The channel of your Redis server.
  channel: "MAStaff"
  # Identify the server.
  serverID: "p1"
```


# Redis Sync

Here you will learn all about how to config the server sync

###

{% hint style="danger" %}
**This project has reached end of life and is no longer maintained.**

**We recommend you transition to** [**NookureStaff**](https://builtbybit.com/resources/nookurestaff-staffmode-utils.25460/)**, it's free**
{% endhint %}

When to use the Redis Sync ?

You should use the Redis Sync when we have 2 or more BungeeCord instances

### How to setup ?

In the Redis Config section

{% hint style="danger" %}
The serverID must be unique
{% endhint %}

```yaml
Redis:
  # Enable or disable the Redis synchronization.
  enabled: false
  # The host of your Redis server.
  host: "localhost"
  # The port of your Redis server.
  port: 6379
  # The password of your Redis server.
  password: ""
  # The database of your Redis server.
  database: 0
  # The timeout of your Redis server.
  timeout: 2000
  # The pool size of your Redis server.
  poolSize: 8
  # The prefix of your Redis server.
  prefix: "MAStaff"
  # The channel of your Redis server.
  channel: "MAStaff"
  # Identify the server.
  serverID: "p1"
```

Change enable from false -> true and config the database with your credentials and restart the server! Thats all

&#x20;


# Information

MAStaff GitHub documentation

## Do I have the source code when I bought the plugin?

Yes, you can request the acces in the official [discord](https://discord.nookure.com/)

## Branchs

> MAStaff use git branching, this is a feature that allows to developers to diverge from the production version of the code, that means that whe can have different versions of the code without break production branch

<table><thead><tr><th width="258">Branch name</th><th>Info</th></tr></thead><tbody><tr><td>2.x</td><td>Releases</td></tr><tr><td>feature/&#x3C;feature></td><td>Feature in progress</td></tr><tr><td>fix/&#x3C;fix></td><td>Fix in progress</td></tr></tbody></table>

## Modules

MAStaff project have this structure

```
|-- MAStaff
|   |-- MAStaff-API
|   |-- MAStaff-Bukkit
|   |-- MAStaff-Bungee
|   |-- MAStaff-Common
|   |-- MAStaff-Glow
|   |-- MAStaff-Legacy
|   |-- MAStaff-Lite
|   |-- MAStaff-NMS
|   |   |-- NMS-1.12.2_R0
|   |   |-- NMS-1.16.5_R0
|   |   |-- NMS-1.17.1_R0
|   |   |-- NMS-1.18.2_R0
|   |   |-- NMS-1.19.4_R0
|   |   |-- NMS-1.20.1_R0
|   |   |-- NMS-1.8.8_R0
|   |   |-- build
|   |   |-- build.gradle.kts
|   |   `-- src
|   |-- MAStaff-PAPI
|   |-- MAStaff-Punishments
|   |   |-- Punishments-API
|   |   |-- Punishments-Bukkit
|   |   |-- Punishments-Bungee
|   |   |-- Punishments-Velocity
|   |   |-- build
|   |   |-- build.gradle.kts
|   |   `-- src
|   |-- MAStaff-Vanish
|   |-- MAStaff-Velocity
|   |-- README.md
|   |-- build
|   |-- build.gradle.kts
|   |-- gradle
|   |-- gradlew
|   |-- gradlew.bat
|   `-- settings.gradle.kts
```

#### MAStaff-API

This module should be accesible from all the project

#### MAStaff-Bukkit

This module have all bukkit version releated files

#### MAStaff-Bungee

This module have all BungeeCord releated files

#### MAStaff-Common

This module have common listeners and commands between BungeeCord, Velocity and Bukkit

#### MAStaff-Glow

This module is for bukkit, it haves all the glow extension releated files

#### MAStaff-Legacy

This module have listeners for version like < 1.12.2&#x20;

#### MAStaff-Lite

This is the lite version of MAStaff

#### MAStaff-NMS

This module contains all supported versions by MAStaff

#### MAStaff-PAPI

This module contains all placeholders for MAStaff

#### MAStaff-Punishments

This module contains the code of the Punishments system currently in development

#### MAStaff-Vanish

This module contains vanish listeners and vanish player

#### MAStaff-Velocity

This module have all velocity version releated files


