Jump to content

Lobby Skript


Recommended Posts

here ya go

options:
	factions: ul-factions
	kitpvp: ul-kitpvp
	tnttag: ul-tnttag

on join:
	give 1 compass named "&cSelect Minigame" to player
	give 1 diamond hoe named "&aFunny Hoe *" to player
	set {cooldown.%player%} to 0
	set the join message to "&7[&a+&7} %player%"

on quit:
	remove 1 compass named "&cSelect Minigame" from player
	remove 1 diamond hoe named "&aFunny Hoe *" from player

on right click with compass:
	if name of event-item is "&cSelect Minigame":
		open chest with 1 row named "&c&lSelect Minigame" to player
		format slot 0 of player with stained glass pane named " " to close then run ""
		format slot 1 of player with stained glass pane named " " to close then run ""
		format slot 2 of player with stained glass pane named " " to close then run ""
		format slot 3 of player with shiny diamond sword named "&6kitpvp" to close then run [execute the player command "/kitpvp"]			
		format slot 4 of player with diamond hoe named "&6Factions" to close then run [execute the player command "/factions"]
		format slot 5 of player with tnt named "&4Tnt&7-&6Tag" to close then run [execute the player command "/tnttag"]			
		format slot 6 of player with stained glass pane named " " to close then run ""
		format slot 7 of player with stained glass pane named " " to close then run ""
		format slot 8 of player with stained glass pane named " " to close then run ""	
on quit:
	remove 1 compass named "&cSelect Minigame" from player
	remove 1 diamond hoe named "&aFunny Hoe *" from player


command /factions:
	trigger:
		send "&aTeleporting to Factions..."
		wait 1 seconds
		teleport player to spawn of world "{@factions}"
		send "&aTeleported" to player
		remove 1 compass named "&cSelect Minigame" from player
		remove 1 diamond hoe named "&aFunny Hoe *" from player
		

command /tnttag:
	trigger:
		send "&aTeleporting to TnT-Tag..."
		wait 1 seconds
		teleport player to spawn of world "{@tnttag}"
		send "&aTeleported" to player
		remove 1 compass named "&cSelect Minigame" from player
		remove 1 diamond hoe named "&aFunny Hoe *" from player


command /kitpvp:
	trigger:
		send "&aTeleporting to KitPvP..."
		wait 1 seconds
		teleport player to spawn of world "{@kitpvp}"
		send "&aTeleported" to player
		remove 1 compass named "&cSelect Minigame" from player
		remove 1 diamond hoe named "&aFunny Hoe *" from player

on right click with diamond hoe:
	if name of event-item is "&aFunny Hoe *":
		cancel event
		if {cooldown.%player%} is 0:
			push player forward with speed 1
			push player up with speed 1
			set {cooldown.%player%} to 1
			wait 0.5 seconds
			set {cooldown.%player%} to 0
		else:
			send "&c&lplease wait 0.5 second" to player
			stop

make sure to credit me

 

THIS SKRIPT IS OLD AND I MAKE GUIS IN TUSKE NOW

Edited by KngdomsGG
heh
Link to comment
Share on other sites

Pretty decent skript however there are a few changes that can be made to make it better:

  • Replace the give 1 compass named "&cSelect Minigame" to player to set slot 4 of player to compass named "&cSelect Minigame"
  • Instead of using skQuery GUI's you could use TuSKe as it is much better.
  • Maybe add a way of managing what minigames there are (some sort of GUI or command to add minigames etc)

However overall this seems like it could be useful to many people.
Good job 👍

  • Like 1
  • Thanks 1


-------------------------------------------------------------
[VIP] - 2018/2019

[JR.MOD] - 28th April 2019
[SR.MOD] - 21st June 2019

[LEGEND] - 28th July 2020 (Resigned)

-------------------------------------------------------------

Discord - Criticyl#0002

IGN - Criticyl

Link to comment
Share on other sites

  • 4 weeks later...
On 9/26/2019 at 6:02 PM, Ezekia said:

how could i change it so it does the /server cmd instead of moving worlds?

Just remove the options and instead do:

make player execute "/server (name)"

Saying this, I strongly recommend not doing this for the following reasons:

  • Servers will need to be online 24/7. Minehut servers shutdown after approx. 5 minutes of inactivity.
  • You'll need to link the API's, and since you couldn't do a simple "make player execute" command I don't think you'd be able to link the API's for ranks and other scores.
  • To teleport a player to the main hub you'd need to bypass /hub which is against the rules.
  • Moderation will be extremely difficult.

So yeah, I recommend just sticking with worlds.

|Ex Staff|

download.jpg.af28032f9dfcfef569a01b3c5168646e.jpg - Matqx#5545

1045330945_download(1).jpg.42534e5f7de249b44b6e4fb4af0570aa.jpg - Matqx // Pro

 Rules // Discord // Voting Link

Link to comment
Share on other sites

6 hours ago, Matqx said:

Just remove the options and instead do:


make player execute "/server (name)"

Saying this, I strongly recommend not doing this for the following reasons:

  • Servers will need to be online 24/7. Minehut servers shutdown after approx. 5 minutes of inactivity.
  • You'll need to link the API's, and since you couldn't do a simple "make player execute" command I don't think you'd be able to link the API's for ranks and other scores.
  • To teleport a player to the main hub you'd need to bypass /hub which is against the rules.
  • Moderation will be extremely difficult.

So yeah, I recommend just sticking with worlds.

I swear I said that, guess I didn't press Submit

Link to comment
Share on other sites

On 9/27/2019 at 7:16 PM, Matqx said:

Just remove the options and instead do:


make player execute "/server (name)"

Saying this, I strongly recommend not doing this for the following reasons:

  • Servers will need to be online 24/7. Minehut servers shutdown after approx. 5 minutes of inactivity.
  • You'll need to link the API's, and since you couldn't do a simple "make player execute" command I don't think you'd be able to link the API's for ranks and other scores.
  • To teleport a player to the main hub you'd need to bypass /hub which is against the rules.
  • Moderation will be extremely difficult.

So yeah, I recommend just sticking with worlds.

If you did it it with one server that has multiple worlds, all the plugins would overlap!

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

5 minutes ago, Ezekia said:

oh k

can u show me how?

Uhh I haven't really tested this and it's probably extremely wrong but:

on command:
    if "%world of player%" contains "world":
        if command is "/test":
            send "unknown command"

And just do that to all commands you'd like to restrict. I'm pretty sure there's an easier method although for that you'd have to contact @TacticalModz

|Ex Staff|

download.jpg.af28032f9dfcfef569a01b3c5168646e.jpg - Matqx#5545

1045330945_download(1).jpg.42534e5f7de249b44b6e4fb4af0570aa.jpg - Matqx // Pro

 Rules // Discord // Voting Link

Link to comment
Share on other sites

Just now, Matqx said:

Uhh I haven't really tested this and it's probably extremely wrong but:


on command:
    if "%world of player%" contains "world":
        if command is "/test":
            send "unknown command"

And just do that to all commands you'd like to restrict. I'm pretty sure there's an easier method although for that you'd have to contact @TacticalModz

k

I'll have a look soon

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

2 minutes ago, Matqx said:

Uhh I haven't really tested this and it's probably extremely wrong but:


on command:
    if "%world of player%" contains "world":
        if command is "/test":
            send "unknown command"

And just do that to all commands you'd like to restrict. I'm pretty sure there's an easier method although for that you'd have to contact @TacticalModz

although, for skyblock, would I have to add that for every new skyblock? its just that every syblock world is called the same thing so it might get mixed up...

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

1 hour ago, Ezekia said:

the thing is, kitpvp plugins normally have a scoreboard. how could i get rid of dat?

