Hide Names

Hide Names

2M Downloads

spam console

Mailovich opened this issue ยท 3 comments

commented

console spam
ScreenShot_20190915000654 how to fix it,
how to remove this spam,help pls

commented

On v1.1.8 the config option serverFilePath is poorly named (sorry). It should actually be the directory (folder) in which the file 'hidden.txt' should be stored. So in your case you should remove the hidden.txt from the end of the filepath.


@skmedix This is not a bug, it's a "feature"

serverFilePath = config.get(Configuration.CATEGORY_GENERAL, "serverFilePath",
"", "Where the file 'hidden.txt' should be on a dedicated server - NOTE: all directories are located within the server folder").getString();
and
public void getFilePath() {
if (FMLCommonHandler.instance().getMinecraftServerInstance().getServer().isDedicatedServer()) {
if (!serverFilePath.endsWith("/")) {
if (!fileName.startsWith("/")) {
fileHiddenPlayers = serverFilePath + "/" + fileName;
} else {
fileHiddenPlayers = serverFilePath + fileName;
}
} else {
if (!fileName.startsWith("/")) {
fileHiddenPlayers = serverFilePath + fileName;
} else {
fileHiddenPlayers = serverFilePath.substring(0, serverFilePath.length() - 1) + fileName;
}
}
} else {
if (!clientFilePath.endsWith("/")) {
if (!fileName.startsWith("/")) {
fileHiddenPlayers = clientFilePath + "/" + fileName;
} else {
fileHiddenPlayers = clientFilePath + fileName;
}
} else {
if (!fileName.startsWith("/")) {
fileHiddenPlayers = clientFilePath + fileName;
} else {
fileHiddenPlayers = clientFilePath.substring(0, clientFilePath.length() - 1) + fileName;
}
}
}
if (fileHiddenPlayers.startsWith("/")) {
fileHiddenPlayers = fileHiddenPlayers.substring(1);
}
}

commented

version mod Hide+Names-1.7.10-1.1.8

commented

version 1.7.10