mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-11-09 07:16:05 -08:00
Compare commits
3 Commits
64b731f18c
...
268d435f84
Author | SHA1 | Date | |
---|---|---|---|
|
268d435f84 | ||
|
0ba352e6d3 | ||
|
fb67000c55 |
|
@ -32,7 +32,7 @@ export const config: Config = {
|
|||
http: 100,
|
||||
ws: 100,
|
||||
motd: 100,
|
||||
skins: 100, // adjust as necessary
|
||||
skins: 1000, // adjust as necessary
|
||||
skinsIp: 10000,
|
||||
connect: 100,
|
||||
},
|
||||
|
|
|
@ -38,7 +38,7 @@ export function setSG(svr: ServerGlobals) {
|
|||
export function disconectIdle() {
|
||||
SERVER.players.forEach((client) => {
|
||||
if (client.state == ConnectionState.AUTH && Date.now() - client.lastStatusUpdate > MAX_LIFETIME_AUTH) {
|
||||
client.gameClient.end("Timed out waiting for user to login via Microsoft");
|
||||
client.gameClient.end("Timed out waiting for user to login via Microsoft!");
|
||||
} else if (client.state == ConnectionState.SUCCESS && Date.now() - client.lastStatusUpdate > MAX_LIFETIME_CONNECTED) {
|
||||
client.gameClient.end(Enums.ChatColor.RED + "Please enter the IP of the server you'd like to connect to in chat.");
|
||||
}
|
||||
|
@ -139,15 +139,15 @@ export function sendMessageWarning(client: Client, msg: string) {
|
|||
export function sendMessageLogin(client: Client, url: string, token: string) {
|
||||
client.write("chat", {
|
||||
message: JSON.stringify({
|
||||
text: "Please go to ",
|
||||
text: "Please open ",
|
||||
color: Enums.ChatColor.RESET,
|
||||
extra: [
|
||||
{
|
||||
text: url,
|
||||
text: "this link",
|
||||
color: "gold",
|
||||
clickEvent: {
|
||||
action: "open_url",
|
||||
value: url,
|
||||
value: `${url}/?otc=${token}`,
|
||||
},
|
||||
hoverEvent: {
|
||||
action: "show_text",
|
||||
|
@ -155,22 +155,7 @@ export function sendMessageLogin(client: Client, url: string, token: string) {
|
|||
},
|
||||
},
|
||||
{
|
||||
text: " and login via the code ",
|
||||
},
|
||||
{
|
||||
text: token,
|
||||
color: "gold",
|
||||
hoverEvent: {
|
||||
action: "show_text",
|
||||
value: Enums.ChatColor.GOLD + "Click me to copy to chat!",
|
||||
},
|
||||
clickEvent: {
|
||||
action: "suggest_command",
|
||||
value: token,
|
||||
},
|
||||
},
|
||||
{
|
||||
text: ".",
|
||||
text: " to authenticate via Microsoft.",
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue
Block a user