Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Rudimentery lobby mode, fix linux transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieHarv committed Oct 10, 2021
1 parent ecb153e commit 7256e3d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ var fakeFullscreenOn = false;

const store = new Store();

// Enable transparency on linux systems
if (process.platform !== "win32")
app.commandLine.appendSwitch('disable-gpu');

// Start when app ready
app.on('ready', function()
{
Expand Down Expand Up @@ -768,6 +772,15 @@ function checkForPlayer(lines)// This function is so incredibly inefficent, but
new_api_key = line.split(' [CHAT] Your new API key is ')[1];
// I would just set it here, but we do it after all lines are checked to ensure that someone who did `/api new` twice in a short spam wont cause bugs
};
if (line.includes(" [CHAT] Can't find a player by the name of '!reset'") && (line.indexOf(" [CHAT]") == line.lastIndexOf(" [CHAT]")))
{
playerList = [];
outOfGame = [];
}
else if (line.includes(" [CHAT] Can't find a player by the name of '!") && (line.indexOf(" [CHAT]") == line.lastIndexOf(" [CHAT]")))
{
playerList.push(line.split("[CHAT] Can't find a player by the name of '!")[1].replace("'", ""));
}
var nickDetect = false;
// Detects if we join a new match through [CHAT] Sending you to && [CHAT] (nicked_alias) has joined
if (aliases !== undefined && Object.values(aliases).includes(key_owner))
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypixelstats",
"version": "1.4.2",
"version": "1.4.3",
"description": "Cross-platform and open-source Hypixel stattracker",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 7256e3d

Please sign in to comment.