Advertisement
Guest User

Both Type

a guest
Feb 27th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE muclient>
  3. <!-- Saved on Saturday, June 30, 2007, 10:14 -->
  4. <!-- MuClient version 4.13 -->
  5.  
  6. <!-- Plugin "Redirect_Input" generated by Plugin Wizard -->
  7.  
  8. <muclient>
  9. <plugin
  10. name="Redirect_Input"
  11. author="Nick Gammon"
  12. id="fefa658aa8caca3cb5e2fa81"
  13. language="Lua"
  14. purpose="Redirects commands to another world"
  15. date_written="2007-06-30 10:08:32"
  16. requires="4.00"
  17. version="1.0"
  18. >
  19.  
  20. </plugin>
  21.  
  22.  
  23. <!-- Script -->
  24.  
  25.  
  26. <script>
  27. <![CDATA[
  28. world_name = "FS 2"
  29.  
  30. function OnPluginCommandEntered (command)
  31.  
  32. local w = GetWorld (world_name) -- find world
  33.  
  34. -- not found? show error
  35. if not w then
  36. ColourNote ("white", "red", "World " .. world_name .. " is not open")
  37. else
  38. w:Execute (command) -- execute command (handle aliases, etc.)
  39. PushCommand (command) -- save in command history
  40. end -- if
  41.  
  42. return ("\t") -- clear command
  43.  
  44. end -- OnPluginCommandEntered
  45.  
  46.  
  47. ]]>
  48. </script>
  49.  
  50.  
  51. </muclient>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement