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
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
White
44ad0c68b8
Change TSPlayer.UserID to TSPlayer.User.ID, as well as refactoring some of UserManager.cs. Solves #916
2015-05-01 11:18:37 +09:30
White
dd7ad78d3f
Adds a User object to TSPlayer
2015-04-29 17:24:20 +09:30
Zack Piispanen
406abce30c
Add hooks for Region creation/deletion. Add hooks for Region Enter/Leave. Add member to TSPlayer displaying current region. Set private setters in AccountHooks.
2015-03-01 22:27:49 -05:00
Lucas Nicodemus
2f0d407dec
RegionManager now says "you must be logged in"
2015-02-28 21:19:27 -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
Zack
f9bf470b1d
Tick version and update copyright
2015-01-28 15:29:13 -05:00
Zack Piispanen
d5527ade42
Add length to database primary keys.
...
Tweak some of the itembans code to be less inefficient.
Removed a chunk of code from the buff code that prevented users from being buffed with a buff that comes from an item. This code seemed to cause max cpu usage when being disabled. I don't think this code is useful, but I leave that to people who own servers. IMO all buff code should be removed.
2014-09-15 09:05:28 -04:00
Zack Piispanen
1421c23df7
Remove crappy spaces in this file.
2014-09-03 02:48:57 -04:00
Zack Piispanen
1c7fe908b6
Delete a bunch of cruft that has gone unmaintained for too long.
...
Fix warps to have an auto-increment primary key column, and unique on name/WorldID
Same for regions.
Changed SqliteTableCreator to do proper unique syntax.
2014-09-03 02:41:53 -04:00
MarioE
eb8ffe5cfb
Fix resizeRegion
2014-07-25 17:41:19 -04:00
Zack
fb451c6d49
Update license header for 2014
2014-07-10 21:48:33 -04:00
MarioE
3405acd15b
Fix warps
2013-11-03 17:10:20 -05:00
MarioE
41121b8412
Re-do warps
2013-11-01 23:55:31 -04:00
MarioE
3e9aee3414
Begin Raptor compatibility
2013-10-30 22:34:09 -04:00
MarioE
61b8885ba0
Fix the last sendtilesquare exploit, I hope.
2013-10-23 18:08:21 -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
76aab4af78
Added quick format versions of the TSPlayer.Send<X>Message methods.
2013-06-27 15:04:00 +02:00
CoderCow
102c50a638
Fixed /region allowg adding an already existing group to the database multiple times.
2013-06-27 12:18:37 +02:00
CoderCow
f7edbe55d6
Fixed /region allow adding an already existing user id to the database multiple times.
2013-06-27 10:46:59 +02:00
Zack Piispanen
410f6cf872
Fixes some potential issues with concurrency, as well as cleaning up my z index check.
2012-12-14 23:40:38 -05:00
Zack Piispanen
88394ac561
Added back in region manager.
...
Added back in spawnmob commands, including the obsolete boss commands.
2012-09-15 16:20:16 -04:00
Zack Piispanen
b56a77b39d
Removed the Region code. Left todo's for the places where we currently reference it though.
2012-05-30 20:12:27 -04:00
Lucas Nicodemus
8d5cdf04a8
Update copyright to reflect actual year date.
2012-04-24 12:45:46 -06:00
Zack Piispanen
b5504d2319
Z index based regions
2012-04-15 15:39:09 -04:00
stevenh
41dbd31aac
Converted all files to LF line endings
2012-02-21 15:56:34 +00:00
k0rd
217d001baf
option to overload Region.InArea() with x,y for more accurate Region detection.
2012-02-04 18:00:33 -05:00
darkunderdog
6079d84c9e
Updated Regions.InAreaRegion.Name to allow overlapping regions - For plugins that use this it will require updating the code
2012-01-04 20:11:22 -06:00
Lucas Nicodemus
bf9d0137f1
Added any missing license headers to all files
2012-01-01 03:06:48 -07:00
Lucas Nicodemus
2bfdaaaabc
Remove flat file conversion code
2012-01-01 02:48:15 -07:00
Lucas Nicodemus
c6abbfe4d2
ReSharper code reformat to match naming conventions and stuff
2011-12-30 14:38:04 -07:00
Lucas Nicodemus
1147788154
ReSharper redundant code cleanup
2011-12-30 14:32:05 -07:00
Zack Piispanen
4c468b7f3c
Item bans now have a group component. Adding a group to an item ban will allow that group to use the item.
...
Also fixed chests/items in chests being null when we truncate stack sizes.
Added code to let anyone with manageregion permission to modify regions...make sense.
2011-12-27 19:14:42 -05:00
Zack
d92537fd87
Moved the else from Midas' commit that reset the groups allowed in the event of an error, we can just ignore it instead of resetting. Move initialization of the list to the constructor.
2011-12-27 09:40:45 -05:00
Justin
f9b1af1b19
fixed null pointer exceptions during save and initializing regions
2011-12-26 12:53:16 -07:00
Zack Piispanen
d0a9b47f2f
You can now add entire groups to a region. You can define as many groups as you want to a region, just like users. The new commands are /region allowg group region and /region removeg group region.
...
Any player in the group has build rights in the region.
2011-12-24 15:21:16 -05:00
Lucas Nicodemus
bb711f8e1d
Merge pull request #296 from erikive/patch-3
...
Added a method for resizing a region.
2011-11-01 18:05:00 -07:00
high
b2f47f57ac
Updated to new binary (with the api merged).
...
Removed System.Drawing dependency
2011-09-24 18:30:19 -04:00
erikive
c190943f88
Edited TShockAPI/DB/RegionManager.cs via GitHub
2011-09-23 19:13:45 -05:00
Zack Piispanen
7a57a8073c
Added method for region SINCE THE FUCKING UNIT TESTS RELIED ON IT AND NO ONE FUCKING FIXED IT
...
Region unit tests work again.
2011-09-03 02:13:19 -04:00
Lucas Nicodemus
301a6dfadd
Attempting to fix UnitTests/RegionManagerTest.orderedtest
2011-09-02 23:59:04 -06:00
Lucas Nicodemus
442a5b4202
Stuff
2011-09-02 23:21:01 -06:00