MCGalaxy icon indicating copy to clipboard operation
MCGalaxy copied to clipboard

/operatingsystem (/opsys) command

Open MasterMenSilver opened this issue 3 years ago • 3 comments

Add the command which tells you what's your operating system, "Windows"/"Mac OS"/"Ubuntu" etc.

/operatingsystem <Player> <Arg> /opsys <Player> <Arg>

if(Arg == null)

"Your ClassiCube is running on Windows 7 x64" "GuzzDoritos's ClassiCube is running on Windows 10 x64" "lavacraft's ClassiCube is running on Windows 10 x64"

if(Arg == "Architecture")

"Your Computer is working on an x64 Architecture"

but Arg really useless, so just <Player> Well it's just enough to display an operating system information.

MasterMenSilver avatar Mar 08 '21 18:03 MasterMenSilver

  1. The client does not provide this information to the server currently, so it would have to be updated
  2. I don't think this sort of information should be provided to the server

UnknownShadow200 avatar Mar 09 '21 00:03 UnknownShadow200

On a counterpoint to @UnknownShadow200 response, web browsers provide the user agent string which is very similar in concept to the AppName field.

The official use for this is likely to match bug reports to specific versions and flavours of the client, and so the OS that it's running on is included and obviously useful. Unofficial use is to tune to the exact clients by disabling or bodging the use of certain features.

ClassicCube already has some of this by including the version number and the "Web", "Android" etc suffixes in the AppName. I've seen both official and unofficial uses in servers (including MCGalaxy!).

So I suggest this is done, but also a page should be taking from the web browser playbook to have distinct fields in the AppName separated by ; characters. The /clients command would show upto the first ; and the /opsys command (/clients full) would show the full string. Any bodging should match on the full string including a version number range.

I guess the change to CC should probably include an option to reduce the sent AppName distinctly from turning off "Enhanced mode".

rdebath avatar Dec 06 '21 08:12 rdebath

Bad idea to add more information to the AppName field. It is already nearing its limit with some plugins that append their name into it.

Goodlyay avatar Dec 06 '21 08:12 Goodlyay