Commit graph

49 commits

Author SHA1 Message Date
Vinayak Agarwal
4bdae494cb Add script for GPL 2016-10-17 03:31:35 +05:30
Enerdy
aa419283a9 Add PlayerPermission hook, replace p.Group.HasPermission by p.HasPermission everywhere possible. 2016-01-11 14:37:02 +00: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
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
5e74037a3a Remove any sort of Raptor interconnection -- should have been in some sort of separate plugin anyhow 2014-06-25 01:22:32 -04:00
MarioE
2f9fbad5bc Return "*" for superadmin permissions 2013-11-02 13:25:38 -04:00
MarioE
cf1feb9357 Fix several bugs 2013-10-31 23:35:42 -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
6fd6bc9b9c Fix Added text to godmode
Fixed negated permissions
2013-10-01 04:56:18 -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
Lucas Nicodemus
ae7ab5f234 Updated copyright information to point to 2013. 2013-08-22 21:51:17 -06:00
Lucas Nicodemus
9470e20423 Line ending normalization to CRLF (Windows) 2013-08-22 21:17:32 -06:00
CoderCow
33091035c0 -Improved group loading from the database:
--TShock will now attempt to load any available valid group data even if there are invalid records and will also report proper errors / warnings.
--"superadmin" is now a reserved group name.
--Groups with parents causing infinite parent loops, invaild parents, or parenting theirselfes will have their parent group reset.
--Double definitions of groups with the same name are no longer allowed.
--Group instances are now tried to be preserved instead of being recreated during a reload of the group data.

-Added command "/group parent" to get and set the parent of groups.
-REST Endpoint "/v2/groups/create" will no longer allow creating groups having theirselfes as parent.
-REST Endpoint "/v2/groups/update" will no longer allow setting a group's parent to theirself or setting a parent group resulting in an infinite parent loop.
-This commit should fix #482.
2013-07-27 22:02:29 +02:00
Zack
6fdada2e7e Fix chat color default bug
Set to correct format for chat colors
Fixes #481
Closes #481
2013-05-22 16:46:34 -03:00
MarioE
5b032f277d Match the god damned existing tab format 2012-08-20 10:33:54 -04:00
MarioE
25752ff710 Fix an oversight 2012-08-19 21:16:16 -04:00
MarioE
e22f3e03c4 Permission nodes 2012-08-19 20:47:30 -04:00
Zack Piispanen
99185c8c37 Removed unused variable.. Added some more docs. 2012-06-01 13:34:15 -04:00
Lucas Nicodemus
8d5cdf04a8 Update copyright to reflect actual year date. 2012-04-24 12:45:46 -06:00
stevenh
b6b5a2f1ca Added compatibiliy shims for old method signatures without which existing compiled plugins will error with missing method ...
This fixes #410
2012-02-24 11:37:43 +00:00
stevenh
41dbd31aac Converted all files to LF line endings 2012-02-21 15:56:34 +00:00
stevenh
4c09e7b66f Potential fix for #390 fixing the return of group.Permissions listing permissions as negated permissions
Added TotalPermissions method to get the combined total permissions as used for HasPermissions
Added totalpermissions to output of /v2/group/read output in RestAPI
2012-02-20 10:58:46 +00:00
stevenh
098363a9cc Fixed internal object and DB inconsitencies for modified default groups
Fixed console errors for failed parent dependencies of default groups that already exist caused by fb11729547 consistency fixes

Made GroupManager.groups readonly to discourage overwriting it. Could still do with better encapsulation to prevent consistency problems if modified externally.

Added UpdateGroup method to GroupManager

Refactored Group handling of permissions and chatcolor to prevent inconsistent data
Notably:-
* AddPermission now does the right thing when passed the string "!permission"
* Converted ChatColor from method to getter / setter

Added RemovePermission to Group

Refactored GroupManager Permissions handling to ensure consistent data between DB and internal objects

