Hi, I'm trying to make a Houses plugin with Skript.
Basically, if I right click a door that is inside a region with no owners, the script will make the player execute the command "/buyhouse".
If I right click the door and I am the owner/member of the region where the door is located, the door is going to open.
If I right click the door and I am not the owner/member of the region where the door is located, the script is going to type to the player "&cYou are not the owner of the region"
I have tried a lot of things but I don't know the material type of the doors (I want to make Spruce, Oak, Birch and Jungle as doors)
And I don't know how to do the rest, I have searched this links:
http://en.njol.ch/projects/skript/doc/events#click
http://en.njol.ch/projects/skript/doc/expressions#ExprRegionsAt
http://en.njol.ch/projects/skript/doc/conditions#CondIsMember
But I don't know how to create the script.
Could someone help me or give me examples?
Basically, if I right click a door that is inside a region with no owners, the script will make the player execute the command "/buyhouse".
If I right click the door and I am the owner/member of the region where the door is located, the door is going to open.
If I right click the door and I am not the owner/member of the region where the door is located, the script is going to type to the player "&cYou are not the owner of the region"
I have tried a lot of things but I don't know the material type of the doors (I want to make Spruce, Oak, Birch and Jungle as doors)
And I don't know how to do the rest, I have searched this links:
http://en.njol.ch/projects/skript/doc/events#click
http://en.njol.ch/projects/skript/doc/expressions#ExprRegionsAt
http://en.njol.ch/projects/skript/doc/conditions#CondIsMember
But I don't know how to create the script.
Could someone help me or give me examples?