Completely removed /buff
This commit is contained in:
parent
34d39bd8d3
commit
f3e3c4dafc
3 changed files with 0 additions and 26 deletions
|
|
@ -173,7 +173,6 @@ namespace TShockAPI
|
|||
ChatCommands.Add(new Command("item", Item, "item", "i"));
|
||||
ChatCommands.Add(new Command("item", Give, "give"));
|
||||
ChatCommands.Add(new Command("heal", Heal, "heal"));
|
||||
//ChatCommands.Add(new Command("buff", Buff, "buff"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1681,22 +1680,6 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
|
||||
private static void Buff(CommandArgs args)
|
||||
{
|
||||
if (!args.Player.RealPlayer)
|
||||
{
|
||||
args.Player.SendMessage("You cant buff yourself!");
|
||||
return;
|
||||
}
|
||||
if (args.Parameters.Count > 0)
|
||||
{
|
||||
args.Player.SendMessage("Invalid syntax! Proper syntax: /buff", Color.Red);
|
||||
return;
|
||||
}
|
||||
args.Player.Buff();
|
||||
args.Player.SendMessage("You have been buffed.", Color.Lime);
|
||||
}
|
||||
|
||||
#endregion Cheat Comamnds
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,8 +67,6 @@ namespace TShockAPI
|
|||
|
||||
public int MaximumLoginAttempts = 3;
|
||||
|
||||
public int[] Buffs = { 1, 2, 3, 5, 6, 9, 12, 14, 17, 18 };
|
||||
|
||||
public static ConfigFile Read(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
|
|
|
|||
|
|
@ -259,13 +259,6 @@ namespace TShockAPI
|
|||
return;
|
||||
NetMessage.SendData((int)msgType, Index, -1, text, number, number2, number3, number4, number5);
|
||||
}
|
||||
|
||||
public void Buff()
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
TPlayer.buffType[i] = TShock.Config.Buffs[i];
|
||||
NetMessage.SendData(50, -1, -1, "", Index);
|
||||
}
|
||||
}
|
||||
|
||||
public class TSServerPlayer : TSPlayer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue