Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
comdar16 authored Oct 21, 2021
1 parent 03388fb commit 85d0aae
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions SimpleCommand plugin/SimpleCommand/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using Microsoft.Xna.Framework;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Terraria;
using TerrariaApi.Server;
using TShockAPI;

namespace SimpleCommand
{
[ApiVersion(2, 1)]

public class SimpleCommand : TerrariaPlugin
{
public override string Name
{
get { return "SimpleCommand"; }
}

public override string Author
{
get { return "comdar"; }
}

public override string Description
{
get { return "Simple command plugin template!"; }
}

public string HelpText { get; private set; }

public SimpleCommand(Main game)
: base(game)
{
Order = +4;
}

public override void Initialize()
{
Commands.ChatCommands.Add(new Command("simple.command", hello, "hello"));
}

void hello(CommandArgs args)
{
args.Player.SendInfoMessage("Hello world", Color.Yellow);
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 85d0aae

Please sign in to comment.