Skip to content

Latest commit

 

History

History
147 lines (100 loc) · 4.11 KB

README.md

File metadata and controls

147 lines (100 loc) · 4.11 KB

Auth

Latest Discord Modrinth License Issues Code Size Repo Size Stars

bg

📖 Description

Login and Register Authorization

Version: 1.21.X

⚠️ Warning

In vanilla we cannot use /kick, so I use many particles to kick (game crash) a malicious player, but you can disable it by disabling kick in /function auth:settings.

📂 Installation

Move the downloaded file in the path .minecraft/saves/[world]/datapacks

👾 Bugs/Issues

Please report any bug/issues to the Discord Server in the bugs channel, or create a issue in the Github Repostiroy, or a comment in Planet Minecraft.

⌨️ Commands

Player

Register with:

/trigger register set <password>

Login with:

/trigger login set <your password>

Change password with (need to be logged):

/trigger change_password set <new password>

Admin

Reset player:

/execute as <player> run function auth:auth/reset

Reset all player:

/function auth:auth/reset_all_players

Show/get player password:

/gamerule sendCommandFeedback true
/scoreboard players get <player> register
/gamerule sendCommandFeedback false

Disable:

/function auth:disable

Enable:

/datapack enable "file/auth.zip"

Settings

To see the settings menu use the command:

/function auth:settings

Bypass

To give a authentication bypass to a player use the command:

/tag <player> add auth.bypass

and to remove it, use:

/tag <player> remove auth.bypass

Custom messages

You can change the messages and the message color.

List of options
  • please_register_text
  • please_register_color
  • register_success_text
  • register_success_color
  • please_login_text
  • please_login_color
  • login_success_text
  • login_success_color
  • wrong_password_text
  • wrong_password_color
  • password_changed_text
  • password_changed_color

Syntax:

/data modify storage auth:config <option> set value "<value>"

Example for spanish:

/data modify storage auth:config please_register_text set value "Registrese con /trigger register set <contraseña>"
/data modify storage auth:config please_register_color set value "gray"

🪪 License

MIT