- Tags
-
- Tags
- None

DESCRIPTION:
Slack Auth is a Minecraft plugin designed for adding a second layer of security into your staff members account. This plugin creates a bot user that will send a 6 digit pin to a specific Slack/Discord channel. This must be typed in-game. Once entered, the staff member will be authenticated until its IP changes. The Discord bot listens for two commands for banning or unbanning a staff member (only executed by Slack/Discord Administrators) if its account has been compromised.
- Discord and Slack support.
- Data is saved in Redis database.
- Rich config file.
- Multi-server support (I recommend installing it on lobbies).
- Block player from sending commands.
- Block player from breaking/placing blocks.
- Block player from chatting.
COMMANDS:
None
PERMISSIONS:
- auth.require - Force player to require auth.
CONFIGURATION:
Code:
#Type in here number of the server (1 = 1st Lobby // 2 = 2nd Lobby)
server-num: 1
#Create a bot at https://my.slack.com/services/new/bot and paste token here.
slack:
enabled: true
bot-token: "bot-token"
channel: "auth"
#Create a Discord APP in Discord Developer website. Then you will need to create a bot user and get the secret
#token and place it down here. Make sure to install the app in your desired Discord Server.
discord:
enabled: true
bot-token: "bot-token"
channel: "auth"
#Your redis server details.
redis:
host: "localhost"
port: 6379
timeout: 2000
auth: false #Set this to true if you are using a password
password: ""
connection:
proxy: false
url: ""
port: 8080
#Supports color codes (in-game) and message formatting (slack, like *message* for bold or `code` for code).
messages:
authed: "&aYou are now authenticated."
need-auth: "&cYou must authenticate your account!"
bot:
connected-message: "Hey! I am now connected and reading your messages."
disconnected-message: "Bye!"
code-set: "Code for %player% is: %pin%"
code-removed: "Code for %player% has been removed!"
code-exists: "A code for you already exists! Please run \"delcode %player%\""
player-authed: "%player% has been authenticated"
player-banned: "Ok, I have just banned %player%"
player-unbanned: "Ok, I have just unbanned %player%"
#These commands must be executable by console.
commands:
ban: "ban %player% -s Security Reasons"
unban: "pardon %player% -s"
AUTH:
- Staff member types "!auth <player>" in a specified channel.
- Bot sends a 6-digit code.
- Player types that 6-digit code in in-game chat.
- Token is deleted and player is marked as authed until his IP changes.
- Bot sends a message in the specified server alerting that a staff member has been authed.
SOURCE CODE:
Source code is available in my Github repo.