Commit graph

268 commits

Author SHA1 Message Date
MarioE
85cf46166a Fix some more plugin-breaking changes 2013-12-18 10:24:17 -05:00
MarioE
766b077e99 Undo plugin-breaking changes 2013-12-15 18:50:44 -05:00
MarioE
8b7e8772da Add float/double data types 2013-11-27 22:00:47 -05:00
MarioE
ebc36a5ada Add temp banning, remove /ban clear, fix temp ban check 2013-11-10 23:03:12 -05:00
MarioE
3405acd15b Fix warps 2013-11-03 17:10:20 -05:00
MarioE
7e7068294f Er, forgot to initialize list 2013-11-01 23:57:22 -04: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
4c5c2ba0de Convert Itemban.HasPermission to check if user has Permission.usebanneditem and remove redundant checks elsewhere. 2013-10-19 12:34:00 -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
PhoenixICE
dd3883b393 ItemBan Use Group Parenting
Made Item bans now abide by group parenting.
2013-10-11 21:12:47 +11:00
Zack Piispanen
ddb2afefe9 Fix hardcore deaths by wiping and reseeding the tsCharacter table.
Log to server/logs chat over head.
2013-10-11 00:49:46 -04:00
MarioE
7e5909e04c Fix column mismatch 2013-10-04 19:55:14 -04:00
k0rd
48a94b6247 Initial handling for saving/using beds with SSC 2013-10-04 00:14:52 -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
9304c128b0 When an account is registed seed the CharacterDB with the proper start values. 2013-10-01 20:39:28 -04:00
Zack Piispanen
df5eb940bd Fix compat sigs ban method. 2013-10-01 19:02:21 -04:00
Zack Piispanen
931e65fd80 Fix bans. 2013-10-01 18:38:39 -04:00
k0rd
a91930967f fixes for SSC 2013-10-01 18:20:49 -04:00
Zack Piispanen
7baac27163 Fix canchat 2013-10-01 16:22:32 -04:00
k0rd
1945b50d91 "Character" is a reserved keyword in mysql, changed to "tsCharacter" to fix. 2013-10-01 15:45:12 -04:00
Zidonuke Ghost
0d351778a7 Initial server side character system implementation. 2013-10-01 06:22:08 -04:00
Zidonuke Ghost
b2a8198bb1 Client UUID Implementation: Bans and User Auth.
Send ServerSideCharacter flag if set in WorldInfo.
2013-10-01 04:35:49 -04:00
Lucas Nicodemus
33e0627f9e Merge pull request #545 from NyxStudios/1.2_terraria
Update to Terraria Protocol 1.2
2013-09-30 21:04:41 -07:00
Zack Piispanen
038b2c027d Added Registered field to user db.
Set all those time based fields to use UtcNow, sortable
2013-09-30 20:32:43 -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
856def83b3 Added basic framework for allowing for ban durations and banning admin.
Added BanningUser, Date(of ban), and Expiration to the db
On join, Expiration is checked, if ban is expired we remove it and the user is allowed on.
When running the ban command, your UAN is used as the banning user, and the date is that moment, with no expiration.
#531
2013-09-22 16:04:12 -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
d4e193b44d Merge pull request #529 from k0rd/general-devel
Remove WorldID from the WHERE clause in UPDATE SQL for RememberedPosManager
2013-09-21 14:36:08 -07:00
Zack Piispanen
ba42fb08df Removed ip address from users, as well as changed /user add syntax to be '/user add username password group' instead of colon bullshit. 2013-09-21 17:11:22 -04:00
k0rd
88e8e65dcb Remove WorldID from the WHERE clause in UPDATE SQL for RememberedPosManager, changed logic to also update the WorldID 2013-09-21 16:41:45 -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
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
MarioE
2e2539a4d1 Rename RememberedPosManager, also remove some deprecation messages. 2012-08-20 10:53:02 -04: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
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