Lucas Nicodemus
4d46e58865
Prevent users from removing default guest group
...
The default guest group is critical and shouldn't be removed without
either TShock doing something like automatically recreating it if it
doesn't exist, or not having a huge problem if it doesn't exist.
I chose to take the easiest path, preventing users from removing it. In
theory the message gives enough context to imply "okay, go change the
group now."
This should be a relatively small edge case but I wanted to resolve it
while I was here.
2021-06-13 01:09:03 -07:00
stacey
62d15cf445
Add tele potion and conch perms to default
2021-05-16 20:57:26 -04:00
Chris
9423febd0a
Refactor for new configuration
2020-12-03 17:43:10 +10:30
ZakFahey
90f519a1c6
Overwrite the config if any new fields are missing
2020-08-01 10:13:04 -07:00
stacey
5b44c9dd84
Fix formatting...again
2020-06-13 10:41:02 -04:00
stacey
a345587bd0
Add spawnpets perm to trustedadmin & owner
...
Also fix a few formatting inconsistencies that was the result from editing on mobile
2020-06-12 19:18:44 -04:00
moisterrific
470da46511
Add new perms and move more perms to trustedadmin
...
Add new journey mode research perm and move all existing journey perms from owner to trustedadmin. Also added pylon tp to default and added /spawn perm to admin.
2020-06-06 00:28:21 -04:00
Patrikkk
f538ceb793
Adding EmojiHandler to handle an exploit. Adding sendemoji permission and checks.
...
I know, this is not something important, but I'm going through the new packets one by one and adding events developers can work with, patching exploits, and thought this could be a core permission.
2020-06-01 15:24:02 +02:00
Lucas Nicodemus
a0726ad8bb
Merge branch 'general-devel' into patch-7
2020-05-30 00:18:44 -07:00
Lucas Nicodemus
f82ab41a25
Add /sync command to alleviate door related sadness
...
Run /sync if your doors disappear. This will resync your local client
with the server state. For more information, please see the associated
changelog entry.
2020-05-29 21:04:48 -07:00
moisterrific
51d2d9af69
Fix error in previous change
...
there's no setdawn, made the mistake of looking at a prev commit instead of the most current version of permissions
2020-05-26 18:51:15 -04:00
moisterrific
2c384aaaeb
Add journey permissions to trustedadmin and owner
...
hope im doing this right lol
2020-05-26 17:17:01 -04:00
Lucas Nicodemus
70dd72443d
Update copyright to 2019 again
...
Fixes #1658 , most likely.
2019-03-29 17:16:37 -07:00
Lucas Nicodemus
569b350cea
Update to Pryaxis, 2018 part 2
...
If there's one thing I learned in this exercise, it's that letting
people add random python scripts to the repo like gpltext.py that
promise to be easier than find and replace is a bad idea.
2018-01-01 02:20:56 -07:00
Lucas Nicodemus
332e6b2518
Remove Utils.GetGroup().
...
This method duplicates Groups.GetGroupByName().
2017-12-29 08:45:29 -07:00
Lucas Nicodemus
7c1c88bc65
Remove residual evidence of noclip detection
2017-12-26 20:30:40 -07:00
Lucas Nicodemus
bdabf020d2
tshock.admin.createdumps is now a default owner level permission
2017-12-09 15:58:42 -07:00
Lucas Nicodemus
9aaf425330
Modify default permission sets to be more modern
2017-12-03 15:04:50 -07:00
Lucas Nicodemus
0bbd128f13
Implement /su command & default group owner
...
/su elevates you to superadmin for 10 minutes.
Account creation instructions tell you to use the "owner" group.
If you fail to run a command but have the su permission, you're told
that you can override it.
Fixes #1505
2017-12-02 15:07:19 -07:00
ProfessorXZ
639ffb3c7c
Fix GroupManager.RenameGroup() overwriting unsaved config changes
2017-09-28 16:43:20 +02:00
Lucas Nicodemus
ec435e266e
Make our string based error handling more explicit
...
(Please, someone, please, get rid of this).
2017-09-25 12:18:41 -06:00
ProfessorXZ
08e182f59e
All GroupManager.RenameGroup() database calls are now done in a transaction
...
As pointed out by @hakusaro, in order to prevent any damage during the process all database calls need to be done in a transaction. Transactions allow us to rollback from a pending state in case something goes wrong.
2017-09-23 22:41:41 +02:00
ProfessorXZ
02806a2429
Added support for renaming groups. Fixes #1420
2017-09-21 10:51:37 +02:00
Aaron Goulet
ffe4849747
Default Logout Permissions
...
Moved Permissions.canlogout to the default permissions group.
2017-04-13 20:22:59 -07:00
Aaron Goulet
d0ff9efc08
Issue #1371 : Grant logout permissions by default
2017-04-02 09:07:44 -07:00
White
c4a3a9fb67
Updated Copyright for 2017
2017-03-13 12:17:16 +10:30
Lucas Nicodemus
678f6c7cf8
Update to Mintaka (thanks @enerdy)
2016-12-06 17:36:44 -07:00
Lucas Nicodemus
a0c4864567
Removed all obsolete methods from TShock
2016-10-23 06:09:17 -06:00
Adilson Carvalho
49b4effe74
Changed year to 2016 on all GPL headers
2016-10-16 17:06:02 -02:00
Zt Wang
f15fd659e9
Add give permission to group trustedadmin
2016-06-21 13:38:11 +08:00
Lucas Nicodemus
417ffbc740
Updated XML documentation for several methods
2015-04-12 23:39:04 -06:00
Lucas Nicodemus
6c516e5f3d
Add deprecation warning to string AddGroup(name, perms)
...
Can't remove the other AddGroup string method without a deprecation
window of 1 release for this stupid function too.
2015-04-12 22:12:08 -06:00
Lucas Nicodemus
da8ce502bc
Add replacement for string AddGroup
...
Add deprecation warnings to previous methods
2015-03-11 09:10:40 -06:00
Lucas Nicodemus
03d817e0a2
Return more modern error in AddGroup
2015-03-11 09:00:14 -06:00
Lucas Nicodemus
d971db165c
Remove several obsolete shims
...
No need to keep obsolete shims in for several versions of TShock
2015-02-28 20:15:56 -07:00
Lucas Nicodemus
cbce64f1eb
Remove more obsolete code; fix tab/space screwup in TSPlayer
2015-02-28 19:37:06 -07:00
Lucas Nicodemus
04145a4aca
Re-add EnsureExists signature to fix compat with old plugins
...
Fixes #862
2015-02-22 08:43:12 -07:00
Lucas Nicodemus
484ebd6d81
Do not auto-recreate the default groups on startup
2015-02-21 17:13:01 -07:00
Zack
f9bf470b1d
Tick version and update copyright
2015-01-28 15:29:13 -05:00
Zack
fb451c6d49
Update license header for 2014
2014-07-10 21:48:33 -04:00
MarioE
66b0f3899c
Merge /tphere into /tp, add /tppos
2014-06-27 21:53:01 -04:00
MarioE
ea83ff1bda
Redo some permissions
...
Split up tshock.world.causeevents & tshock.world.editspawn and moved
/maxspawns and /spawnrate to the npc node.
2013-10-15 18:23:06 -04:00
Zack Piispanen
e246183108
Add prefix, suffix, color to group command.
...
Fix stupid chat color getter returning the hex color.
2013-10-02 17:47:16 -04:00
Zack Piispanen
7baac27163
Fix canchat
2013-10-01 16:22:32 -04:00
Zack
3020295eca
Update GroupManager.cs
...
Why you fail me github editor?!
2013-09-27 04:58:37 -04:00
Zack
c909453b03
Update GroupManager.cs
...
I broke groups by doing what I did.
2013-09-27 04:56:30 -04:00
MarioE
e1531ab675
Overhauled permissions.
...
Overhauled permissions to use permission nodes, and separated some
permissions into smaller ones (such as cfg into tshock.cfg.maxspawns,
tshock.cfg.spawnrate, etc),
2013-09-23 18:53:36 -04:00
Zack Piispanen
cc70a37af0
spaces: 0 tabs: 1
2013-09-22 23:33:36 -04:00
Zack Piispanen
b7019d8267
change permissions to tshock.xxx and fix default group creating to reference permissions that exist, and not hardcoded strings.
2013-09-22 23:14:14 -04:00
Zack Piispanen
7c0bcceb9f
Added LastAccessed time field and KnownIPs field to the user database. This resulted in some changes everywhere, such as new logic with default groups. Apparently, somehow, the ip based stuff worked even though no ips were set to properly grab the user group. The wrong group was being assigned to new users resulting in a player with 0 permissions. This is now fixed.
2013-09-21 20:57:14 -04:00