Guest User

Untitled

a guest
Oct 17th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using System;
  2. using tMod_v3.Events;
  3. using Terraria;
  4. using System.Collections;
  5.  
  6. namespace tMod_v3
  7. {
  8. internal class myPlugin : Plugin
  9. {
  10. public override string Name { get { return "plugin"; } }
  11. public override Version Version { get { return new Version(1, 2); } }
  12. public override string Author { get { return "plugin"; } }
  13. }
  14. public myPlugin() {
  15. CommandReceivedEventHandler.CommandReceived += new(onPlayerCommand);
  16. }
  17. public void onPlayerCommand(object sender, CommandReceivedEventArgs e) {
  18. if (e.Text.ToLower() == "/hi") {
  19. Session session = Session.sessions[e.Player];
  20. session.SendText("ohaithere :D");
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment