[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


    well i just updated so you cant go negative... however if you dont have enough it wont open at all. perhaps ill add an option so instead of '9999999' you could put 'all', then when i read all i will just clear the users account balance.
    p.s. this is an issue with my plugin not BOSEconomy

    So i think i need to take a day to clean up my code, added the config file left me with very long lines with lots of 'ands' 'ors' and 'nots' once i fix this i sure i will resolve most of the errors that are occurring
  3. Offline

    Marco van Dijk

    Thank you, cause that sounds really awesome, i hope the plugin gets this new update really quick!
  4. Offline


    Just recently starting useing this, the update just recently fixed a few things.
    However, when someone with no money or - money hits the button they get the message( You don not have enough money to open it) but then it opens anyhow, and they can go thru.
  5. Offline


    hi guy

    we found your plugin and we need it so much :p

    but there are some issue we have :

    the first and not very important is that the permission seem to not load when using the /permissions reload, we need to restart our server :p (only for this plugin all other plugin permission reload successful :/)

    the second and the biggest are the same asMoe041991
    but we know how to do this : spam one turnstile if i use one turnstile a lot of time this error appear and we get kick on use all the buttom (only button i have test door and other nothing happens.)

    the log of the error :
    the third and surely the second biggest :p :
    when a player have 0 money the plugin say that we have not enought money to use the turnstile but still open the turnstill :/

    and the last : after the second error the player kick join se server and we have this :

    we use the 0.9 and the lastest build of craftbukkit (544) also some other plugin like : world edit, world guard, lwc, iconomy and minecartmania.

    if you can make something about the error of the kick this plug seem very interesting for my futur parc :p

    good day :)

    Edit :
    the second and last error are no longuer working :p we update craftbukkit and after 15 min of spamming one turnstile i dont have benn kick :p

    but the two other are always here :p
  6. Offline


    Ok, I'll try with a chest and let you know how it works and if I have some suggestions.

    Ok, thanks :).

    I really like this plugin, keep up the good work :D.
  7. Offline


    ok i will look into all these errors tonight, until then if you are having lots of issues 0.8.3 is more stable (old versions can be downloaded from the Download Page)

    i attempted to implement this feature however it is harder then it sounds... i am still trying to make this work though.

    as for your other errors perhaps try updating craftbukkit, it worked for others.

    Good bc those two I'm pretty sure I know how to fix =P

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


    for some reason when users have no money they can still open the turnstile. They get the message about not having enough coins but it still opens.
  9. Offline


    Does this work with iConomy accounts?
    I would like this feature:
    Earn (open)

    #Shows how much the toll has earned you.
    /ts earn [NAME]
    - 'turnstile.earn'
  10. Offline


    I know about this error and have fixed it, it will be in the next update (tonight)
    great idea! was going to keep tally of how many times it was used and this can easily be integrated as part of that, will be in next update.
    MationMac likes this.
  11. Offline


    thanks for the swift response. Your mods look great, I'll most likely be trying the others soon enough.

    Edit: Would it be possible to charge for a dispenser use? So I could set up a bread dispenser and charge like 5 coins per use.
  12. Offline


    @riuthamus What texture pack you use?
    Or maybe someone else know it?
  13. Offline


    hmm. would have to lock the dispenser so noone can open it... then the button will activate the dispenser and maybe i can make it so you can link buttons to a turnstile that dont actually have a fence block... ill let you know wut i come up with

    I'm debating whether I should change the system so you press the button, it opens the turnstile and says "turnstile costs x coins to enter". then the user is not actually charged until they step through it. and if noone steps through it within 10 seconds or so it closes.

    wut do you guys think? is this better should I change it?

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


    That sounds good but i have signs clearly marking that it costs to use each terminal. i also like that some players can pay for other peoples entry as well.
  15. Offline


    ok ill wait to see wut others think.
  16. Offline


    I think its a good idea as well, that way it cant be used to scam newer players out of money.
  17. Offline


    I use my texture pack, its not done but you can download and use the CURRENT version if you like?


    Again this is by no means complete, but it has MOST of the blocks in there.
  18. Offline


    Thanks :)
  19. Offline


    I think it's a good idea, then if a player hasn't enough money he should be pushed back to where he was like in Borderguard when you reach a border.

    Then if a player want to pay for another one, he's still able to give him some money ;).
  20. Offline


    Don't know if im doing something wrong or not, but i'm getting a "Insufficient Permissions" error when i try to open a TurnStile by using a button. I am using Permissions, with - '*' added to my Permissions config file, yet i still get an error.
  21. Offline


    Does your permissions config file have the same name as your world ? (worldname.yml)
  22. Offline


    I am uploading v1.0 as we speak, should have little to no errors.

    lots of stuff added/fixed
    i forgot have of the upgrades
    let me know if i forgot sumthing

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


    I updated to 1.0 and made a few tests :

    Tests with a button linked:
    • I do pay when I use a turnstile even if I have all permissions and I have the confirmation message :).
    • I tried to change the TurnstileAutoCloseTime to 10 but the turnstile does not open at all. If I change it back to -1 it works again.
    I also made a few tries with a chest linked :
    • The items I place in the chest are sucked when I punch it and I have a message saying that the turnstile is open but it's not.
    • If I place more items than the turnstile requires they are sucked too if they have the good ID. (It's not really an issue, people should be careful of what they put in the chest before punching it).
    • If I place the good number of items but in several stacks, it doesn't work and I have a message saying that the items have not been found. Therefore unstackable items wiil not work if the tunrstile requires more than one.
    Somme suggestions :
    • Adding an option to the config file to edit the different messages.
    • Maybe pushing a button instead of punching the chest in order to open the turnstile.
  24. Offline


    In my attempt to use 1.0 i got the following:

    rolled back to .9 for now.
  25. Offline

    Marco van Dijk

    Maybe make it that you can link a sign to the tunstile, which will then display the amount of times it has been used or the money the owner received in total.
  26. Offline


    Remove the "Turnstile" folder. (But be sure to backup your config file)
    1.0 Changes how some of the files work. Too much trouble trying to find out what's wrong.
  27. Offline


    I realize autoclose isnt working... I cannot figure out a good way to code it
    I will test chests later
    I made it suck all the items on purpose but I could change it
    I'll try to fix split stacks
    I'd rather not add custom msgs but if other people want it then I'll consider it
    How about on placing an item into a chest? (I think that is possible...)

    @Marco van Dijk
    This informations can be viewed with '/ts info' or '/ts earned' but I will take that idea into consideration

    I would first delete the config file and if that doesn't help then post your save file and i can fix it for you (you don't want to use v0.9 as it has a multitude of issues with it)
  28. Offline


    Is there any bank plugin that works with iConomy AND Turnstile?
    Or does the /ts bank - only work with BoseConomy?
  29. Offline


    BankAccount will work with this very soon, I am halfway done coding it
    MationMac likes this.
  30. Offline


    That's fine for me like that.


    Yeah, why not.
  31. Offline


    I'll add it but let me update my other plugins first

Share This Page