Commit graph

487 commits

Author SHA1 Message Date
koneko-nyan
9d12461f8d Fix some spaces 2017-10-13 09:12:56 +02:00
koneko-nyan
30475be268 Add RegionRename 2017-10-02 17:42:22 +02: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
Ivan
a9e1d835b8 Merge branch 'general-devel' into user-equatable 2017-08-05 21:46:39 +02:00
Ruby Rose
685d9964f0 Change enum names for clarity 2017-07-17 09:06:29 +03:00
Ruby Rose
79f66f554f Turn the player hooks into a tristate 2017-07-17 09:06:29 +03:00
Ruby Rose
02be378a2e change doc of Equals 2017-07-17 06:34:30 +03:00
Ruby Rose
5e1be5b19b Fix formatting below IEquatable block 2017-07-17 06:34:30 +03:00
Ruby Rose
c8e31231ba override ToString of user 2017-07-17 06:34:30 +03:00
Ruby Rose
4216501c45 Make User implement IEquatable for more consistent comparisons 2017-07-17 06:34:30 +03:00
Ryozuki
587d1b7390 fix comment typo 2017-07-15 13:32:09 -06:00
Ruby Rose
81cb1381b4 Add hooks for item/projectile/tile bans 2017-06-07 15:32:40 +03:00
ZIT WANG
85b0b7bc6a Fix an itemban issue due to localization 2017-04-26 19:26:54 +08:00
Lucas Nicodemus
2a5efa65ae
Saving work to apply merge changes
Currently moving .name to .Name and things like that from Item
2017-04-19 17:12:38 -06: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
White
3989f0e21a Ban.BanDateTime and Ban.ExpirationDateTime are now nullable, in case of bad bans.
Ban sorting now uses an IComparer<Ban> to do its dirty work.
2017-02-21 22:18:41 +10:30
White
3ec7cb1d09 Renamed Ban.DateTime to Ban.BanDateTime because System.DateTime is a thing
Ban.BanDateTime and Ban.ExpirationDateTime are now actually set
2017-02-21 21:42:50 +10:30
White
c3cffd1559 BanManager.cs now consistently uses tabs 2017-02-21 21:17:31 +10:30
White
dba89e45c8 Added sorting to ban retrieval.
Default retrieval sorts bans by the date they were added, from newest to oldest.
Progress on #1400
2017-02-21 16:40:59 +10:30
Lucas Nicodemus
678f6c7cf8
Update to Mintaka (thanks @enerdy) 2016-12-06 17:36:44 -07:00
Hussein Farran
7d323f253a Merge pull request #1321 from DogooFalchion/ssc_join_inv
Enable user to upload their data from when they join as SSC
2016-10-23 20:58:40 -04:00
DogooFalchion
156df47777 Add mechanism to upload a specific PlayerData to a player. 2016-10-23 18:10:30 -04:00
Lucas Nicodemus
a0c4864567
Removed all obsolete methods from TShock 2016-10-23 06:09:17 -06:00
Lucas Nicodemus
b15dfbc1ec
Don't catch the exceptions we throw in SetUserGroup
For some reason, we were catching our own exceptions and then
throwing UesrManagerExceptions despite the fact that we explicitly
threw more specific exceptions.

Fixes #1315.
2016-10-23 05:49:16 -06:00
Adilson Carvalho
ad03215986 Added GPL header on all code files when missing 2016-10-16 17:33:19 -02:00
Adilson Carvalho
49b4effe74 Changed year to 2016 on all GPL headers 2016-10-16 17:06:02 -02:00
ProfessorXZ
37d9e93e6c Remove redundant region checks 2016-08-02 19:22:47 +02:00
White
b9046da5f4 Fixes #1239 2016-07-12 13:06:35 +09:30
Zt Wang
f15fd659e9 Add give permission to group trustedadmin 2016-06-21 13:38:11 +08:00
White
8bf58dedf4 Fixes #1169 on MySQL 2016-04-02 11:05:23 +10:30
White
7e59d4c07d Fixes #1161 2016-02-19 18:10:34 +10:30
White
409327b54e Fixes #1161 2016-02-19 18:10:32 +10:30
Tyler Watson
3d37f51290 Fixed bug in AddRegion failing to completely add regions
An invalid SQL query selecting the region ID from the newly inserted
region prevented the AddRegion method from completely adding a region,
even though it was inserted into the database correctly, leading to a
`false` result even though the region add was successful.

This fixes /region define, and HouseRegions.
2016-02-06 20:37:57 +10:00
White
f0bf0ad820 Added an ID property to Regions. Commented and simplified some RegionManager code 2016-02-01 12:14:36 +10:30
Enerdy
aa419283a9 Add PlayerPermission hook, replace p.Group.HasPermission by p.HasPermission everywhere possible. 2016-01-11 14:37:02 +00:00
White
21f16e5908 Fixed female characters losing their femininity 2016-01-10 13:12:51 +10:30
White
be4d741f2b Extra slot will now function correctly in SSC. Fixes #1036 2015-10-09 17:56:56 +10:30
Beau Hastings
943606c870 Fix #1082
Signed-off-by: Beau Hastings <beausy@gmail.com>
2015-10-09 00:01:57 -05:00
Beau Hastings
c0771556fc Fixes #1116
Signed-off-by: Beau Hastings <beausy@gmail.com>
2015-10-07 11:42:20 -05:00
tysonstrange
d68fe61d21 Update CharacterManager.cs 2015-09-18 07:58:42 +10:00
tysonstrange
9c3d38e23d Update CharacterManager.cs 2015-09-17 21:10:30 +10:00
White
2e5eaae0b3 Checking whether a point is in a region no longer requires to region to be protected.
Renamed some methods to conform to C# conventions.
2015-09-06 18:49:57 +09:30
Tyler Watson
01486f7ba9 Fixed an issue preventing bans being added when a ban already existed
Fixes #1094
2015-08-21 22:58:52 +10:00
White
23ab14df4f Added backwards compatibility for SSC 2015-07-10 16:58:32 +09:30
White
e5cbee82e9 Backwards compatibility for databases with pre-existing SSC entries 2015-07-10 14:34:42 +09:30