Commit graph

175 commits

Author SHA1 Message Date
Zidonuke
b9a8fdf891 Quick fixes 2011-12-29 02:16:45 -05:00
Zidonuke
2e5155e1c0 Oops forgot some things. 2011-12-29 00:41:02 -05:00
Zidonuke
b7d84d6855 Implemented guest group config and default group. 2011-12-29 00:38:22 -05:00
Zidonuke
34efba9c1f Changed hack detection to allow future permissions overrides, now prevents hack clients modding max hp while online. 2011-12-28 21:03:29 -05:00
Zidonuke
99e9859b7c Merge pull request #317 from natrim/general-devel
Added some usefull permissions
2011-12-28 09:29:15 -08:00
Zidonuke
8f22ca4950 Attempt to fix unit tests. 2011-12-28 12:27:14 -05:00
Natrim
aa0642c64a added some useful permissions
(canregister,canlogin,canchangepassword,canpartychat,cantalkinthird,candisplayplaying)
2011-12-28 10:00:46 +01: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
Zidonuke
7fe6cde2d9 Remove mana checks from server side inventory, it's not synced by redigit's client properly. 2011-12-25 10:45:28 -05: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
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
f414fb4e39 Fixed all known bugs to server side inventory, its now fully tested.
Fixed pvp related stuff, its now fully working.
Inventory data is per account, not per character since I can't get SQLite to do something I need it to do.
Pvp throttling hardcoded because client side has a limit of 5 seconds, so double enforce it server side.
2011-12-20 21:30:06 -05:00
Zidonuke
bc7fac9b73 Annoying Server Side Inventory implemented. Needs extensive testing.
If enabled, all player actions are disabled until they /login which triggers a inventory check against the server. If they fail the check the login doesn't occur and they can't act. Default inventory for new accounts or characters requires a new character's inventory and health. Every inventory change that occurs is stored back into playerData memory and then onLeave it's stored back into the database, to be loaded at next /login
2011-12-20 16:21:22 -05:00
Zidonuke
ad22a379d9 New config to disable dungeon guardian and instead send players to spawn (stops hack abuse)
Changed AlwaysPvp to support new features better.
Now checking ItemAnimation for stuff.
Initial data structures for Server Side Inventory handling support.
2011-12-20 13:12:27 -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
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
high
920fabaa7e Fixed TSDEV-117
Conflicts:

	TShockAPI/Properties/AssemblyInfo.cs
2011-09-03 15:16:36 -04: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
high
a9a153ddb6 Fixed AddRegion returning false when the region does not exist. 2011-08-20 18:16:33 -04:00
high
625bab753b Fixed getRegion not returning null (functions using it were expecting null too)
Disabled noclip check. (general-devel is not general-test)
Added null check to /region info (Don't commit shit that you know is broken)
2011-08-20 13:04:24 -04:00
Lucas Nicodemus
e3dc989387 Fixed #86
RegionManager now returns false on GetRegionByName if the region already exists in the database.
Fixed coding convention fuckup
ReSharper code cleanup
2011-08-19 21:35:56 -06:00
Graham Cantin
2cdb9dc953 Adding /region info -- needs further protection from nulls 2011-08-19 02:50:59 -07:00
high
b06ec57819 Permission magic strings removed 2011-08-18 21:10:39 -04:00
high
4dae27001c Regions can now be defined in any direction.
Fixed column names are now in the insert. This should fix any weirdness with column order.
2011-08-17 18:21:32 -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
Zack Piispanen
ec63e61e1f regions should work, and load from db at start.
regions also have remove syntax, /region remove user region which removes them from the list, if they exist.
2011-08-15 18:18:35 -04:00
Zack Piispanen
e0d509982f Regions will be less borked now, we hope.
Unit test is now included for group( simple one )
2011-08-15 17:27:17 -04:00
darkunderdog
8d2d41d0c9 Adding getting region name for region messages 2011-08-12 00:03:43 -05:00
high
7e3a38c5c1 Typo 2011-08-08 19:59:37 -04:00
high
8d2a90cee3 Misc changes 2011-08-08 00:13:08 -04:00
high
7389a380da Merge branch 'general-devel' of github.com:TShock/TShock into general-devel 2011-08-07 23:22:28 -04:00
high
593be73f29 password column is now 128 chars for mysql 2011-08-07 23:22:10 -04:00
Twitchy
203f3aa570 Adds Delete Row. 2011-08-07 20:10:22 +12:00
Twitchy
a435966f07 Fixed Insert where 2011-08-07 20:04:08 +12:00
high
1f4792b71c Removed FetchHashedPasswordAndGroup, now just uses GetUserByName 2011-08-07 02:49:09 -04:00
high
56eca71853 Fixed SCA warnings 2011-08-06 16:49:40 -04:00
Twitchy
e581f69249 Few other fixes 2011-08-06 13:49:47 +12:00
high
d02d48287e Fixed AUTO_INCREMENT being wrong and UNIQUE should be on the inside of the quotes. 2011-08-05 01:31:19 -04:00
Twitchy
2c4625e426 Adds SQL Queries for Update, Read and Insert 2011-08-04 21:53:02 +12:00
high
a0d2fe1427 NUMERIC should have been INTEGER 2011-08-04 00:26:36 -04:00
high
1a801b268c All managers now use querybuilder for creating tables to make for easy changes. 2011-08-03 19:55:23 -04:00