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 7c51996 commit 129223aCopy full SHA for 129223a
scripts/modules/minecraft/lib/utils/others.js
@@ -58,7 +58,7 @@ function findTag({ entityRequirements } = {}, { searchTag }) {
58
function getScore({ objective }, { entityRequirements, minimum, maximum } = {}) {
59
const data = runCommand(`scoreboard players test @e${entityRequirements ? `[${entityRequirements.replace(/\]|\[/g, '')}]` : ''} ${objective} ${minimum ? minimum : '*'} ${maximum ? maximum : '*'}`);
60
if(data.error) return;
61
- return data.result.statusMessage.match(/\d+/)[0];
+ return data.result.statusMessage.match(/-?\d+/)[0];
62
};
63
/**
64
* @function getPlayers() - Get an array of online players in the world
0 commit comments