Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.43k stars 382 forks source link

Option to remove all restrictions #3013

Open KeeveeKoomoo opened 9 months ago

KeeveeKoomoo commented 9 months ago

I wanna run a crossplay server that plays as if I were hosting a vanilla server. To my knowledge vanilla servers don't allow the use of plugins, and I need a crossplay plugin. I just want everybody who joins to be able to build on spawn, or to summon bosses, etc etc.

I'd like it so I could just run a command and then it would remove all the restrictions added by Tshock.

I saw a similar post saying I could run this command: "group addperm guest tshock.ignore.* tshock.world.modify tshock.partychat tshock.thirdperson tshock.canchat tshock.sendemoji tshock.world.movenpc tshock.npc.startinvasion tshock.npc.summonboss tshock.world.paint tshock.world.converthardmode tshock.tp.rod tshock.tp.pylon tshock.tp.wormhole tshock.npc.hurttown tshock.npc.startdd2 tshock.npc.spawnpets" and simply adding players to the guest group, however this didn't work and we still can't build on the spawn area, and I worry that means we won't be able to summon bosses and thus progress through the game. I also checked out smthn called "Vanillifier" but their github page doesn't have any releases, and to be completely honest, given my past experience with building and cmake and other stuff in that sort of area, I really can't be bothered with it.

ghost commented 9 months ago

There is a plugin called the Vanillafierhttps://github.com/Pryaxis/Vanillafier for TShock but for the cross-play, refer to the official server program as we rely on that also Note: realized you just checked it

[cid:f48ff7f0-79db-415a-963d-c84e0cfaada3]Lucas Mutterhttps://vcard.link/card/Db2O.vcf


From: Kevin @.> Sent: Monday, January 29, 2024 3:18 AM To: Pryaxis/TShock @.> Cc: Subscribed @.***> Subject: [Pryaxis/TShock] Option to remove all restrictions (Issue #3013)

I wanna run a crossplay server that plays as if I were hosting a vanilla server. To my knowledge vanilla servers don't allow the use of plugins, and I need a crossplay plugin. I just want everybody who joins to be able to build on spawn, or to summon bosses, etc etc.

I'd like it so I could just run a command and then it would remove all the restrictions added by Tshock.

I saw a similar post saying I could run this command: "group addperm guest tshock.ignore.* tshock.world.modify tshock.partychat tshock.thirdperson tshock.canchat tshock.sendemoji tshock.world.movenpc tshock.npc.startinvasion tshock.npc.summonboss tshock.world.paint tshock.world.converthardmode tshock.tp.rod tshock.tp.pylon tshock.tp.wormhole tshock.npc.hurttown tshock.npc.startdd2 tshock.npc.spawnpets" and simply adding players to the guest group, however this didn't work and we still can't build on the spawn area, and I worry that means we won't be able to summon bosses and thus progress through the game. I also checked out smthn called "Vanillifier" but their github page doesn't have any releases, and to be completely honest, given my past experience with building and cmake and other stuff in that sort of area, I really can't be bothered with it.

— Reply to this email directly, view it on GitHubhttps://github.com/Pryaxis/TShock/issues/3013, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3WOOIHA3XGROFUL3KH7PLDYQ5LNXAVCNFSM6AAAAABCO7QYW6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDIOJQHE4DKNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ghost commented 9 months ago

Give every role the permission "*" but make sure you have a password so it doesn't go to hell That's my only thought

KeeveeKoomoo commented 9 months ago

so like "group addperm guest *" as an example?

ghost commented 9 months ago

yes

ghost commented 9 months ago

and repeat that with owner too or log out

KeeveeKoomoo commented 9 months ago

Restarted the server after using the command, still can't build on spawn, is this perhaps an issue with the configs rather than the ingame permissions? (Only asking because I don't know how to check myself)

sgkoishi commented 9 months ago

Do not give the * permission - it allows everything, including but not limited to, spamming the server with items and projectiles and bosses, killing every player, destroying every tile, banning you and whomever they want, and turning off your server.

For the spawn protection, /group addperm guest tshock.world.editspawn probably

If it still doesn't work if you did the * or editspawn one, you probably did something wrong - e.g. they are not guest or you made some typo or whatever

ghost commented 9 months ago

That's why i said to make a password


