pryaxis / tshock Goto Github PK
View Code? Open in Web Editor NEW☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
License: GNU General Public License v3.0
☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
License: GNU General Public License v3.0
You get banned for using Dirt Wand as it uses Place Tile so it trips the distance check.
You can get banned for using purification powder.
wtf? http://imageshack.us/photo/my-images/808/10668069.jpg/ I put and 32 and 100 and 20
like this?
groups
abc1 groupsinheritpermissionsfromtheirparents ban kick
users
xxx.xxx.xxx.xxx abc1
/ban [Nick] [Reason]
/noon
/dawn
/dusk
/midnight
For Administrators
/dropmetor - not working
/dropmeteor - not working
why?
screenshot - http://imageshack.us/photo/my-images/96/omges.jpg/
Hey I need help with making myself admin. iv'e pput both my internal and external ip's in the admins.txt files and I still dont have access to all of the commands. Thanks for the help in advance!
Args parsing for /kick, /ban, /give /tp and /tphere are not consistent with /heal, /kill, /slap and all item and monster commands.
/god - godmod =) for admins
Chests are unbreakable.
P.S. Also add an unban command.
Players named DaN and Dante results in DaN being the first called.
-ip
-port
-map
returned a bug with a chest and lag bans "Placing impossible to place blocks"
{
"InvasionMultiplier": 40,
"DefaultMaximumSpawns": 3,
"DefaultSpawnRate": 400,
"ServerPort": 7777,
"EnableWhitelist": false,
"InfiniteInvasion": false,
"AlwaysPvP": false,
"KickCheaters": false,
"BanCheaters": false,
"KickGriefers": true,
"BanGriefers": true,
"BanKillTileAbusers": false,
"KickKillTileAbusers": true,
"BanExplosives": true,
"KickExplosives": true,
"SpawnProtection": true,
"SpawnProtectionRadius": 5,
"DistributationAgent": "facepunch"
}
Can you add the show-config command. Here is the patch of what I have been using.
diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs
index f9829ee..d62a5ed 100644
--- a/TShockAPI/Commands.cs
+++ b/TShockAPI/Commands.cs
@@ -29,6 +29,8 @@ namespace TShockAPI
TShock.admincommandList.Add("kick", new CommandDelegate(Kick));
TShock.admincommandList.Add("ban", new CommandDelegate(Ban));
TShock.admincommandList.Add("off", new CommandDelegate(Off));
+ TShock.admincommandList.Add("off-nosave", new CommandDelegate(OffNoSave));
+ TShock.admincommandList.Add("show-config", new CommandDelegate(ShowConfig));
TShock.admincommandList.Add("reload", new CommandDelegate(Reload));
TShock.admincommandList.Add("dropmeteor", new CommandDelegate(DropMeteor));
TShock.admincommandList.Add("star", new CommandDelegate(Star));
@@ -54,7 +56,6 @@ namespace TShockAPI
TShock.admincommandList.Add("kill", new CommandDelegate(Kill));
TShock.admincommandList.Add("help", new CommandDelegate(Help));
TShock.admincommandList.Add("slap", new CommandDelegate(Slap));
- TShock.admincommandList.Add("off-nosave", new CommandDelegate(OffNoSave));
TShock.commandList.Add("help", new CommandDelegate(Help));
TShock.commandList.Add("kill", new CommandDelegate(Kill));
}
@@ -111,6 +112,27 @@ namespace TShockAPI
Netplay.disconnect = true;
}
+ public static void ShowConfig(CommandArgs args)
+ {
+ int ply = args.PlayerID;
+ var commands = TShock.commandList;
+ if (TShock.players[ply].IsAdmin())
+ commands = TShock.admincommandList;
+ Tools.SendMessage(ply, "TShock Config:");
+ string lineOne = "";
+ lineOne += "KickCheater : " + ConfigurationManager.kickCheater + ", ";
+ lineOne += "BanCheater : " + ConfigurationManager.banCheater + ", ";
+ lineOne += "KickGriefer : " + ConfigurationManager.kickGriefer + ", ";
+ lineOne += "BanGriefer : " + ConfigurationManager.banGriefer;
+ Tools.SendMessage(ply, lineOne, new float[] { 255f, 255f, 0f });
+ string lineTwo = "";
+ lineTwo += "BanTnt : " + ConfigurationManager.banTnt + ", ";
+ lineTwo += "KickTnt : " + ConfigurationManager.kickTnt + ", ";
+ lineTwo += "BanBoom : " + ConfigurationManager.banBoom + ", ";
+ lineTwo += "KickBoom : " + ConfigurationManager.kickBoom;
+ Tools.SendMessage(ply, lineTwo, new float[] { 255f, 255f, 0f });
+ }
+
public static void Reload(CommandArgs args)
{
FileTools.SetupConfig();
why?
Goblin invasions don't work, you can start an invasion but the goblins never come...
Get the following errors during cheater check (no one but admins are allowed to join if check is enabled) and teleport.
System.NullReferenceException: Object reference not set to an instance of an object.
at TShockAPI.Tools.HandleCheater(Int32 ply)
at TShockAPI.TShock.GetData(GetDataEventArgs e)
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.NetMessage.SendData(Int32 msgType, Int32 remoteClient, Int32 ignoreClient, String text, Int32 number, Single number2, Single number3, Single number4)
at TShockAPI.TShock.Teleport(Int32 ply, Single x, Single y)
at TShockAPI.Commands.TPHere(CommandArgs args)
at TShockAPI.TShock.OnChat(Int32 ply, String msg, HandledEventArgs handler)
(or ask high to add that into the API directly, so we don't need to remember to do it)
The server echo says I am setting these values but I notice no difference in the server.
Apparently you can kill players with it.
Help output seems to miss 6th, 11th and 16-20th command of the page.
Below is the to should only 15 per page and not miss the 6th and 11th command of the page.
public static void Help(CommandArgs args)
{
int ply = args.PlayerID;
var commands = TShock.commandList;
if (TShock.players[ply].IsAdmin())
commands = TShock.admincommandList;
Tools.SendMessage(ply, "TShock Commands:");
int h = 1;
int i = 0;
string tempstring = "";
int page = 1;
if (args.Message.Split(' ').Length == 2)
int.TryParse(args.Message.Split(' ')[1], out page);
if (commands.Count > (15 * (page - 1)))
{
for (int j = (15 * (page - 1)); j < commands.Count; j++)
{
if (i == 3) break;
if (j == commands.Count - 1)
{
tempstring += "/" + commands.Keys.ElementAt(j) + ", ";
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ',' }), new float[] { 255f, 255f, 0f });
}
if ((h - 1) % 5 == 0 && (h - 1) != 0)
{
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ',' }), new float[] { 255f, 255f, 0f });
tempstring = "/" + commands.Keys.ElementAt(j) + ", ";
i++;
h++;
}
else
{
tempstring += "/" + commands.Keys.ElementAt(j) + ", ";
h++;
}
}
}
if (commands.Count > (15 * page))
{ Tools.SendMessage(ply, "Type /help " + (page + 1).ToString() + " for more commands.", new float[] { 255f, 0f, 255f }); }
Tools.SendMessage(ply, "Terraria commands:");
Tools.SendMessage(ply, "/playing, /p, /me", new float[] { 255f, 255f, 0f });
}
for dynamic ip
plz help me
JSON
Fix done to /spawn couple of days ago now always takes player to the main spawn point and ignore position set by using a bed.
And should be assignable in config too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.