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]
The all-locked issue is still there it seems. I think your 2.0.2 download might be wrong? As loading that still claims it's 2.0.1
It would be really cool to use this with the new fence gates.
@forceserver
@dealmac
Are there still conflicts with Spout? What are they exactly?
@sheepwool7
Not all my plugins are on here yet... still working on them. I really want to get them up here by tomorrow but idk if that will happen.
@Lextao
I may have left that out on accident...
A one way Turnstile only works with pressure plates and buttons, not chests (Chests will simply make the Turnstile two way.
The direction that the Turnstile can be entered from depends on the location of the linked block.
A pressure plate must be placed directly in front of the gate (can be a couple blocks back but must be lined up)
A button must be facing the direction that the Player will enter from.
Take a look at the picture I uploaded... The button you see controls the right Turnstile and the plate controls the left. both are one way Turnstiles. (Note that Turnstiles can have more than one button linked to them and he direction will depend on which button is pressed)
I hope that helped, I will add this to the description later. Let me know if you have any other questions.
@sheepwool7
Click on the Autor
How exactly do i make a one-way turnstile? Or isnt it a feature yet?
Thanks for the 2.0.2 update! :)
can you link to your other plugins on here? I seem to have lost my bookmarks.
NVM, When i create a turnstile i says its locked? i used /ts free but still locked.
Help!
Seems like is not working with Spout?
CB: #1185 Turnstile: Latest Spoutcraft: 1.8.1 #509 Dev build Spout: 1.0.6
@forceserver
I have the same error as this gentleman.
using Spout 1.0.6 build 381 for CB 1185 on my server
Khalysto
please test to using spout
02:23:30 [SEVERE] Could not pass event PLAYER_INTERACT to Turnstile java.lang.NullPointerException at Turnstile.TurnstilePlayerListener.onPlayerInteract(TurnstilePlayerListener.java:375) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168) at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:109) at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:71) at org.getspout.spout.block.mcblock.CustomBlock.a(CustomBlock.java:327) at net.minecraft.server.Entity.move(Entity.java:601) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:330) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:618) at net.minecraft.server.Packet10Flying.a(SourceFile:126) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Thank you for the update :D
do you have the plan to update this plugin?
Download? :P