merged into upstream
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
# 2smart2wait
|
# 2smart2wait
|
||||||
|
Note: This repo has been merged into the upstream [2bored2wait](https://github.com/themoonisacheese/2bored2wait)
|
||||||
A fork of the popular proxy to wait out 2b2t.org's way too long queue. [2lazy2wait](https://github.com/surprisejedi/2lazy2wait)
|
A fork of the popular proxy to wait out 2b2t.org's way too long queue. [2lazy2wait](https://github.com/surprisejedi/2lazy2wait)
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
|
|||||||
@ -10,15 +10,13 @@ const discord = require('discord.js');
|
|||||||
const {DateTime} = require("luxon");
|
const {DateTime} = require("luxon");
|
||||||
const https = require("https");
|
const https = require("https");
|
||||||
const prompt = require("prompt");
|
const prompt = require("prompt");
|
||||||
const ping = require('minecraft-server-util');
|
const mc_util = require('minecraft-server-util');
|
||||||
const tokens = require('prismarine-tokens');
|
const tokens = require('prismarine-tokens');
|
||||||
const save = "./saveid"
|
const save = "./saveid"
|
||||||
var auth;
|
|
||||||
var stoppedByPlayer = false;
|
var stoppedByPlayer = false;
|
||||||
var timedStart;
|
var timedStart;
|
||||||
var lastQueuePlace;
|
var lastQueuePlace;
|
||||||
var chunkData = [];
|
var chunkData = [];
|
||||||
var c = 0;
|
|
||||||
var notisend = false;
|
var notisend = false;
|
||||||
var loginpacket;
|
var loginpacket;
|
||||||
var id;
|
var id;
|
||||||
@ -274,7 +272,7 @@ function reconnect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reconnectLoop() {
|
function reconnectLoop() {
|
||||||
ping(config.minecraftserver.hostname, config.minecraftserver.port)
|
mc_util.ping(config.minecraftserver.hostname, config.minecraftserver.port)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
startQueuing();
|
startQueuing();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user