[cid:a6b6e055-b085-43f4-95c5-9a4577d78b6c]Lucas Mutterhttps://vcard.link/card/Db2O.vcf


From: Stargazing Koishi @.> Sent: Monday, January 29, 2024 3:37 AM To: Pryaxis/TShock @.> Cc: Lucas Mutter @.>; Comment @.> Subject: Re: [Pryaxis/TShock] Option to remove all restrictions (Issue #3013)

Do not give the * permission - it allows everything, including but not limited to, spamming the server with items and projectiles and bosses, killing every player, destroying every tile, banning you and whomever they want, and turning off your server.

For the spawn protection, /group addperm guest tshock.world.editspawnhttps://ikebukuro.tshock.co/#/permission-descriptions?id=tshockworldeditspawn probably

If it still doesn't work if you did the * or editspawn one, you probably did something wrong - e.g. they are not guest or you made some typo or whatever

— Reply to this email directly, view it on GitHubhttps://github.com/Pryaxis/TShock/issues/3013#issuecomment-1914207816, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3WOOIEHAIC57Q2K3BQY5HTYQ5NWBAVCNFSM6AAAAABCO7QYW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGIYDOOBRGY. You are receiving this because you commented.Message ID: @.***>

KeeveeKoomoo commented 9 months ago

I'm playing with a friend I trust, I don't care if he has those perms cuz I know he won't abuse them. Thing is, I've added him and I to the group "owner", and gave said group the * permission, and still can't edit spawn. We've restarted the server a couple times now, it's just not working.

Something that's probably noteworthy, despite the fact we are both owners, I can only access the commands via the command prompt. Neither of use can access the commands ingame.

ghost commented 9 months ago

might be a glitch


[cid:e74b0ed6-6e29-427e-b9e8-d7f923ca6820]Lucas Mutterhttps://vcard.link/card/Db2O.vcf


From: Kevin @.> Sent: Monday, January 29, 2024 3:42 AM To: Pryaxis/TShock @.> Cc: Lucas Mutter @.>; Comment @.> Subject: Re: [Pryaxis/TShock] Option to remove all restrictions (Issue #3013)

I'm playing with a friend I trust, I don't care if he has those perms cuz I know he won't abuse them. Thing is, I've added him and I to the group "owner", and gave said group the * permission, and still can't edit spawn. We've restarted the server a couple times now, it's just not working.

— Reply to this email directly, view it on GitHubhttps://github.com/Pryaxis/TShock/issues/3013#issuecomment-1914214953, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3WOOIBPS2TCPOZ7224XIXTYQ5OG7AVCNFSM6AAAAABCO7QYW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGIYTIOJVGM. You are receiving this because you commented.Message ID: @.***>

sgkoishi commented 9 months ago

By Neither of use can access the commands ingame. do you mean you can only see a few (like 10 or 15) commands in the game? If so, can you take a screenshot of your command prompt when you add permissions and set the owner?

KeeveeKoomoo commented 9 months ago

I mean when trying to use any command the game chat simply returns "You do not have access to this command." The command prompt returns "Player tried to execute /group addperm owner *", as I was attempting to make the change ingame to see if it would make a difference.

ghost commented 9 months ago

try to use the console


[cid:a59f035f-a65b-4c95-b543-062a8b0aba9f]Lucas Mutterhttps://vcard.link/card/Db2O.vcf


From: Kevin @.> Sent: Monday, January 29, 2024 3:49 AM To: Pryaxis/TShock @.> Cc: Lucas Mutter @.>; Comment @.> Subject: Re: [Pryaxis/TShock] Option to remove all restrictions (Issue #3013)

I mean when trying to use any command the game chat simply returns "You do not have access to this command." The command prompt returns "Player tried to execute /group addperm owner *", as I was attempting to make the change ingame to see if it would make a difference.

— Reply to this email directly, view it on GitHubhttps://github.com/Pryaxis/TShock/issues/3013#issuecomment-1914225787, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3WOOICBFYPCJ5S3OVEHWU3YQ5PA7AVCNFSM6AAAAABCO7QYW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGIZDKNZYG4. You are receiving this because you commented.

KeeveeKoomoo commented 9 months ago

I did use the console I already said here that it hasn't made a difference. Unless you're not referring to the server command prompt window.

I'm playing with a friend I trust, I don't care if he has those perms cuz I know he won't abuse them. Thing is, I've added him and I to the group "owner", and gave said group the * permission, and still can't edit spawn. We've restarted the server a couple times now, it's just not working.

Something that's probably noteworthy, despite the fact we are both owners, I can only access the commands via the command prompt. Neither of use can access the commands ingame.

ghost commented 9 months ago

try to use super admin


From: Kevin @.> Sent: Monday, January 29, 2024 3:54 AM To: Pryaxis/TShock @.> Cc: Lucas Mutter @.>; Comment @.> Subject: Re: [Pryaxis/TShock] Option to remove all restrictions (Issue #3013)

I did use the console I already said here that it hasn't made a difference. Unless you're not referring to the server command prompt window.

I'm playing with a friend I trust, I don't care if he has those perms cuz I know he won't abuse them. Thing is, I've added him and I to the group "owner", and gave said group the * permission, and still can't edit spawn. We've restarted the server a couple times now, it's just not working.

Something that's probably noteworthy, despite the fact we are both owners, I can only access the commands via the command prompt. Neither of use can access the commands ingame.

— Reply to this email directly, view it on GitHubhttps://github.com/Pryaxis/TShock/issues/3013#issuecomment-1914233911, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3WOOIHQY23T6DRTDXA7CY3YQ5PULAVCNFSM6AAAAABCO7QYW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGIZTGOJRGE. You are receiving this because you commented.

sgkoishi commented 9 months ago

Run the group addperm guest tshock.world.editspawn with your command prompt (not in the game). And, no need to restart, try if you can edit the spawn in the game. If so, run the long command you posted with your command prompt. If it doesn't work, take a screenshot of your command prompt showing these steps and their outputs.

KeeveeKoomoo commented 9 months ago

image Just to make clear that it has given the same output for every prior command too

ghost commented 9 months ago

set you both to the "superadmin" group


[cid:aedf6c9f-590a-4f71-9b06-70a7f25fe938]Lucas Mutterhttps://vcard.link/card/Db2O.vcf


From: Kevin @.> Sent: Monday, January 29, 2024 4:05 AM To: Pryaxis/TShock @.> Cc: Lucas Mutter @.>; Comment @.> Subject: Re: [Pryaxis/TShock] Option to remove all restrictions (Issue #3013)

image.png (view on web)https://github.com/Pryaxis/TShock/assets/87249339/55f76d9f-a6b5-4607-92b5-e2b20193712b Just to make clear that it has given the same output for every prior command too

— Reply to this email directly, view it on GitHubhttps://github.com/Pryaxis/TShock/issues/3013#issuecomment-1914252126, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3WOOIEBFIC23PAGK6H6Y5LYQ5Q4XAVCNFSM6AAAAABCO7QYW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGI2TEMJSGY. You are receiving this because you commented.Message ID: @.***>

sgkoishi commented 9 months ago

Run /ui your_player_name from the command prompt and check the output.

KeeveeKoomoo commented 9 months ago

it says user already exists, I have tried that before when owner didn't work, I assume that they are functionally the same group

KeeveeKoomoo commented 9 months ago

Run /ui your_player_name from the command prompt and check the output.

It just returned my IP address which I obviously won't send as a screenshot

sgkoishi commented 9 months ago

Set user group (/user group user_name new_group) never outputs user exists. You are probably creating new users (/user add).

/ui will show your user group if you are logged in - and if you didn't see it, you are in the guest group.

KeeveeKoomoo commented 9 months ago

I think I may have misunderstood how to use the group command, I have made myself an owner, and now I can edit the spawn area. Still can't use commands ingame but at this point I'm not fussed about that.

KeeveeKoomoo commented 9 months ago

I think the issue has been solved, my main concern however is boss summoning, and we aren't at a stage in the game where we can summon a boss yet. Could I close the issue and reopen it, or that not how github works?

sgkoishi commented 9 months ago

Both user group (set group) and user add (create user) require the user to log in. When you are not logged in, you are still a guest, not an owner (you didn't authenticate as owner by /login).

You can run the long command you posted (via command prompt), or check the list here and manually add whatever you want to guest: group addperm guest permission_you_want

You can use /item or /give to get a boss summoning item (remember to create an alt account in the game to test if everyone can summon it!)

You can close and reopen the issue when you want, and chat official TShock Discord server.