Commit graph

3003 commits

Author SHA1 Message Date
Lucas Nicodemus
0edfc6834f Add technical infrastructure for adding account bans 2017-12-02 19:19:17 -07:00
Lucas Nicodemus
a429d706fa
Merge branch 'general-devel' into newer-bans 2017-12-02 18:57:15 -07:00
Lucas Nicodemus
e40ea381ce
Merge branch 'general-devel' into newer-bans 2017-12-02 18:52:45 -07:00
Lucas Nicodemus
722df8f94e
Merge branch 'general-devel' into no-colors-for-superadmins 2017-12-02 18:51:07 -07:00
Lucas Nicodemus
204f4c3f4f Add succinct GPL disclaimer. Fixes #1430. 2017-12-02 18:09:24 -07:00
Lucas Nicodemus
d972f60fa0 Add /sudo command.
Usage: /sudo /command.
Works on the same basis as /su (requires tshock.su).

Replaces message that /su should be used for a one off command.
2017-12-02 17:17:20 -07:00
Lucas Nicodemus
0bbd128f13 Implement /su command & default group owner
/su elevates you to superadmin for 10 minutes.
Account creation instructions tell you to use the "owner" group.
If you fail to run a command but have the su permission, you're told
that you can override it.

Fixes #1505
2017-12-02 15:07:19 -07:00
Lucas Nicodemus
3a8aa7fa29 Brilliant idea: Remove unused code instead of leaving it there. 2017-12-02 14:28:12 -07:00
Lucas Nicodemus
1e68ac22c7 Remove superadmin customization config options 2017-12-02 14:25:33 -07:00
Lucas Nicodemus
ec2a542564 Remove silly string join since snoons is right
> String.Join(" ", str1, str2) is far less clear than str1 + " " + str2
2017-12-01 23:27:51 -07:00
Lucas Nicodemus
d10c8d65f6 Removed minor comment
Turns out that ServerConsole gets a name if caller is unknown.
2017-12-01 23:20:34 -07:00
Lucas Nicodemus
9dee0aee7d Rewrote the /ban add sub command
/ban add now replaces add, addtemp, and addip.
New syntax: /ban add <target> [time] [reason]

Examples:
- /ban add Shank 10d Rewrote the ban system.
- /ban add Ash
- /ban add 127.0.0.1 5d Go work on homework.

Note that if you want to specify a reason and a permaban, you need
to use 0 (zero) as the duration.

Examples:
- /ban add Ash 0 Love ya.
- /ban add Shank 0 Hacking.

Closes #1510
2017-12-01 23:12:06 -07:00
Ziteng Wang
744c812323 Fix item frame not working properly 2017-11-20 14:51:42 -08:00
koneko-nyan
6606c7a7b7 Merge branch 'general-devel' into patch-1 2017-10-13 09:30:08 +02:00
koneko-nyan
9d12461f8d Fix some spaces 2017-10-13 09:12:56 +02:00
Ziteng Wang
91e8077573 Merge branch 'general-devel' into group-renaming 2017-10-04 10:09:46 -07:00
koneko-nyan
aaa84d1ba9 Add 'rename' sub-command to /region 2017-10-02 17:45:57 +02:00
koneko-nyan
30475be268 Add RegionRename 2017-10-02 17:42:22 +02:00
koneko-nyan
d652fd6c83 Add OnRegionRenamed hook 2017-10-02 17:36:50 +02:00
ProfessorXZ
639ffb3c7c Fix GroupManager.RenameGroup() overwriting unsaved config changes 2017-09-28 16:43:20 +02:00
Lucas Nicodemus
4f3fa06028 Merge branch 'general-devel' into fix-build 2017-09-25 12:40:26 -06: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
quake1337
7d5a74330a Ate one newline. 2017-09-20 17:42:32 +02:00
quake1337
a00950e480 Merge branch 'issue-1485' of https://github.com/bartico6/TShock into issue-1485 2017-09-20 17:40:19 +02:00
quake1337
4aa81a3d30 Add changes requested by @hakusaro 2017-09-20 17:39:38 +02:00
quake1337
f4775a1e1e Merge branch 'general-devel' into issue-1485 2017-09-20 10:31:39 +03:00
quake1337
e6ec63a90e Add @ijwu's changes + add /proc/meminfo trick for linux 2017-09-20 09:27:28 +02:00
koneko-nyan
c8549db087 Update Commands.cs
(time % 1.0) * 60.0 can be equal to 59.8, then it gets rounded to undesirable 60 displayed in the time format
2017-09-19 21:00:15 +02:00
ProfessorXZ
5a04b66514 Make Utils.GetBuffDescription actually return the buff's description & properly read 'buffTime' from the stream. Fixes #1469 2017-09-08 21:59:13 +02:00
quake1337
68437f0a22 Add "less than 2gb ram" warning 2017-08-14 14:39:22 +02:00
Ivan
a9e1d835b8 Merge branch 'general-devel' into user-equatable 2017-08-05 21:46:39 +02:00
quake1337
031ef517e3 Change field visibility 2017-08-04 12:52:07 +02:00
Leo Li
0753e6d213 Add more HintPaths for OTAPI
This will help msbuild to find missing libraries when create release
with `/p:Configuration=Release`.

With this patch, the searching order will be:
  - If OTAPI with same configuration found, use that.
  - Else if OTAPI with Release configuration found, use that.
  - Else use OTAPI with Debug configuration.
2017-07-23 20:42:42 -07:00
Lucas Nicodemus
156ce52845 Closes #1478
This addresses code feedback in the previously deleted pull request
2017-07-20 18:10:16 -06:00
Hussein Farran
3b32774a0d Merge branch 'general-devel' into validateplaceobject 2017-07-18 10:27:29 -04:00
Ruby Rose
685d9964f0 Change enum names for clarity 2017-07-17 09:06:29 +03:00
Ruby Rose
3764527d3d don't inherit handled event args for them 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
Jordan Coulam
1cdd33a78a Added ignoreVersion and loaded plugin list to StatTracking for issue #1444 (#1445) 2017-07-16 20:56:56 -06:00
Lucas Nicodemus
ae4f1ed779 Merge branch 'general-devel' into validateplaceobject 2017-07-15 13:39:33 -06:00
MarioE
ac8fe2a215 Remove netID handling of GiveItem, and provide a smaller overload 2017-07-15 13:32:35 -06:00
Lucas Nicodemus
983a678ff3 Fix issue 1467 - Password is now hashed when adding a user via REST API 2017-07-15 13:32:27 -06:00
Ryozuki
587d1b7390 fix comment typo 2017-07-15 13:32:09 -06:00
ProfessorXZ
6b3f18b1da Validate tile placement on PlaceObject, update CHANGELOG.md. Fixes #1418 2017-07-05 15:09:31 +02:00