-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+6.94 KB
SimpleCommand plugin/SimpleCommand/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
Binary file added
BIN
+11 Bytes
SimpleCommand plugin/SimpleCommand/obj/Debug/SimpleCommand.csproj.AssemblyReference.cache
Binary file not shown.