Jump to content

Searching place ability skript


Chromamium

Recommended Posts

Not the correct category!

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

Username: SuperOrca

Discord: Link to Profile

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Experienced in Python, Java (mainly spigot), Javascript (node.js, basics of react.js), and Web Development. DM on discord me if you want a custom discord bot for your server (i'm bored).

Link to comment
Share on other sites

Unless you are asking someone to make this for you, I'm moving it to Skript Discussion. You can just use the place event, check what block got placed, check if the player is not op, and if they aren't, cancel event. 

Discord - tarna256

In-game name - _Tarna_

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

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

[VIP] - 7/27/2020

Community 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

6 hours ago, The_Pr007 said:

I require a skript that doesn't allow non-op players to place barriers, bedrock, structure void. is that possible???

I don't know this will work for you but here is what I made

you can change the options to better fit your server or the permmison

#------------------
options:
  permission: block.admin
  noperm: &cHey, &7you cant do that
  prefix:  &7&k[[ &bBlock &7&k[[ &7
#------------------

on place of barrier:
	if player has permission "{@permission}":
		stop
	else:
		send "{@prefix}{@noperm}"

on place of bedrock:
	if player has permission "{@permission}":
		stop
	else:
		send "{@prefix}{@noperm}"


on place of structure void:
	if player has permission "{@permission}":
		stop
	else:
		send "{@prefix}{@noperm}"

 

Edited by Boxmonkey
to help
Link to comment
Share on other sites

@Boxmonkeyyou can condense that so it is like this:

on place of barrier, bedrock or structure void:

 

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

The

15 hours ago, Boxmonkey said:

I don't know this will work for you but here is what I made

you can change the options to better fit your server or the permmison


#------------------
options:
  permission: block.admin
  noperm: &cHey, &7you cant do that
  prefix:  &7&k[[ &bBlock &7&k[[ &7
#------------------

on place of barrier:
	if player has permission "{@permission}":
		stop
	else:
		send "{@prefix}{@noperm}"

on place of bedrock:
	if player has permission "{@permission}":
		stop
	else:
		send "{@prefix}{@noperm}"


on place of structure void:
	if player has permission "{@permission}":
		stop
	else:
		send "{@prefix}{@noperm}"

 

the skript barely works, the message gets sent but the block gets placed. You should modify that in cancel evnt?

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