Jump to content

Recommended Posts

With the release of minehut on bedrock, I decided to make a skript to restrict different editions of minecraft from joining.

Options Explanation:
- restrictUsers: The edition you want to restrict from joining. Can either be bedrock or java.
- kickReason: The reason for the kick if a player logs in with a restricted edition.

Skript:

options:
	restrictUsers: bedrock
	kickReason: "&cInvalid client! Please connect using a different edition of minecraft!"

on connect:
	if "{@restrictUsers}" is "bedrock":
		if "%player%" contains "*":
			kick player due to {@kickReason}
	else if "{@restrictUsers}" is "bedrock":
		if "%player%" does not contain "*":
			kick player due to {@kickReason}

Hope you enjoy!

Currently working on a vs code extension for editing server files

  • yes jeelzzz, i do support this vsc code extension - Reassembly
Link to post
Share on other sites
  • 2 weeks later...
On 4/19/2020 at 2:36 AM, jeelzzz said:

else if "{@restrictUsers}" is "bedrock":

I believe you mean 'java' as you have it as bedrock in the condition above?

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → Present

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to post
Share on other sites
On 4/28/2020 at 8:56 PM, Migqy said:

I believe you mean 'java' as you have it as bedrock in the condition above?

yes, that is what i meant sorry

  • Like 1

Currently working on a vs code extension for editing server files

  • yes jeelzzz, i do support this vsc code extension - Reassembly
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...