Skip to content

lullaby6/auth-data-pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth

Login and Register Authorization

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.

Version: 1.21.X

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

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

License

MIT