Minor fixes
This commit is contained in:
parent
0d686ea80f
commit
0eadfaba52
1 changed files with 3 additions and 3 deletions
|
|
@ -5961,11 +5961,11 @@ namespace TShockAPI
|
|||
{
|
||||
if (args.Parameters.Count < 1 || args.Parameters.Count > 2)
|
||||
{
|
||||
args.Player.SendErrorMessage("Invalid syntax! Proper syntax: {0}buff <buff id/name> [time(seconds)]", Specifier);
|
||||
args.Player.SendErrorMessage("Invalid syntax! Proper syntax: {0}buff <buff name or ID> [time in seconds]", Specifier);
|
||||
return;
|
||||
}
|
||||
int id = 0;
|
||||
int time = 60;
|
||||
int time = 35791393;
|
||||
if (!int.TryParse(args.Parameters[0], out id))
|
||||
{
|
||||
var found = TShock.Utils.GetBuffByName(args.Parameters[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue