mirror of
https://github.com/darverdevs/BetterMultiPort.git
synced 2025-01-07 14:34:11 -08:00
Update eagler.js
This commit is contained in:
parent
4f57d1cdad
commit
b7a8a28aef
|
@ -18,8 +18,8 @@ const serverPlayers = ["Welcome to my", "ayunMultiPort-powered", "Eaglercraft se
|
||||||
const serverIcon = "icon.png"; // set to null for no icon. MUST be 64x64. can be a url, if you want...
|
const serverIcon = "icon.png"; // set to null for no icon. MUST be 64x64. can be a url, if you want...
|
||||||
const httpPort = 8080;
|
const httpPort = 8080;
|
||||||
const timeout = 10000;
|
const timeout = 10000;
|
||||||
const changeProtocol = true;
|
const changeProtocol = true; // (set to false if forwarding to a java port of eaglerbungee)
|
||||||
const removeSkin = true;
|
const removeSkin = true; //filter skin packet (set to false if forwarding to a java port of eaglerbungee)
|
||||||
const prefix = "www";
|
const prefix = "www";
|
||||||
|
|
||||||
let iconBuff = null;
|
let iconBuff = null;
|
||||||
|
@ -62,7 +62,7 @@ const httpsrv = require("http").createServer((req,res)=>{
|
||||||
|
|
||||||
const wss = new WebSocketServer({ server: httpsrv });
|
const wss = new WebSocketServer({ server: httpsrv });
|
||||||
|
|
||||||
const motdBase = {data:{motd:serverMotd,cache:true,max:serverMaxPlayers,players:serverPlayers,icon:serverIcon!=null,online:serverOnlinePlayers},vers:"0.2.0",name:serverName,time:0,type:"motd",brand:"Eagtek",uuid:crypto.randomUUID(),cracked:true};
|
const motdBase = {data:{motd:serverMotd,cache:true,max:serverMaxPlayers,players:serverPlayers,icon:serverIcon!=null,online:serverOnlinePlayers},vers:"4.2.0",name:serverName,time:0,type:"motd",brand:"Eagtek",uuid:crypto.randomUUID(),cracked:true};
|
||||||
function getMotd(){
|
function getMotd(){
|
||||||
motdBase.time = Date.now();
|
motdBase.time = Date.now();
|
||||||
return JSON.stringify(motdBase);
|
return JSON.stringify(motdBase);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user