Skip to content

AnzhelikaO/CSharpScriptingPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Permission

csharp.scripting.execute

Prefixes to run C# script in console or in game chat

; - execute code:
  ;Console.WriteLine(1)
;; - show object:
  ;;TSPlayer.Server.Name
;= - print public members of an object:
  ;=Main.tile[0, 0]
;== - print public members of a type:
  ;==Chest

Global members always available in your context

cw(obj, [receivers]) method:
  ;cw("test")
  ;cw("Hello!", admins)
me - your TSPlayer
server - TSPlayer.Server shortcut
admins - server and every player that have permission
kv - Dictionary<dynamic, dynamic>, null key allowed

Special features

;using Microsoft.Xna.Framework updates your context with said using (untill you leave and rejoin)
Every $var gets replaced to kv["var"]:
  ;$i=5 equals to ;kv["i"]=5
  ;;$i equals to ;;kv["i"] or ;cw(kv["i"])
  ;$a=$b+$c equals to ;kv["a"]=kv["b"]+kv["c"]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages