PlanarAlly icon indicating copy to clipboard operation
PlanarAlly copied to clipboard

[FEAT] Server Admin Console commands

Open Airforc opened this issue 4 years ago • 10 comments

Add commands to the server console for the server admin to manage basic functions:

/listaccts (list all player usernames/emails if supplied during registration, maybe list campaigns that accounts are attached to?) /resetpswd (resets account password to default 1234567890 or something in case of forgotten password) /listcampaigns (list all created campaigns and useraccts that are assigned to dm/co-dm role) /delacct (delete user account, maybe needs some logic if useracct is dm of campaign?) /delcamp (deletes campaign) /chgdm (replace current dm acct with new dm account on already created campaign) /campassets (returns information on space used for campaign assets, probably important for checking what campaign is using space) /chgemail (change usernames email account if email function is used)

Airforc avatar Feb 12 '21 16:02 Airforc

@Kruptein if you see this as a valuable feature, I could try to get up a basic python3 tool that does it. Yet, I'm afraid it would probably be outside of the server console, at least at first.

Think of something like ./planarmanager list accs, ./planarmanager list campaigns etc.

dthv avatar Feb 16 '21 08:02 dthv

go for it :)

Kruptein avatar Feb 16 '21 08:02 Kruptein

I personally would just use full command words btw list accounts with maybe a shorthand notation like list accs available too, but these commands are not something you have to do often and rapidly so I think it's better to write them out in full.

Kruptein avatar Feb 16 '21 08:02 Kruptein

@Kruptein @dthv

I have no preference, just something that allows easy maintenance of users/campaigns/assets, some of those commands probably could use additional parameters to specify which account to perform the command on.

I think a separate script is fine, but hopefully over time it gets merged into the main script :)

Airforc avatar Feb 16 '21 22:02 Airforc

Oh, I certainly plan (with the permission of our benevolent developer, of course :wink: ) to open a PR into this repository. With outside of the server console I meant that one would use a different shell than the one PA runs in.

Don't expect progress before March, though. Sorry.

dthv avatar Feb 16 '21 22:02 dthv

@dthv honestly, if I brush up on my python, I might take a crack at it.

Airforc avatar Feb 16 '21 23:02 Airforc

Well, I was about to use this as a mini-project to brush up my python but that shall not hinder you. Feel free. :D

dthv avatar Feb 17 '21 00:02 dthv

Hey there, has any of the two of you been able to do something in this regard? :D

If nobody has the time which is understandable, I can pick it up myself as well

Kruptein avatar Jun 21 '21 09:06 Kruptein

Yes, I've done some preparatory works but nothing to show off. Next time I'll have spare-time to delve back into it will be the first weekend in July, I'm afraid. Sorry. If the issue is critical, I'm happy to give it out of my hands, as I won't deliver a finished product, anyway.

In case it is not critical, though, I'm also very happy to do this and give you the time to do more important stuff. :)

dthv avatar Jun 22 '21 07:06 dthv

I assume after a few months without activity you weren't still working on this, so I took a stab at this for some of the commands in this issue.

It's all part of the existing launch script currently, but wouldn't be to difficult to move into another one if that would be preferred.

CalebKoch avatar Oct 04 '21 06:10 CalebKoch