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]
@JoneKone
the owner is able to get those items by targeting the linked chest and using the command "/ts collect"
When i put a price of items in the turnstile?! Where do these items go?
@Alexxondre
@fisherman77
can I see your save files? also the Turnstile is deducting money, but you are the owner so it is giving the money back to you.
So, whenever I have a turnstile that costs $, it doesn't deduct anything, and when I do /ts info, I get this in the console and an 'an internal error while attempting to perform this action' org.bukkit.command.CommandException: Unhandled exception executing command 'ts' in plugin Turnstile v2.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 5) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3 78) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler. java:757) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) Caused by: java.lang.NullPointerException at com.codisimus.plugins.turnstile.listeners.CommandListener.info(Comman dListener.java:971) at com.codisimus.plugins.turnstile.listeners.CommandListener.onCommand(C ommandListener.java:213) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more
I have got the same problem as @wiliwanka, but i'm using iConomy 5.0.1
@wiliwanka
can I see your save files?
@Codisimus
I'm using Essentials economy
@Qismyname
I will add trapdoors as soon as bukkit makes them to be like doors (to allow me to setOpen())
Works great with buttons next to doors :D welldone!
But, Will only work with doors/fanses but not with trapdoors or any other block that to bad, hope you can add that.
But realy easy commands with 2 iron doors with 2 buttons work great to! Agian Well Done!
@wiliwanka
which economy are you using?
Hi I got this error with the 2.1.2 with Vault 1.1.9, when passing through a turnstile that cost money to use:
[SEVERE] Could not pass event PLAYER_INTERACT to Turnstile java.lang.IndexOutOfBoundsException: No group 5 at java.util.regex.Matcher.start(Matcher.java:374) at java.util.regex.Matcher.appendReplacement(Matcher.java:748) at java.util.regex.Matcher.replaceAll(Matcher.java:823) at java.lang.String.replaceAll(String.java:2201) at com.codisimus.plugins.turnstile.listeners.PlayerEventListener.onPlayerInteract(PlayerEventListener.java:105) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:109) at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:71) at net.minecraft.server.Entity.move(Entity.java:613) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:332) 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:93) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
@nnapior
download the current version
Hi i love the plugin and its awesome but the turnstile closes before I can go past it.
@Codisimus
If you have skype, msn messenger or steam, send me a PM and we can chat, it's better to chat there :P
@deleted_6861753
ok I'll look some more at the code.
@Codisimus
Why would you need that? Nothing happens with the turnstile when i push the button after linking them together and setting a price.
I tested it a bit, it will charge me money when I create it, and it works if I don't set a price on it. But as soon as I set a price, it wont open.
@deleted_6861753
can I hop on your server and check it out?
@Codisimus
Hmm, what do I do then?
@deleted_6861753
it didn't saw that it was enabled and registered by vault in that server log
@Codisimus
We use Essentials eco, and it works?