[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

    Codisimus

    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

    Code:
    DreknorIn;1;4;13;2;scudmaster;Codys_World;-174;55;-102;
    -175:55:-101;-174:55:-99;
    
    [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);

    Features:
    • 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:
    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

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




    ToDo:
    • Send items to owner
    • Add option of using a door instead of a fence block
    • Add pressure plate support
    Changelog:
    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

    riuthamus

  3. Offline

    Codisimus

  4. Offline

    SunShe

    Nice dude, i personaly not use it, but the idea was nice. ( about your video ) Nice way to make minecarts payable.
     
  5. Offline

    riuthamus

    It is a simple currency plugin that lets players have fake currency. Its light weight... for the longest time I have wanted the ability to charge people for things like this and now we can using our econ system and your plugin! Kudos! Also adding a link for your plugin to our page as a supporting plugin! So you can get more interest.

    Is there a possibility of getting entrance only, and exit only?

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

    Codisimus

    I'm not sure what you mean by this, have you watched the video? as long as the button is not visible from the other side it is only one way. or are you thinking of something else?

    I appreciate the link on your page as well.
     
  7. Offline

    riuthamus

    hm... thats what i thought would be possible, thanks just wanted to make sure

    okay, in our plugin we have banks... would it be possible to add a flag for tollbooths like...

    /ts chargeto bank/personname

    this way the money would go directly to an account or person after its been charged? This is a crazy request, just wondering.

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

    Codisimus

    I would be more than willing to add any features requested, however I do not fully understand what you want.

    Right now when someone goes through the turnstile (we will call them the user), money is deducted from the User and added to the Owner of the turnstile. Do you want money to be deducted from a Bank instead of a User? If so would this be for specific Users, specific Turnstiles, or globally? Or are you looking for money being added to the Bank instead of the Owner?
     
  9. Offline

    Major

    Looks awesome :) Could you also add permissions support, so you can only go through if you're a certain rank? That would be awesome.
     
  10. Offline

    Codisimus

    just updated to require permissions support, turnstile.use is needed to use a turnstile

    fixed error of needing permissions in v0.6.1

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

    Major

    Awesome. Do they still have to pay a fee?

    And err.. does the node mean only people with that one can get through, and anyone without it can't, or everyone else has to pay?
     
  12. Offline

    Codisimus

    That node means they can get through but have to pay, turnstile.admin.ignore.price means they can get through for free. if they don't have either they can't get through. note that the price can be 0 so none has to pay, but they still need turnstile.user
     
  13. Offline

    dak393

    Would it be possible to make the turnstile stay open until a player passes then close once they are through? And I would second the request to configure where the money goes ex: a Town Bank being paid for turnstile uses.
     
  14. Offline

    Codisimus

    I have not yet found how to register when a player passes through the block but I'm looking into it. I will also be adding an option for sending money to a bank
     
  15. Offline

    DJ_Idol

    Awesome! I just got on to search for something like this haha. Thank you very much!
     
  16. Offline

    dak393

  17. Offline

    Codisimus

    ill look into that after finishing your previous requests
     
  18. Offline

    dak393

    Thanks :D Great work so far!
     
  19. Offline

    riuthamus

    very enjoyable, once this is addable to the banks this will be the soul way our cities can make money! so nice!
     
  20. Offline

    Jinori

    Awesome idea for a plugin, but when it loads
    "Turnstile successfully loaded with Permissions!"
    is in my console about five times. And when I attempt to use commands, it confirms it
    and then issues two uknown console commands.
     
  21. Offline

    Codisimus

    Could you show me exactly what its doing?

    I am hoping to have this feature available within 24 hours

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

    Jinori

    [​IMG]

    It makes the turnstiles, and links with the button, just does not charge money with iconomy; could it be conflicting with other plugins? Does the same thing with Craftbukkit 531 and 556 recommended builds

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

    Codisimus

    In version 0.7 turnstiles close after a player walks through them.
    will implement banks in the morning.

    fixed in v0.7

    in order to charge money you must use /ts price [Name] [Price] to set the price (initially it is at 0). If using permissions and you have the following node turnstile.admin.ignore.price then you will not be charged. They only conflict that might occur is with iConomy and BOSEconomy but i don't see why anyone would have both of them
     
    dak393 likes this.
  24. Offline

    Jinori

    Thanks! The update fixed it. I didn't have anyone here testing it with me, so I was probably triggering the ignore.price

    Awesome work, and thank you again.
     
  25. Offline

    dak393

    <3 WOW
     
  26. Offline

    Funkfoose

    Can you set the price as a negative value? I was thinking at like the end of a dungeon or maze or something, so you could reward a user for passing through. Great work on this anyways, very useful to set up for a number of things.
     
  27. Offline

    dak393

    Great Idea! Was trying to figure out how to do a dungeon as well, I don't see why it wouldn't accept negative numbers try it out (or I will and I'll post results)
     
  28. Offline

    zwarmapapa

    2 things:

    1st: /ts gives an error, make it do the same as /ts help (check if the array after string split is only 1 in length, or use a try/catch)
    2nd: when you spam the button, your money will be set to 0 (this is because of an iconomy bug), let a button press only remove money when the gate is currently closed

    Other than that, I like you addon :p
     
  29. Offline

    Codisimus

    both fixed in Version 0.7.1

    There are a few problems with doing this, if a button is pushed a player can easily walk backwards through it. Not sure if that makes sense to you but I'm working on a way to do this. If I can't figure it out I will proly create an entirely new plugin just for this type of thing. I'll keep you posted.
     
  30. Offline

    dak393

    Little buggy so far returning unknown command in chat but working, comes up twice in server log (kind of takes up space), and setting a price was not working for me.
     

Share This Page