Lucas Nicodemus
aa527496dc
Replace a coule TileID magic numbers with direc Tcalls.
...
Thanks @mistzzt & @QuiCM!
2017-12-09 01:48:43 -07:00
Lucas Nicodemus
ce822caf2a
Implement re-transmit of data if event handled in OnTilEdit
...
Thanks to the suggestion of @bartico6, we now re-transmit packets
of world data to prevent desync issues with respect to stopping a
server action but not fixing the client's view of the world.
2017-12-09 01:39:54 -07:00
Lucas Nicodemus
eed7b3fad2
Document what TSPlayer.SendTileSquare does
2017-12-09 01:35:27 -07:00
Lucas Nicodemus
cdfb056903
Include feedback from @bartico6 on a magic number
2017-12-09 01:31:40 -07:00
Lucas Nicodemus
46617e61d0
Update changelog re. new hook changes
2017-12-09 01:29:23 -07:00
Lucas Nicodemus
c891a81f67
Move NewProjectile into Bouncer
2017-12-09 01:19:05 -07:00
Lucas Nicodemus
b5a40a4472
Comment OnPlaceObject related hook stuff
2017-12-07 21:46:45 -07:00
Lucas Nicodemus
914782ab9e
Create hook PlaceObject; move anti-hack to Bouncer
2017-12-07 21:43:33 -07:00
Lucas Nicodemus
dbed5e3d5a
Merge branch 'general-devel' into fragments
2017-12-06 23:45:05 -07:00
Lucas Nicodemus
6630b70ae1
Un-botch tab/spacing in this file. Thanks VS Code!
...
Now I know that if I merely open and save a file using Visual Studi
o code, it will automatically munge my tab/spaces on two lines just
for kicks. Thanks Microsoft! You're great at this!
2017-12-06 23:42:14 -07:00
Lucas Nicodemus
c46dae328d
Optimize imports
...
I now have VSCode installed for one reason: to optimize imports.
This required:
1. Installing VSCode.
2. Installing OmniSharp in VSCode.
3. Installing .NET Core so that OmniSharp could start in VSCode.
VSCode is a Microsoft product. It doesn't ship .NET Core. Or Omni
Sharp. Instead, you have to do all of this yourself.
It's not batteries included or anything.
It's actually harder to use OmniSharp in VSCode than it is to use
it in Sublime Text. Except Sublime Text's OmniSharp maintainer
went off and abandoned the project without telling anyone at OmniS
harp. Which gave me the idea that OmniSharp still was maintained
on Sublime Text.
And I just upgraded my Sublime Text license today.
Thanks OmniSharp developer.
2017-12-06 23:37:09 -07:00
Lucas Nicodemus
a4d9f0295a
Move OnTileEdit stuff to Bouncer
...
There are probably a few components in here that don't make sense
for bouncer (looking at you, regions code). However, it's on my todo
list rather than being an imminent thing.
2017-12-06 22:16:19 -07:00
Lucas Nicodemus
4e3cd00848
Merge branch 'general-devel' into fragments
2017-12-06 21:14:45 -07:00
Lucas Nicodemus
8708d55d86
But still use discouragement colors
2017-12-06 17:39:09 -07:00
Lucas Nicodemus
e91968ca91
Revert "Remove superadmin customization config options"
...
This reverts commit 1e68ac22c7 .
2017-12-06 17:35:51 -07:00
Lucas Nicodemus
349770e6ed
Remove more silly comment style problems
2017-12-06 17:10:05 -07:00
Lucas Nicodemus
5abf0f9d8e
Comment magic number 5
2017-12-06 17:07:05 -07:00
Lucas Nicodemus
1d5a013adb
Seal the Bouncer inside his house
2017-12-06 17:05:29 -07:00
Lucas Nicodemus
9ba0907dc0
Fix most of the stupid comments in Bouncer
2017-12-06 17:02:23 -07:00
Lucas Nicodemus
746c5450cc
Merge branch 'general-devel' into ssc-force
2017-12-06 13:07:35 -07:00
Lucas Nicodemus
0902d6f3f8
Merge branch 'general-devel' into ssc-force
2017-12-06 13:01:28 -07:00
Lucas Nicodemus
215fc4a9b1
Merge branch 'general-devel' into rps
2017-12-06 13:00:36 -07:00
Lucas Nicodemus
f065e99a0e
Add HealOtherPlayer hook; integrate with Bouncer
2017-12-05 11:59:27 -07:00
Lucas Nicodemus
0d2d50b3de
Don't leave comments in code
2017-12-05 02:35:30 -07:00
Lucas Nicodemus
db7ae627ae
Move orientable tiles into Bouncer
2017-12-05 02:35:04 -07:00
Lucas Nicodemus
758e403b66
Mark Bouncer's OnSendTileSquare as internal
2017-12-05 02:34:08 -07:00
Lucas Nicodemus
e782a07564
Move SendTileSquare handling for Bouncer into Bouncer
2017-12-05 02:32:33 -07:00
Lucas Nicodemus
fc233bd3f1
Move ComputeMaxStyles to Utils
2017-12-04 21:57:59 -07:00
Lucas Nicodemus
e85d79e23d
Move Distance to Utils.Distance
2017-12-04 21:53:46 -07:00
Lucas Nicodemus
17982bd766
Move SetConsoleTitle to utils
2017-12-04 21:49:56 -07:00
Lucas Nicodemus
7c47fbb3f2
Move FixChestStacks() to utils
2017-12-04 21:45:25 -07:00
Lucas Nicodemus
cdbc37b024
Allow /savessc to work on players that bypass ssc
...
Fixes #1506
2017-12-03 16:22:46 -07:00
Lucas Nicodemus
9aaf425330
Modify default permission sets to be more modern
2017-12-03 15:04:50 -07:00
Lucas Nicodemus
c869464d81
Add DumpPermissionMatrix() which dumps a markdown permission matrix
...
Note that -dump apparently isn't working lately. You probably want
to call Utils.Dump() manually and invoke it in a custom build.
2017-12-03 12:56:34 -07:00
Lucas Nicodemus
3204ef2a83
callerIsEffectiveRoot -> callerIsServerConsole in ban system
...
This code clarity improvement helps make the code base clearer.
Thanks @deadsurgeon42
2017-12-03 09:49:45 -07:00
Lucas Nicodemus
39733a116d
Fix issue where temp bans were stored incorrectly
...
Bans were being stored as seconds, should be a DateTime in s format
with seconds added on to existing time.
2017-12-02 20:59:30 -07:00
Lucas Nicodemus
35c61e53f1
Remove some space left around
2017-12-02 20:45:55 -07:00
Lucas Nicodemus
7160e758b2
Unbreak comment OnPlayerPreLoginOnPlayerPreLogin
2017-12-02 20:44:17 -07:00
Lucas Nicodemus
718525904a
Add remaining backbone for banning accounts (sort of)
...
Frontend still doesn't work properly. In particular:
1. Need a way to list bans by account name.
2. Need a way to unban by account name.
3. Really need a way to change the IP on a ban lol.
Ban system still needs to be be rebuilt fully, but at least this
doesn't necessarily character ban someone if you were going for an IP
ban.
Fixes #1412
2017-12-02 20:41:14 -07:00
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