Jump to content

execute player command "/test" as op

Recommended Posts


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

My advice would be to use SkRayFall.

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




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



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