Jump to content

I need help


Skenz_Flow1

Recommended Posts

So i made a skript and its working very well but i need help with a few things. The first thing is i cant (if im deoped) do the command. and i deleted the permission message and the permission but then you can take the things from the gui (if you are op you cant take anything and everything is working) and .. thats bad!help me please btw there are no errores.

thats the code:

variables:
  {frame} = black stained glass pane

command /shop:
  permission: op
  permission message: "&4You cant do this! sry :("
  trigger:
    open virtual chest inventory with size 3 named "&aShop" to player
    format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 17 and 16 of player with {frame} named "&8"
    format gui slot 11 of player with iron horse armor named "&bAK47" to run:
      give player iron horse armor named "&bAK47"
      close player's inventory
    format gui slot 22 of player with barrier named "&4Close" to run:
      close player's inventory 

Edited by Skenz_Flow1
Link to comment
Share on other sites

Opped player's can't take things from that gui but if you aren't opped, it lets you take stuff from it? That's wierd. Did you ever do /sk reload all? Because that breaks TuSKe guis and makes people able to move stuff in the gui. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

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

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

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

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

4 hours ago, Skenz_Flow1 said:

So i made a skript and its working very well but i need help with a few things. The first thing is i cant (if im deoped) do the command. and i deleted the permission message and the permission but then you can take the things from the gui (if you are op you cant take anything and everything is working) and .. thats bad!help me please btw there are no errores.

thats the code:

variables:
  {frame} = black stained glass pane

command /shop:
  permission: op
  permission message: "&4You cant do this! sry :("
  trigger:
    open virtual chest inventory with size 3 named "&aShop" to player
    format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 17 and 16 of player with {frame} named "&8"
    format gui slot 11 of player with iron horse armor named "&bAK47" to run:
      give player iron horse armor named "&bAK47"
      close player's inventory
    format gui slot 22 of player with barrier named "&4Close" to run:
      close player's inventory 

If you add "to do nothing" at the end of the ones which you set the slots to {frame}, it should work and be unstealable, so like this:

format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 18 and 19 and 20 and 21 and 23 and 24 and 25 and 26 and 17 and 16 of player with {frame} named "&8" to do nothing

try this out and tell me how it works out.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Glad I could be useful!

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

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