Skip to content

Commit

Permalink
Update protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 17, 2024
1 parent 9c78743 commit 6fea855
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion opengsq/protocols/raknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def get_status(self) -> dict:
import json

async def main_async():
raknet = Raknet(host='193.70.94.83', port=19132, timeout=5.0)
raknet = Raknet(host='mc.advancius.net', port=19132, timeout=5.0)
status = await raknet.get_status()
print(json.dumps(status, indent=None) + '\n')

Expand Down
2 changes: 1 addition & 1 deletion opengsq/protocols/satisfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def get_status(self) -> dict:
import json

async def main_async():
satisfactory = Satisfactory(host='delta3.ptse.host', port=15777, timeout=5.0)
satisfactory = Satisfactory(host='79.136.0.124', port=15777, timeout=5.0)
status = await satisfactory.get_status()
print(json.dumps(status, indent=None) + '\n')

Expand Down
2 changes: 1 addition & 1 deletion tests/protocols/test_raknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# handler.enable_save = True

# Raknet
test = Raknet(host='193.70.94.83', port=19132)
test = Raknet(host='mc.advancius.net', port=19132)

@pytest.mark.asyncio
async def test_get_status():
Expand Down
2 changes: 1 addition & 1 deletion tests/protocols/test_satisfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# handler.enable_save = True

# Satisfactory
test = Satisfactory(host='delta3.ptse.host', port=15777)
test = Satisfactory(host='79.136.0.124', port=15777)

@pytest.mark.asyncio
async def test_get_status():
Expand Down
19 changes: 11 additions & 8 deletions tests/results/test_raknet/test_get_status.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"edition": "MCPE",
"motd_line_1": "§f§f§l:: §e§lMods§a§lCraft §f§l:: §a1.1-1.19 .",
"protocol_version": 354,
"version": "48",
"num_players": 71,
"max_players": 1501,
"server_uid": "-6650582236557588276",
"motd_line_2": "",
"gamemode": ""
"motd_line_1": "Advancius Network",
"protocol_version": 630,
"version": "1.20.50",
"num_players": 149,
"max_players": 400,
"server_uid": "10878663457117740029",
"motd_line_2": "discord.advancius.net",
"gamemode": "Survival",
"gamemode_numeric": 1,
"port_ipv4": 19132,
"port_ipv6": 0
}

0 comments on commit 6fea855

Please sign in to comment.