Turnstile
Version 2.7.0
NOTE: This plugin requires you have Vault enabled on your server
This plugin is used to create a Turnstile to prevent players from entering certain locations without paying money/items.
A Turnstile is a gate made up of a fence block or a door, this gate is only opened by paying money (triggered by either pressing a linked button, standing on a linked pressure plate, or walking through it) or placing specific items in a linked chest. The gate will close once someone steps through it or after a certain amount of time. Money/Items goes to the Turnstile owner (Money may go to a bank)
Features:
- Supports all major Economies and Permission Plugins thanks to Vault
- You can change what command this plugin uses by editing the plugin.yml (found inside the plugin jar file)
- MultiWorld support
- Configurable properties
- Custom messages
- Turnstiles can charge specific items instead of money
- Turnstiles may be set to charge money and allow the Player to pass for free for a given amount of time (like a day pass)
- Set different Turnstiles to unique prices and owners/banks
- Make Turnstiles one way
- Players can be charged either when they open the Turnstile, or when they walk through it
- Restrict use of a specific Turnstile to a certain group
- Create private Turnstiles only you can use
- Make a Turnstile Free or Locked during a certain time of day
- Autoclose timer
- Create Signs that automatically display and update Turnstile information
- Charge users money to create turnstiles
- Only owners and admins can destroy Turnstile blocks, buttons, and chests
- Only one person may look into a Turnstile Chest at a time
- List and locate Turnstiles
- Durability support
- Supports fence blocks, iron or wood doors, trapdoors, and fence gates
Permission Nodes:
- turnstile.open = Needed to open a Turnstile
- turnstile.sign = Needed to make a Turnstile Sign
- turnstile.make = Needed to make a Turnstile (/ts make)
- turnstile.set.price = Needed to set the price of a Turnstile (/ts price)
- turnstile.set.owner = Needed to the owner of a Turnstile (/ts owner)
- turnstile.set.access = Needed to set who has access to a Turnstile (/ts access)
- turnstile.set.bank = Needed to set the bank that a Turnstile is connected to (/ts bank)
- turnstile.set.free = Needed to set the time that a Turnstile is free (/ts free)
- turnstile.set.locked = Needed to set the time that a Turnstile is locked (/ts locked)
- turnstile.earned = Needed to see how much a Turnstile has earned (/ts earned)
- turnstile.collect = Needed to collect money/items from a Turnstile (/ts collect)
- turnstile.list = Needed to see a list of Turnstiles (/ts list)
- turnstile.info = Needed to See info about a Turnstile (/ts info)
- turnstile.openfree = Open Turnstiles free of charge
- turnstile.ignoreowner = Edit other Players' Turnstiles
Commands:
Turnstile Signs:
Turnstile Signs can automatically update information
Each Sign can display two pieces of information such as:
- Name: The name of the Turnstile
- Price: The amount of money to use the Turnstile
- Cost: The item cost to use the Turnstile
- Counter: The amount of Players who used the Turnstile
- Money: The amount of money the Turnstile has earned
- Items: The amount of items the Turnstile has earned
- Access: Whether the Turnstile is public or private
- Status: Whether the Turnstile is open, free, or locked
Format:
- ts link
- [Turnstile Name]
- [Information type 1]
- [Information type 2]
Hoping the author concentrates on finishing recording of this one now, as we have a number of features 'out of action' at the moment. It's a fantastic plugin, and a shame 1.8 has broken it.
@frizzbee30
I see...
Well, I guess I'm in the same position. We just have to be patient with this and wait for updates on almost everything haha... :p
You're welcome! ;)
@Riuzakisan
Hi, we already have the nodes in. It only stopped working in either a later commit of vault, worldguard or spigot. It's not the new interaction flag, or allow, as they are enabled. Just waiting for the next update as we do have a few long standing turnstiles that are now 'down'. Thanks :)
@frizzbee30
Well, it works for me.... actually, it didn't work at the beginning and so I decided to add the permissions nodes under my Admins group into Permissions.yml (I'm using PEX) and then it started to work.
You could try that, maybe will work for you... :-)
WOW, this is just an amazing plugin. Thank you so much!
I've been testing a few things and the only one I cannot make it work is to get the money deposited into a bank.
I'm using:
When I sync the TS to give me money directly, it does it. The line in the properties file looks like this:
Owner=Riuzakisan
But when I set to deposit the money into a bank, I get this message:
Money from Turnstile test2 will go to Lawliet
('test2' is the name of the TS and 'Lawliet' is the name of the bank)
and the properties of my TS looks like this:
Owner=bank\:Lawliet
and even though, when another player activate it and passes the gate, it deducts the money from that player but it doesn't put it into the bank. (sounds familiar in the real world haha...)
Not sure if it's a Spigot bug or a plugin bug or a combination of both... it would be nice if you could get your hands on this again because it's one of the best Pay To Get Access plugins out there.
Still, it works perfectly for what I wanted to do so, I will keep using it!
Thanks again!!!
@Codisimus
great, as latest spigot appears to have broken it. All commands there, but turnstiles don't open, but money is deducted.
I have almost completed the re-write. all that is left is to convert the plugin commands to my custom command handler to allow easily adding new commands in the future. I am also tossing in some new features as I go through the code.
@Codisimus
Fantastic! thanks :D
This plugin will be getting a special rewrite and will be updated to be more efficient and be able to use the newer blocks. Stay tuned!
the plugin is still working good for me on 1.7.2 except with the money ! i wrote /ts price "name" 10 but the money is not deducted on my balance
@catprowler
I believe I figured this out. The citizens needs to be false.
Hi there, I keep getting this error in the console http://pastebin.com/RQ2Hwn9L I'm not sure if this is a concern? Will it prevent the plugin from working? Is there a fix? Thank you.
An update should be appreciated ;-)
Waiting for a future update, can't use chests, when I try to /ts link Test while looking at chest it says You must Turnstile to a button, chest etc..
update
Didnt even notice it was trapped chest, sorry.
I want to update this but have been very busy lately (read my post on PhatLoots). Once I have time, this will be updated.
Please update!
Great plugin, but it's not possible to use with an item based economy - it always takes money from the account without checking if the player has the currency item in the inventory.
It's a great plugin, I have a suggestion: At present, when players drop the items (e.g. 5 emeralds) into a hopper linked to a chest linked to a turnstile, they must open and close the linked chest before the turnstile opens. A player should just be able to drop the necessary items in the hopper when the turnstile opens. Thanks, Badger_1.
Yeah, funny story. When I made a sign for a turnstile, it put 20 characters on one of the lines. Then I had to use MCEdit to get rid of the sign. (When the client loads a chunk, containing a sign with too many characters, the client disconnects.)
EDIT: Apparently, if your economy system (I use iConomy) supports the "cent" system, and your currency has a relatively long name, this plugin will try to use that name, resulting in the sign issue.
For instance, if I used "Dollars" and "Cents" as my currency's name, and I sent the price of a turnstile to 10.05, then set a sign to display the price, it would display on a single line: "10 Dollars, 5 Cents" which is clearly too long.
Instead, you should just display it as "10.5 Dollars" (using this same scenario), AND add a failsafe to destroy the sign instantly if the plugin does indeed try to put too many characters on the same line.
How do I stop people getting through a turnstile for free if they have a balance of '0'?