We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d7da97 commit ebb93a9Copy full SHA for ebb93a9
main.go
@@ -2,13 +2,13 @@ package main
2
3
import (
4
"context"
5
+ "fmt"
6
"github.com/robinbraemer/event"
7
"go.minekube.com/common/minecraft/color"
8
"go.minekube.com/common/minecraft/component"
9
"go.minekube.com/gate/cmd/gate"
10
"go.minekube.com/gate/pkg/edition/java/proxy"
11
"mcauth/codes"
- "strconv"
12
)
13
14
func main() {
@@ -44,7 +44,7 @@ func onLogin(e *proxy.PostLoginEvent) {
44
Content: "Your one time verification code:\n\n",
45
Extra: []component.Component{
46
&component.Text{
47
- Content: strconv.Itoa(code),
+ Content: fmt.Sprintf("%06d", code),
48
S: component.Style{
49
Bold: component.True,
50
Underlined: component.True,
0 commit comments