From 3ade4ca277aa2460494325c071a116eb8768d1e3 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Sun, 30 Mar 2025 11:17:03 -0400 Subject: [PATCH] Use ImportExistingPlayer,CreateNewPlayer in user.tmpl --- view/user.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/view/user.tmpl b/view/user.tmpl index 43e18a5..f7f87c0 100644 --- a/view/user.tmpl +++ b/view/user.tmpl @@ -92,9 +92,9 @@ {{ if .AdminView }}{{ .TargetUser.Username }}'s{{ else }}Your{{ end }} account can have an unlimited number of players. {{ end }}

- {{ if or (and .App.Config.AllowCreatingDeletingPlayers (or (lt (len .TargetUser.Players) .MaxPlayerCount) (lt .MaxPlayerCount 0))) .AdminView }} - {{ if .App.Config.RegistrationNewPlayer.Allow }} - {{ if or .User.IsAdmin .App.Config.RegistrationNewPlayer.AllowChoosingUUID }} + {{ if or (and .App.Config.AllowCreatingDeletingPlayers (or (lt (len .TargetUser.Players) .MaxPlayerCount) (lt .MaxPlayerCount 0))) .User.IsAdmin }} + {{ if .App.Config.CreateNewPlayer.Allow }} + {{ if or .User.IsAdmin .App.Config.CreateNewPlayer.AllowChoosingUUID }}

Create a new player

{{ else }}

Create a new player with a random UUID:

@@ -121,7 +121,7 @@ {{ end }} - {{ if .App.Config.RegistrationExistingPlayer.Allow }} + {{ if .App.Config.ImportExistingPlayer.Allow }}

Import a(n) {{ .App.Config.ImportExistingPlayer.Nickname }} player

{{ if .App.Config.ImportExistingPlayer.RequireSkinVerification }}