midspace / Space-Engineers-Admin-script-mod

Modding script for Space Engineers with dozens of Admin commands for creating game scenarios or supporting servers.
45 stars 13 forks source link

use IMyPlayer.IsAdmin and IMyPlayer.IsPromoted #166

Open midspace opened 8 years ago

midspace commented 8 years ago

IMyPlayer now has the properties IsAdmin and IsPromoted. We should be able to use these now instead of checking the serialized checkpoint.

There will be some work to make use of IsPromoted however, as this can change state while a game is running.

This will require sending an update to the Client side code, to change the ChatCommandService._userSecurity property.

How to trigger this is the question.