Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using tMod_v3.Events;
- using Terraria;
- using System.Collections;
- namespace tMod_v3
- {
- internal class myPlugin : Plugin
- {
- public override string Name { get { return "plugin"; } }
- public override Version Version { get { return new Version(1, 2); } }
- public override string Author { get { return "plugin"; } }
- }
- public myPlugin() {
- CommandReceivedEventHandler.CommandReceived += new(onPlayerCommand);
- }
- public void onPlayerCommand(object sender, CommandReceivedEventArgs e) {
- if (e.Text.ToLower() == "/hi") {
- Session session = Session.sessions[e.Player];
- session.SendText("ohaithere :D");
- }
- }
- }
Add Comment
Please, Sign In to add comment