[RPG/MECH] Turnstile v1.9.1 - Charge players money/items to enter an area [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 15, 2011.

  1. Offline


    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    Turnstile - Charge players money/items to enter an area:
    Version: 1.9.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    This plugin is used to create a Turnstile to prevent players from entering certain locations without paying money/items.

    The Turnstile is made up of a fence block, this block will disappear when a linked button is clicked. The block will reappear when walked through or after a certain amount of time. Money is deducted from the user when they press the button (or walk through the Turnstile if 'NoFraud' is set to true in the config). All money deducted is given to the owner/bank of the Turnstile.

    Turnstiles can also charge items by linking a chest instead of a button. Put the required item in and punch the chest to open the Turnstile.

    Format of Save file:
    Show Spoiler

    [Name];[Price];[Earned];[ItemID.Damage Value];[Amount of item];[Owner];[WorldName][x];[y];[z](of location of Turnstile);
    [x];[y];[z](of location of linked button/chest);[x];[y];[z] (of location of linked button/chest);

    • Configurable properties.
    • Custom messages
    • No Fraud mode (Turnstile doesn't charge until walked through)
    • Restrict use of a specific Turnstile to a certain group
    • Make a Turnstile Free or Locked during a certain time of day
    • Autoclose timer
    • Create private Turnstiles only you can use
    • Only owners and admins can destroy Turnstile blocks, buttons, and chests
    • Edit turnstiles easily in game or in the save file
    • Only the owner/bank owner can edit a turnstile
    • Turnstiles can charge specific items instead of money
    • Durability support
    • Turnstiles can also be free to use
    • Charge users money to create turnstiles
    • Set different Turnstiles to unique prices and owners/banks
    • List and locate Turnstiles
    • MultiWorld support
    • Uses iConomy, BOSEconomy or Essentials to charge users money
    • Permissions to limit players from using turnstiles, for all commands (except help), and for admins
    • Included in CraftBukkitUpToDate for easy updating (make sure you come check the changelog if somthing is not working right)
    Commands can be written as /turnstile or /ts
    Show Spoiler

    • /ts make [Name] - Make target fence block into a Turnstile
    • /ts link [Name] - Link target block with Turnstile
    • /ts rename [Name] [NewName] - Renames the Turnstile
    • /ts unlink [Name] - Unlink target block with Turnstile
    • /ts delete [Name] - Delete Turnstile and unlink blocks
    • /ts price [Name] [Price] - Set cost of Turnstile
    • /ts price [Name] [ItemID(.Damage)] [Amount] - Set cost to item
    • /ts access [Name] public - Allow anyone to open the Turnstile
    • /ts access [Name] private - Allow only the owner to open
    • /ts access [Name] [Group] - Allow only specific Group to open
    • /ts free [Name] [TimeStart-TimeEnd] - Free during timespan
    • /ts locked [Name] [TimeStart-TimeEnd] - Locked during timespan
    • /ts earned [Name] - Display money the Turnstile earned
    • /ts collect - Retrieve items from the target Turnstile chest
    • /ts owner [Name] [Player] - Send money for Turnstile to Player
    • /ts bank [Name] [Player] - Send money for Turnstile to Bank
    • /ts list - List all Turnstiles
    • /ts info - Gives info of Turnstile
    • /ts help - Displays Turnstile help page

    Permission Nodes:
    Show Spoiler

    • turnstile.open - Needed to be able to activate Turnstiles
    • turnstile.openfree - Player/Group is not charged to open Turnstiles
    • turnstile.make - Needed to make/link/unlink/delete Turnstiles
    • turnstile.makefree - Player/Group is not charged to make Turnstiles
    • turnstile.set.free - Allows Player/Group to use /ts free
    • turnstile.set.locked - Allows Player/Group to use /ts locked
    • turnstile.set.price - Allows Player/Group to use /ts price
    • turnstile.set.owner - Allows Player/Group to use /ts owner
    • turnstile.set.access - Allows Player/Group to use /ts access
    • turnstile.set.bank - Allows Player/Group to use /ts bank
    • turnstile.earned - Allows Player/Group to use /ts earned
    • turnstile.admin.list - Allows Player/Group to use /ts list
    • turnstile.admin.info - Allows Player/Group to use /ts info
    • turnstile.admin.ignoreowner - Player/Group can edit any Turnstile regardless of being the owner

    NOTE: New Tutorial video, Please watch before asking questions.

    • Send items to owner
    • Add option of using a door instead of a fence block
    • Add pressure plate support
    Old Versions + ChangeLog can be found at Download Page
    Show Spoiler

    Version 1.9.1 (7/16/2011)
    • Added rename command
    • Now allows multiple Turnstiles per block
    • Fixed Access
    • Added color support for all customizable messages
    Version 1.9 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Fixed collect command
    • Added option of door instead of block
    • Added pressure plate support
    Version 1.8 (6/12/2011)
    • Cleaned up code/fixed errors
    • Added /ts collect command to retrieve earned items
    Version 1.7.6 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 1.7.5 (6/3/2011)
    • Various fixes and code cleanup
    Version 1.7.4 (6/3/2011)
    • Added Essentials econ support
    Version 1.7.3 (5/20/2011)
    • Fixed durability support
    Version 1.7.2 (5/20/2011)
    • Added decimal support
    Version 1.7.1 (5/16/2011)
    • Readded the useOpenFreeNode and useMakeFreeNode options in config
    Version 1.7 (5/15/2011)
    • Changed permission nodes
    • Allow right clicking a button to open
    • Made Turnstiles unbreakable
    • Added command to allow group specific Turnstiles
    Version 1.6.1 (5/4/2011)
    • Updated to iConomy 5
    • Few various fixes
    Version 1.6 (4/29/2011)
    • Added durability support
    • Added custom messages
    • Fixed reload issues
    • Added No Fraud mode (Turnstile charges when walked through)
    • Added option to restrict use of a specific Turnstile to a certain group
    • Added option of making a Turnstile Free or Locked during a certain time of day
    • Added autoclose timer
    Version 1.5 (4/15/2011)
    • Improved multiworld support
    • Other various fixes
    Version 1.4.3 (4/4/2011)
    • Fixed isOp() conflicting with Permissions
    Version 1.4.2 (3/31/2011)
    • Few minor fixes
    • Works with build #612
    Version 1.4.1 (3/30/2011)
    • Can now use with left or right hand
    Version 1.4 (3/30/2011)
    • Fixed turnstile creation
    Version 1.3.3 (3/30/2011)
    • Updated to build #602
    • Changed the way you create turnstiles. Now you must target the fence block that will become a Turnstile
    Version 1.3.2 (3/28/2011)
    • Added private Turnstiles, Set price to -808 to make it so only the owner can enter
    Version 1.3.1 (3/28/2011)
    • Fixed error of crashing if owners name is < 5 letters long
    Version 1.3 (3/26/2011)
    • Added protection for Turnstile blocks, buttons, and chests
    Version 1.2.1 (3/24/2011)
    • Various fixes
    Version 1.2 (3/23/2011)
    • Fixed multiworld support
    Version 1.1 (3/23/2011)
    • Fixed paying with items not opening Turnstile
    Version 1.0 (3/23/2011)
    • Added an autoclose timer (set to -1 as default in config file meaning it will stay open until walked through)
    • Added '/ts earned [Name]' command (no permission node)
    • Fixed config
    • Added option of setting price to all (saved as -411 in save file) which will clear a players balance as the cost
    • Fixed error of turnstile opening without enough money
    • Fixed permissions reload
    • Fixed/added lots of other things I can't even remember
    Version 0.9 (3/22/2011)
    • Fixed error of no confirmation messages for iConomy
    • Added a check to make sure the balance has enough money
    • Implemented option of paying with a specific item
    • Added config file with the following options
      • CostToMakeTurnstile=0
      • useIgnorePriceNode=False
      • useIgnoreCostNode=False
    Version 0.8.3 (3/19/2011)
    • Fixed unknown command spamming chat
    • Fixed no Economy message spamming
    • Changed /ts locate to /ts info (turnstile.admin.info)
    Version 0.8.2 (3/19/2011)
    • Added multiworld support (you must rename save files to Turnstile[WorldName].save or turnstiles will not be loaded)
    Version 0.8.1 (3/18/2011)
    • Fixed /ts bank not working
    • Added /ts bank to help page
    • /ts bank now only works with BOSEconomy linked
    Version 0.8 (3/18/2011)
    • Added support for BOSEconomy banks
    • New node turnstile.admin.bank
    • New command /ts bank [Name] [Bank]
    Version 0.7.1 (3/17/2011)
    • Mispelled commands display help screen
    • If owner is set to "server" then money is not added or deducted from the owner
    • Button now only works when turnstile is closed
    Version 0.7 (3/17/2011)
    • Turnstile now closes after being walked through
    • Fixed error of "Turnstile successfully loaded with Permissions!" being displayed multiple times
    Version 0.6.1 (3/16/2011)
    • Fixed error that Permissions was required
    Version 0.6 (3/16/2011)
    • Added support for Permissions
    Version 0.5 (3/16/2011)
    Version 0.4 (3/15/2011)
    • Limited commands to the owner of the turnstile
    • Other various fixes
    Version 0.3 (3/15/2011)
    • Initial Release
  2. Offline


    I created a plugin called DungeonReward, it teleports instead of using fence blocks to prevent users from farming it. I am also working on a plugin for getting loot for dungeons.
  3. Offline


    Oh that reminds me, i was going to ask if you could think about making it where a flag could be set in the config, to charge for placing. This would limit their ability to place hundreds. Since its a flag it could be set to 0 by default so if a server was freemode it wouldnt matter all that much.
  4. Offline


    This doesn't have to be for just stations does it.
  5. Offline


    I had everybody use the button at the same time... and...

    16:55:28 [INFO] [HeroChat] riuthamus: press the button
    16:55:30 [INFO] [Vampire v1.3] MadGod_Mugi was cured and is no longer a vampire.
    16:55:30 [INFO] [Vampire v1.3] Saving players to disk
    16:55:34 [INFO] [HeroChat] bye12: WI sh I could in vent
    16:55:36 [SEVERE] java.lang.IllegalStateException: TickNextTick list out of sync
    16:55:36 [SEVERE]       at net.minecraft.server.World.a(World.java:1519)
    16:55:36 [SEVERE]       at net.minecraft.server.World.g(World.java:1439)
    16:55:36 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    16:55:36 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    16:55:36 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    16:55:36 [SEVERE] Unexpected exception
    java.lang.IllegalStateException: TickNextTick list out of synch
            at net.minecraft.server.World.a(World.java:1519)
            at net.minecraft.server.World.g(World.java:1439)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    16:55:47 [SEVERE] java.net.SocketException: Connection reset
    16:55:47 [SEVERE]       at java.net.SocketInputStream.read(Unknown Source)
    16:55:47 [SEVERE]       at java.net.SocketInputStream.read(Unknown Source)
    16:55:47 [SEVERE]       at java.io.FilterInputStream.read(Unknown Source)
    16:55:47 [SEVERE]       at net.minecraft.server.Packet.b(SourceFile:113)
    16:55:47 [SEVERE]       at net.minecraft.server.NetworkManager.f(SourceFile:155)
    16:55:47 [SEVERE]       at net.minecraft.server.NetworkManager.c(SourceFile:9)
    16:55:47 [SEVERE]       at net.minecraft.server.NetworkReaderThread.run(SourceFi
  6. Offline


  7. Offline


    Also, it seems that there should be a timer since we have players who click the button, then just walk away cause they think its funny... and then it glitches the button out.
  8. Offline


    I'm not sure why but every time i restart my server to add a plugin or change something it seems all my turnstiles are broken and i have to remake them.
  9. Offline


    Yes could be used for entering buildings or anything really.
    They were all using the same button?
    This only supports banks for BOSEconomy, I didn't realize iConomy could have bank accounts too. I will look into adding support for this
    I don't see how that would glitch. should just stay open until someone walks through it or the server is restarted. But I can add a timer, about 1 min?
    Can you show me your save file?
  10. Offline


    thank you i have Tryed it I Like it
  11. Offline


    Working great so far on my server. Amazing but simple plugin, thank you for this!
  12. Offline


    It's a really big file if i need too I'll upload it later. I wasn't really sure why I was having to remake them I'm going to try to force the same results and I'll tell you whats causing it. But I will give you a heads up, it only happens in my second world. The one I made for testing still works fine in my default world.
  13. Offline


    By save file I mean the Turnstile.save
  14. Offline


    The way my hosting company works I can edit files and delete them but not re download them without first submitting a ticket. Anyways I have figured out exactly what causes it. Any restart regardless of how short it was will break any turnstiles in multiverse worlds.

    Although I can't submit my save here is whats inside.

    Everything but test and exit are in my second survival world. (ignore the bank parts I was trying to get it to work with the iconomy banks which it wont)
  15. Offline


    this makes sense bc when it loads the save file it will create all the turnstiles in your first world. Ok this should be an easy fix.
  16. Offline


    After I uploaded this and was looking at it. Thats exactly what I was thinking. Glad to hear its an easy fix :)
  17. Offline


    Version 0.8.2 supports multiworld but will not load old save file, rename save files to Turnstile[WorldName].save or just delete and recreate in game
  18. Offline


    Thanks so much! If we get private turnstiles (certain players may enter) and iconomy banks working this would be perfect!!! No rush though as long as I have this much I'll be happy.
  19. Offline


    Just finished my new plugin PhatLoots now i can get back to updating this one. both are great ideas and i will add them soon.

    EDIT: Although why not just use LWC or something like that to make a private door?

    Finished my new plugin PhatLoots It uses chests and can also give players items

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 12, 2016
  20. Offline


    I have 30+ pllugins sometimes it can stress my server a bit, I try to keep it as few as possible but i like so many! SO combining plugins is my best option.

    Also just made a post and as I was writing it I was thinking this would be right up your ally.
    check it out: http://forums.bukkit.org/threads/death-insurance-for-items.9164/
  21. Offline


    I would appreciate it if you would provide a static link to the author of CraftBukkitUpToDate to be compatible with that plugin. It makes it much easier to keep plugins up to date.

    Show Spoiler
    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is http://www.dropbox.com/ or for OpenSource https://github.com/.
    By the way, I also support zip-Files, please ignore users who say something else. But your zip and jar shouldn't equal any Version-Number.
  22. Offline


    thanks for the info I will be doing this for all my plugins by tomorrow
    Shenlong likes this.
  23. Offline


    If the link is broken for you, (as it was for me) here is another link:
    <Edit by Moderator: Redacted mediafire url>

    edit: Seems that one is broken too.
    Could someone rehost this somewhere else?
    Last edited by a moderator: Dec 14, 2016
  24. Offline

    Amin Azman

    link broken... thanks
  25. Offline


    Idk why they aren't working, I tried it earlier... I will set up mirrors when I get home
  26. Offline


    Can You Make A More Worlds Plugin S0 That You Can Type /goto [WORLDNAME] Like This: /goto flatgrass
    If You Could That Would Be SWEET Thank You For Reading :)
  27. Offline


    There are even simpler plugins that do what you want, I would suggest This one or you could use Codisimus's other plugin DungeonReward to tp to other world by pressing a button. However this plugin is unrelated to what you want.
  28. Offline


    dak393 is right this plugin is not made for that but my plugin DungeonReward supports multiworld warping and sounds perfect for wut you want

    I have to wait for the iConomy Bank plugin to allow me to tie into it. I will let you know when it is possible to do though

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 12, 2016
  29. Offline


    Links down currently
  30. DL link is broken =(
  31. Offline


    switched the link to go to my server webpage where you can download my plugins or old versions so dl should be working now

Share This Page