Twisol said:
It sure can: the Version() function.
Excellent, thanks.
Nick Gammon said:
First step, add the "required version" to the plugin header. Then they can't even install the plugin if they have an early version. That is why it is there.
I tested it previously by changing the version number on one of my plugins, closing the world and reopening it - the plugin seemed to simply disappear. But trying it again and looking more closely I see that it did also give an error message (but behind my session window).
Nick Gammon said:
And if something is added now that somehow (how?) tells every server the MUSHclient version, that won't be there for old versions anyway, so it doesn't achieve a huge amount.
Well it would at least let me see if they were using the latest version or not. If there was no response to the query I could just mark them as "old", and the dynamic help files could inform them in big red text that they need to update to the latest version of MUSHclient before downloading the custom plugins.
I'll probably just add it as a simple plugin though. Once I've got enough plugins I'll likely distribute a copy of MUSHclient with all of them preinstalled (along with the soundpack and graphical images) - but no doubt I'll continue adding further plugins in the future that'll require newer versions of MUSHclient, so it'll become increasingly useful to know which version people are using.
EDIT: I also just noticed that MXP has a version tag, so I guess that would be another option.