Skip to content

Commit

Permalink
Fix Api/url Top4Teambr
Browse files Browse the repository at this point in the history
  • Loading branch information
Sage-BR committed Jan 21, 2024
1 parent 1b919fc commit 853bbcf
Show file tree
Hide file tree
Showing 98 changed files with 245 additions and 147 deletions.
6 changes: 4 additions & 2 deletions Freya/L2JDP/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Freya/L2JDP/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/FandC/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/FandC/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/L2JServer/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/L2JServer/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/Mythras/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/Mythras/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/Remorse/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/Remorse/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/Scripts/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/Scripts/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/ScriptsZaken/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/ScriptsZaken/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/Sunrise/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/Sunrise/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions HighFive/aVa/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion HighFive/aVa/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Interlude/Frozen/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Interlude/Frozen/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Interlude/Hellas/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Interlude/Hellas/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Interlude/Lucera/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Interlude/Lucera/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Interlude/Lucera_NO_GUI/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Interlude/Lucera_NO_GUI/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Interlude/aCis/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Interlude/aCis/src/hopzone/eu/util/Url.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Mobius/L2J_Mobius_01.0_Ertheia/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum Url
L2RANKZONE_GLOBAL_URL("https://l2rankzone.com/api/server-stats?apiKey=" + Configurations.L2RANKZONE_API_KEY),
L2RANKZONE_URL("https://l2rankzone.com/"),
TOP4TEAMBR_INDIVIDUAL_URL_IP("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/index.php?a=in&u=" + Configurations.TOP4TEAMBR_USER_NAME + "&ipc=%IP%"),
TOP4TEAMBR_GLOBAL_URL("https://top.4teambr.com/api.php?name=" + Configurations.TOP4TEAMBR_USER_NAME),
TOP4TEAMBR_URL("https://top.4teambr.com/"),
DISCORD("https://discord.gg/Bf26EkYk"),
DENART_DESIGNS("https://www.denart-designs.com"),
Expand Down
6 changes: 4 additions & 2 deletions Mobius/L2J_Mobius_03.0_Helios/src/hopzone/eu/util/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ private void setGlobalVars(String TOPSITE, String s)

if (TOPSITE.equals("TOP4TEAMBR"))
{
split = s.split(":");
if (Configurations.DEBUG)
_log.info(TOPSITE + " trimmed line :" + s.trim());
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", s.trim());
_log.info(TOPSITE + " trimmed line :" + split[0].trim() + ":" + split[1].trim());
if (split[0].contains("votes"))
data.putIfAbsent(TOPSITE.toLowerCase() + "_votes", split[1].trim());
return;
}
}
Expand Down
Loading

0 comments on commit 853bbcf

Please sign in to comment.