Removed redundent AddGroup method in preference to a default value on the main method

Correct some tabs vs spaces

Added ParentName helper to Group

Fixed inverted parameters to error "Invalid parent {0} for group {1}"
2012-02-16 11:23:39 +00:00
stevenh
c7a9ee32cd Added ChatColor helper to Group useful for output methods 2012-02-13 22:23:01 +00:00
Lucas Nicodemus
bf9d0137f1 Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
Lucas Nicodemus
c6abbfe4d2 ReSharper code reformat to match naming conventions and stuff 2011-12-30 14:38:04 -07:00
Zidonuke
33d304a4fa Finish new prefix and suffix system for groups.
Removed admin chat stuff and will now use prefix/suffix's
2011-12-22 17:41:47 -05:00
Zidonuke
8cf298ad85 Save player data on backups
Server Side Inventory security improvements, blocking trashcan and "banks" items
CovertCorruption is now more thorough.
PvP Modes, normal, always, disabled now configurable
Initial group prefix/suffix implementation
Range checks reworked, Killing ice blocks now ignored for ice rod.
Adding a NPC name to item banlist will block it from spawning
Added configs to disable snowballs and clown bombs from npcs.
2011-12-22 17:32:51 -05:00
Zack Piispanen
56beeb446a Fixed modgroup to actually update the local( ram ) copies of the groups. Also set it up to properly delete from a group. 2011-11-26 00:28:46 -05:00
high
f90b530531 Parents now implemented correctly as a separate column.
Negate permissions now work again.
2011-08-17 17:19:56 -04:00
Twitchy
5ff8680ccb Adds chat colors to player groups. 2011-07-31 23:36:21 +12:00
Zack Piispanen
7f2ff7614f Premissions now inherit from groups listed anywhere in the db, not just below them.
TSDEV-39
2011-07-22 16:29:29 -04:00
Zack Piispanen
cfcc0e7276 groups work, with inheritance, still need to remove order by 2011-07-20 20:55:49 -04:00
Zack Piispanen
453d3ea3b6 group recursively gets permissions 2011-07-19 19:48:07 -04:00
Twitchy
0997b5bd5d Adds group manager, editable only by DB program. 2011-07-11 20:33:03 +12:00
high
7e8486527f Added command aliases. 2011-07-01 09:36:01 -04:00
ricky
efc5ed5fcf Dunno why VS makes that change 2011-06-16 10:33:50 +10:00
high
e9dd445055 Console can now use ingame commands. Although they are the chat commands so right now some wont work like the ones that spawn bosses at you, etc. 2011-06-14 21:44:32 -04:00
high
fff6e1bcbc Changed Group. This isn't java. Don't use accessor/mutator methods. Use properties. 2011-06-14 17:06:17 -04:00
Shank
169950d1fd Added year and author name to GPL ness. 2011-06-12 01:20:20 -06:00
Maverick Motherfucker
3a2c6bb314 gpl up in dis bitch 2011-06-11 21:35:29 -07:00
Shank
dfc4325e59 ReSharper Code optimization 2011-06-05 23:36:41 -06:00
Maverick Motherfucker
24f7756370 did a debug session, fixed bugs 2011-06-04 10:35:20 -07:00
Maverick Motherfucker
8344801128 Started work on revamping command system for permissions, but I'm out for the night, cya tomorrow 2011-06-03 22:28:05 -07:00
Maverick Motherfucker
3774c30f7d Removed useless permissions class and finished loading groups 2011-06-03 22:06:18 -07:00
Maverick Motherfucker
f5723ee834 did a debug session and fixed some errors 2011-06-03 22:00:46 -07:00
Maverick Motherfucker
6f3f53f0dc Added hardcoded superadmin group 2011-06-03 21:39:18 -07:00
Maverick Motherfucker
bb2e9559f0 Added code to convey idea before I write all of it out, also added default config files, everything is subject to change 2011-06-03 21:27:56 -07:00