-
Notifications
You must be signed in to change notification settings - Fork 11
whitelist.add() does nothing #30
Comments
Add before import logging
logging.basicConfig(level=logging.DEBUG) Run your python script and send me all output. |
DEBUG:root:Requesting(GET)https://aternos.org/go/ |
@KarsonTheFoxx, >>> whl.add('Karsonthefoxx')
DEBUG:root:Requesting(POST)https://aternos.org/panel/ajax/players/add.php
DEBUG:root:headers={'X-Requested-With': 'XMLHttpRequest'}
DEBUG:root:params={'TOKEN': 'qJFhVPXGQtAGEEPtdSZU', 'SEC': 'rkc9k0ab7n000000:10ihs9uvatn00000'}
DEBUG:root:data={'list': 'whitelist', 'name': 'Karsonthefoxx'}
DEBUG:root:req-cookies={'ATERNOS_SERVER': '0QqkULTj6FINLVgW', 'ATERNOS_SESSION': '2qx19hSszDqVe8EyDqosYhc4cShNT2WATvFDDyu3HlJWGkcmOyNF3dShxSKVR2RMvh7cppKWsxnkOXeelIwv5nwa2TkTZcyuSUhH'}
DEBUG:root:session-cookies=<RequestsCookieJar[<Cookie ATERNOS_LANGUAGE=en for aternos.org/>, <Cookie ATERNOS_SEC_rkc9k0ab7n000000=10ihs9uvatn00000 for aternos.org/>]>
DEBUG:urllib3.connectionpool:https://aternos.org:443 "POST /panel/ajax/players/add.php?TOKEN=qJFhVPXGQtAGEEPtdSZU&SEC=rkc9k0ab7n000000%3A10ihs9uvatn00000 HTTP/1.1" 200 None
DEBUG:root:AternosConnect received: {"success":false}
INFO:root:POST completed with 200 status Aternos responded with |
Although not having permission would explain a lot, it cant be this because the account im using owns this server |
Then... can you try this:
I won't ask you if I could reproduce this problem and check some info by myself. |
And you should log out after posting request data here because it contains your session cookies (using which anyone can log in to your account without password). |
{success: true, entry: {name: "Karsonthefoxx", icon: "fas fa-user-check"}} |
headers
|
payload
|
Thanks. |
alright thank you, is there any way i can a solution right away? even if i have to edit the files myself? also bedrock only recently started calling it allowlist |
also can you reply to this when the updates out? |
To fix it by yourself, add to # atplayers.py
class Lists(enum.Enum):
whl = 'whitelist'
whl_be = 'allowlist' # <-- added
ops = 'ops'
... And then use it in your code instead of from python_aternos import Client, atplayers
at = Client.from_credentials('user', 'pswd')
serv = at.list_servers()[0]
# `Lists.whl_be` instead of `Lists.whl`
lst = serv.players(atplayers.Lists.whl_be)
lst.add('Karsonthefoxx')
lst.remove('Notch')
print(lst.list_players()) |
hey whats the file path to the module? i've been looking around my |
It's |
That path doesnt exist, the closest path is /usr/local/lib/python3.10 and python aternos is not one of the files |
found it in .local/lib/python3.9/site-packages/python_aternos/atplayers.py |
This command literally does nothing it seems
my code
The text was updated successfully, but these errors were encountered: