Jump to content

Recommended Posts

Posted (edited)

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

Share this post


Link to post
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

Community Support Lead

Discord: Criticyl#0869
----------------------------------------------------------------------


Minehut Vip - 2018/2019
Received Junior Moderator - April 28th 2019

Promoted to Senior Moderator - July 21st 2019

Share this post


Link to post
Share on other sites
Posted (edited)

Pretty cool skript. Some stuff like stop isn't needed, and criticyl gave you some advice on some things you can improve. Great job

Edited by Dextur

Share this post


Link to post
Share on other sites
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.


|Minehut Moderator|

Senior Support Member

download.jpg.af28032f9dfcfef569a01b3c5168646e.jpg - Matqx#5545

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

 Rules // Discord // Voting Link

Share this post


Link to post
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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites
On 9/28/2019 at 1:36 AM, Nd_ said:

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

Yeah, I know you did. I quickly hacked into your computer and just copied and pasted it.

  • Like 1

|Minehut Moderator|

Senior Support Member

download.jpg.af28032f9dfcfef569a01b3c5168646e.jpg - Matqx#5545

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

 Rules // Discord // Voting Link

Share this post


Link to post
Share on other sites
8 hours ago, Ezekia said:

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

You can restrict certain plugins using skript.


|Minehut Moderator|

Senior Support Member

download.jpg.af28032f9dfcfef569a01b3c5168646e.jpg - Matqx#5545

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

 Rules // Discord // Voting Link

Share this post


Link to post
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


|Minehut Moderator|

Senior Support Member

download.jpg.af28032f9dfcfef569a01b3c5168646e.jpg - Matqx#5545

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

 Rules // Discord // Voting Link

Share this post


Link to post
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

Share this post


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

Share this post


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


Player -> Support -> Helper -> Default (Resign) -> Helper -> Junior Moderator -> Moderator -> Senior Moderator -> Default (Resign) -> Junior Moderator -> Moderator (Present)

 

Minehut Moderator

Suggestions Team

 

 

 

2019-11-02_22_12_09.png.0c44458d81b6cc2a041ee0eda0624ace.png

 

 

Share this post


Link to post
Share on other sites
Posted (edited)
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

Share this post


Link to post
Share on other sites
15 hours ago, Ezekia said:

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

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites
22 minutes ago, rewekttum said:

Can some1 tell me why that skript isnt working for my server?

and if you know why could you please help me fix it and come onto my server to test it

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...