Commit graph

84 commits

Author SHA1 Message Date
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
Zack Piispanen
b22457382e remove unused using statements 2013-09-17 02:24:02 -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
MarioE
5b032f277d Match the god damned existing tab format 2012-08-20 10:33:54 -04:00
MarioE
53008daacb Fixed storing chat colors incorrectly, and prefix/suffix resets 2012-06-08 21:36:34 -04:00
MarioE
b85bed52d2 That should be all of it 2012-06-04 21:28:47 -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
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
fb11729547 Added IEnumerable support to GroupManager to facilitate RestAPI listing groups
Added optional exceptions parameter to AddGroup and DeleteGroup to faciliate RestAPI group manipulation. This changes the behaviour of these methods to throw an exception on error instead of returning an error string.
Corrected internal lists from being updated in failed DB updates in DeleteGroup and AddGroup
Added doc for chatcolor on AddGroup
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
2ac5ea929b Remove yet another flat file converter from yet another constructor 2012-01-01 02:55:54 -07:00
Lucas Nicodemus
c6abbfe4d2 ReSharper code reformat to match naming conventions and stuff 2011-12-30 14:38:04 -07:00
Zidonuke
b9a8fdf891 Quick fixes 2011-12-29 02:16:45 -05:00
Zidonuke
b7d84d6855 Implemented guest group config and default group. 2011-12-29 00:38:22 -05:00
Natrim
aa0642c64a added some useful permissions
(canregister,canlogin,canchangepassword,canpartychat,cantalkinthird,candisplayplaying)
2011-12-28 10:00:46 +01: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
Zidonuke
c06bf2fe2e Break off from older commands and systems, move to more recent configurations.
Cheating detection no longer kicks, instead uses new system to block actions, and notifies user to fix the issue instead.
2011-12-20 22:41:49 -05:00
Zidonuke
82fb69f9d4 Random Improvements and Fixes 2011-12-20 03:31:47 -05:00
Lucas Nicodemus
8514140ca7 As per High's complaining, holocaust against the Tools class (now Utils)
Plugin developers: You really need to change to reference this.
2011-12-01 23:24:02 -07: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
920fabaa7e Fixed TSDEV-117
Conflicts:

	TShockAPI/Properties/AssemblyInfo.cs
2011-09-03 15:16:36 -04:00
high
f90b530531 Parents now implemented correctly as a separate column.
Negate permissions now work again.
2011-08-17 17:19:56 -04:00
high
7e3a38c5c1 Typo 2011-08-08 19:59:37 -04:00