To get rid of a scoreboard, you could just make the scoreboard disappear with:

 

wipe loop-player’s scoreboard

 

Sorry by the way, I’m on my phone and I’m too lazy to figure out how to do the code format. 

Yes I used to be [ADMIN]. I resigned from that position

Subscribe on YouTube (truly epic content)
Follow me on Twitter

 

 

Link to comment
Share on other sites

On 8/28/2019 at 6:21 PM, KngdomsGG said:

here ya go


options:
	factions: ul-factions
	kitpvp: ul-kitpvp
	tnttag: ul-tnttag

on join:
	give 1 compass named "&cSelect Minigame" to player
	give 1 diamond hoe named "&aFunny Hoe *" to player
	set {cooldown.%player%} to 0
	set the join message to "&7[&a+&7} %player%"

on quit:
	remove 1 compass named "&cSelect Minigame" from player
	remove 1 diamond hoe named "&aFunny Hoe *" from player

on right click with compass:
	if name of event-item is "&cSelect Minigame":
		open chest with 1 row named "&c&lSelect Minigame" to player
		format slot 0 of player with stained glass pane named " " to close then run ""
		format slot 1 of player with stained glass pane named " " to close then run ""
		format slot 2 of player with stained glass pane named " " to close then run ""
		format slot 3 of player with shiny diamond sword named "&6kitpvp" to close then run [execute the player command "/kitpvp"]			
		format slot 4 of player with diamond hoe named "&6Factions" to close then run [execute the player command "/factions"]
		format slot 5 of player with tnt named "&4Tnt&7-&6Tag" to close then run [execute the player command "/tnttag"]			
		format slot 6 of player with stained glass pane named " " to close then run ""
		format slot 7 of player with stained glass pane named " " to close then run ""
		format slot 8 of player with stained glass pane named " " to close then run ""	
on quit:
	remove 1 compass named "&cSelect Minigame" from player
	remove 1 diamond hoe named "&aFunny Hoe *" from player


command /factions:
	trigger:
		send "&aTeleporting to Factions..."
		wait 1 seconds
		teleport player to spawn of world "{@factions}"
		send "&aTeleported" to player
		remove 1 compass named "&cSelect Minigame" from player
		remove 1 diamond hoe named "&aFunny Hoe *" from player
		

command /tnttag:
	trigger:
		send "&aTeleporting to TnT-Tag..."
		wait 1 seconds
		teleport player to spawn of world "{@tnttag}"
		send "&aTeleported" to player
		remove 1 compass named "&cSelect Minigame" from player
		remove 1 diamond hoe named "&aFunny Hoe *" from player


command /kitpvp:
	trigger:
		send "&aTeleporting to KitPvP..."
		wait 1 seconds
		teleport player to spawn of world "{@kitpvp}"
		send "&aTeleported" to player
		remove 1 compass named "&cSelect Minigame" from player
		remove 1 diamond hoe named "&aFunny Hoe *" from player

on right click with diamond hoe:
	if name of event-item is "&aFunny Hoe *":
		cancel event
		if {cooldown.%player%} is 0:
			push player forward with speed 1
			push player up with speed 1
			set {cooldown.%player%} to 1
			wait 0.5 seconds
			set {cooldown.%player%} to 0
		else:
			send "&c&lplease wait 0.5 second" to player
			stop

make sure to credit me

uuuuh it says "Nothing ot pass through!" when i use the compass

Edited by Ezekia

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

21 hours ago, OMan100 said:

You need to disable the compass in World Edit config, look for a tutorial online 

The only way of doing that is to get rid of the permissiontobuse it from everyone. But doing that would result in a message saying 'u cant use this'

i will probably swap the compass for something else. Mabye the totem?

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

If you have world edit installed then the compass will be overridden. Change the compass to something else. If there is a different problem tell me and i'll try to figure it out. I'm not the best though.

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
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...