RocketMod / Rocket.Unturned

Unturned 3 implementation of the RocketMod — .NET Game Server Plugin Framework
MIT License
85 stars 111 forks source link

Command caller type #73

Closed brinza888 closed 5 years ago

brinza888 commented 5 years ago

How can I get caller type? For example console or player ?

Trojaner commented 5 years ago

Depends on where you do it.

Easiest way for types is: typeof(IConsole).IsAssignableFrom(type) and typeof(IPlayerUser).IsAssignelableFrom(type)

brinza888 commented 5 years ago

Ok thanks!