Remove /confuse command

This commit is contained in:
Lucas Nicodemus 2020-05-19 22:26:14 -07:00
parent 19de422304
commit 145885beb3
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB
2 changed files with 3 additions and 24 deletions

View file

@ -2,6 +2,9 @@
This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large. This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large.
## Upcoming changes
* Removed `/confuse` command and Terraria player data resync from @Zidonuke. (@hakusaro)
## TShock 4.4.0 (Pre-release 3) ## TShock 4.4.0 (Pre-release 3)
* Fixed `/worldmode` command to correctly target world mode. (@Ristellise) * Fixed `/worldmode` command to correctly target world mode. (@Ristellise)
* The following commands have been removed: `tbloodmoon`, `invade`, `dropmeteor`. `fullmoon`, `sandstorm`, `rain`, `eclipse` * The following commands have been removed: `tbloodmoon`, `invade`, `dropmeteor`. `fullmoon`, `sandstorm`, `rain`, `eclipse`

View file

@ -337,10 +337,6 @@ namespace TShockAPI
{ {
HelpText = "Annoys a player for an amount of time." HelpText = "Annoys a player for an amount of time."
}); });
add(new Command(Permissions.annoy, Confuse, "confuse")
{
HelpText = "Confuses a player for an amount of time."
});
add(new Command(Permissions.annoy, Rocket, "rocket") add(new Command(Permissions.annoy, Rocket, "rocket")
{ {
HelpText = "Rockets a player upwards. Requires SSC." HelpText = "Rockets a player upwards. Requires SSC."
@ -5208,26 +5204,6 @@ namespace TShockAPI
} }
} }
private static void Confuse(CommandArgs args)
{
if (args.Parameters.Count != 1)
{
args.Player.SendErrorMessage("Invalid syntax! Proper syntax: {0}confuse <player>", Specifier);
return;
}
var players = TSPlayer.FindByNameOrID(args.Parameters[0]);
if (players.Count == 0)
args.Player.SendErrorMessage("Invalid player!");
else if (players.Count > 1)
args.Player.SendMultipleMatchError(players.Select(p => p.Name));
else
{
var ply = players[0];
ply.Confused = !ply.Confused;
args.Player.SendSuccessMessage("{0} is {1} confused.", ply.Name, ply.Confused ? "now" : "no longer");
}
}
private static void Rocket(CommandArgs args) private static void Rocket(CommandArgs args)
{ {
if (args.Parameters.Count != 1) if (args.Parameters.Count != 1)