Jump to content

Player open a menu.


vip2kea

Recommended Posts

Ok, so I made a shop command because players don't like to have items in their inventory, so I made this skript:

command /shop:
    trigger:
        execute console command "/menu open @p MShop"

 

But when I test it, it doesn't work, so I tired:

command /shop:
    trigger:
        execute console command "/menu open %player% MShop"

 

But even that doesn't work.

When a player types this command, its supposed to open the Menu MShop {CreateYourOwnMenus plugin}. but its not. Can someone help please?

vip2kea

Playing Minehut since January 8th, 2018

Became a Pro on February 20th, 3029

Owner of SurvioPC

Owner of ArenaGames

 

Link to comment
Share on other sites

Ok I did what you said but the command still doesn't work.

I am useing CreateYourOwnMenus, does it not work with Skript???

vip2kea

Playing Minehut since January 8th, 2018

Became a Pro on February 20th, 3029

Owner of SurvioPC

Owner of ArenaGames

 

Link to comment
Share on other sites

On 6/22/2019 at 1:03 AM, vip2kea said:

Ok, so I made a shop command because players don't like to have items in their inventory, so I made this skript:

command /shop:
    trigger:
        execute console command "/menu open @p MShop"

 

But when I test it, it doesn't work, so I tired:

command /shop:
    trigger:
        execute console command "/menu open %player% MShop"

 

But even that doesn't work.

When a player types this command, its supposed to open the Menu MShop {CreateYourOwnMenus plugin}. but its not. Can someone help please?

Here we go:
CYOM can be force opped so I recommend you don't use it, however as an alternative I recommend TuSKe GUIs which require a plugin called TuSKe on your server which can't be force opped unless you make it to be: here is a link to a guide on how to make a TuSKe GUI using Skript and TuSKe. Also, please use TABs instead of spaces as they make your code easier to read and understand.

 

16 hours ago, DoomMode said:

How do I add commands to items

If you're using TuSKe GUIs, again, use this link to get a wiki or use this:

format gui slot <integer> with <item> named "<string>" with lore "<string>" to close: #this will run the commands but make your menu close
	#stuff you wanna do

#or:

format gui slot <integer> with <item> named "<string>" with lore "<string>" to run: #this will run the commands but make your menu stay open
	#stuff you wanna do

Always happy to help! 😁

A person.

Link to comment
Share on other sites

the problem with your code is that it has no player to go to. When your executing with console. There's no player. I suggest making a player argument to make it easier.

 

If this doesn't work, I don't know then:

command /shop <player>:
	trigger:
  		make console execute command "/menu open %arg-1% MShop"

 

Hello! I'm SoloStrafe!
 

Skills:

Skript (4+ years experience)

Most of the plugins on MH

Servers:

- Westmine (Developer)

- Mineport (Admin)

Minehut:

Untitled.png.395f912cec0139eaf122fc8874f57045.png

I got VIP rank on 8/1/2019 -> Current

Link to comment
Share on other sites

  • 3 months later...
3 hours ago, iAmAdRevenue said:

this doesnt work can u help this is what i have

command /games:
    trigger:
          make console execute command "/warp"

i use ONLY skript and when i do this it says 1 error 

First of all, don't necropost

Second, make a new topic

Third, what is the error?

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...