Jump to content

execute player command "/test" as op


Recommended Posts

Heya!

I'm not entirely sure what you're trying to achieve.

My advice would be to use SkRayFall.
https://skripthub.net/docs/?id=100

on npc right click:
	send "You just clicked an NPC with ID: %event-number%"

This would be a simple solution to detect clicks.
You can code whatever you desire, that was just an example. 🙂 

Always feel free to contact me or continue this thread if you need more help

 

image.png.e46e91961f1d6d4604a6e5f3dcb5a2bd.png

unknown.pngunknown.png

Link to comment
Share on other sites

If you have TuSKe, you can do make player execute "/npc" with permission "skript.npc". Another way you could do it is with worldguard. If you have a region by the npc, you can test if the player is in a certain region when they did the command. If they are in the region, the stuff you want happens and if they aren't, it sends a message saying you cannot do this here or something like that. Or instead of making them execute a command, just make the things that happen in the command just when you click the npc. Unless you want there to be a command that some people can do.

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

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