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.
This commit is contained in:
parent
f414fb4e39
commit
c06bf2fe2e
9 changed files with 66 additions and 55 deletions
|
|
@ -155,7 +155,6 @@ namespace TShockAPI
|
|||
add(Permissions.manageitem, DeleteItem, "delitem");
|
||||
add(Permissions.cfg, SetSpawn, "setspawn");
|
||||
add(Permissions.cfg, Reload, "reload");
|
||||
add(Permissions.cfg, ShowConfiguration, "showconfig");
|
||||
add(Permissions.cfg, ServerPassword, "serverpassword");
|
||||
add(Permissions.cfg, Save, "save");
|
||||
add(Permissions.cfg, Settle, "settle");
|
||||
|
|
@ -1747,20 +1746,6 @@ namespace TShockAPI
|
|||
SaveWorld.Start();
|
||||
}
|
||||
|
||||
private static void ShowConfiguration(CommandArgs args)
|
||||
{
|
||||
args.Player.SendMessage("TShock Config:");
|
||||
string lineThree = string.Format("RangeChecks : {0}, DisableBuild : {1}, ProtectSpawn : {2}, ProtectRadius : {3}",
|
||||
TShock.Config.RangeChecks, TShock.Config.DisableBuild,
|
||||
TShock.Config.SpawnProtection, TShock.Config.SpawnProtectionRadius);
|
||||
args.Player.SendMessage(lineThree, Color.Yellow);
|
||||
string lineFour = string.Format("MaxSlots : {0}, SpamChecks : {1}, InvMultiplier : {2}, DMS : {3}, SpawnRate {4}",
|
||||
TShock.Config.MaxSlots, TShock.Config.SpamChecks,
|
||||
TShock.Config.InvasionMultiplier, TShock.Config.DefaultMaximumSpawns,
|
||||
TShock.Config.DefaultSpawnRate);
|
||||
args.Player.SendMessage(lineFour, Color.Yellow);
|
||||
}
|
||||
|
||||
private static void Reload(CommandArgs args)
|
||||
{
|
||||
FileTools.SetupConfig();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue