From 074d3142ddb28a45c73b5b2558aed555b9ee8a02 Mon Sep 17 00:00:00 2001 From: Scavenger3 Date: Sun, 25 Nov 2012 22:26:01 +1000 Subject: [PATCH 1/3] [Rest] Add support for jsonp --- TShockAPI/Rest/Rest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TShockAPI/Rest/Rest.cs b/TShockAPI/Rest/Rest.cs index 3f2ae2e2..f0578b7c 100644 --- a/TShockAPI/Rest/Rest.cs +++ b/TShockAPI/Rest/Rest.cs @@ -125,6 +125,11 @@ namespace Rests return; var str = JsonConvert.SerializeObject(obj, Formatting.Indented); + var jsonp = e.Request.Parameters["jsonp"]; + if (!string.IsNullOrWhiteSpace(jsonp)) + { + str = string.Format("{0}({1});", jsonp, str); + } e.Response.Connection.Type = ConnectionType.Close; e.Response.ContentType = new ContentTypeHeader("application/json"); e.Response.Add(serverHeader); From 3ad13d92a519716696f39dd84aa63f824297eef8 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Mon, 18 Feb 2013 16:55:33 -0700 Subject: [PATCH 2/3] Please stop stalking us on Teamspeak ffs. --- README.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/README.md b/README.md index bdc38228..371f797c 100644 --- a/README.md +++ b/README.md @@ -5,21 +5,3 @@ __Continuous Integration__: http://ci.tshock.co/ __Support Forums__: http://tshock.co/ __Wiki__: https://tshock.atlassian.net/wiki/display/TSHOCKPLUGINS/Home - ----- - -### Teamspeak - -We communicate on the ShankShock Temspeak server whilst programming. - -__IP__: ts3.shankshock.com - -__Port__: 9987 - -### IRC - -We love IRC (although a little less than Teamspeak). If you need support, or just want to hang around, feel free to join. - -__IP__: irc.shankshock.com - -__Channel__: #terraria From d258cf3ee710c07f267a10101b9b268976bdb321 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Mon, 8 Jul 2013 19:17:25 -0600 Subject: [PATCH 3/3] Made the README suck less! --- README.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 371f797c..741aca81 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,27 @@ -TShock is a server modification for Terraria. +# TShock -__Continuous Integration__: http://ci.tshock.co/ +TShock is a server modification for Terraria, written in C#, and based upon the [Terraria Server API](https://github.com/Deathmax/TerrariaAPI-Server). It uses JSON for configuration management, and offers several features not present in the Terraria Server normally. -__Support Forums__: http://tshock.co/ +## Features -__Wiki__: https://tshock.atlassian.net/wiki/display/TSHOCKPLUGINS/Home +* MySQL support +* Permissions +* Multiple administrators +* Anti-cheat +* User registration +* Reserved slots +* User punishment (kicking, banning, muting) + +## Community + +Feeling like helping out? Want to find an awesome server? Some awesome plugins? + +* [Website & Forums](http://tshock.co/xf/) +* [Wiki](https://tshock.atlassian.net/wiki/display/TSHOCKPLUGINS/Home) +* [IRC: #tshock @ irc.rizon.net](http://tshock.co/xf/index.php?ezirc/) + +## Download + +* [Github Releases](https://github.com/TShock/TShock/releases) +* [Download Archive](https://github.com/TShock/TShock/downloads) +* [Latest Version (4.0.5)](https://s3.amazonaws.com/tshock/TShock+4.0.5.zip)