[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

    Codisimus

    ButtonWarp
    Permissions
     
  3. Offline

    wjdwndud0114

    /ts collect wont work
    i look at the chest the fence is linked to and type /ts collect
    and it just lists the commands of ts like it does when you type just /ts
    fix plz?
     
  4. Offline

    Boon Pek

    I'd like signs to be implemented here instead of utilising commands. It helps users identify the owner and price.

    [Turnstile]
    GreenSlime
    Money: 4.00

    or

    [Turnstile]
    GreenSlime
    Item: 271

    It'd be nice, and wont use databases :D
     
  5. Offline

    XtremeCheese

    One thing I've noticed on my server is that turnstiles in the nether stop working when you leave the nether. They're still in the turnstile database, however when you delete them the physical turnstiles don't delete automatically. Is this a known issue?
     
  6. Offline

    Codisimus

    This is a great idea. However, there are many features that would not work with signs...
     
  7. Offline

    wjdwndud0114

    i think u skipped my question
    /ts collect wont work
    i look at the chest the fence is linked to and type /ts collect
    and it just lists the commands of ts like it does when you type just /ts
    whats wrong..?
     
  8. Offline

    Codisimus

    Sorry, I'm fixing it now.
     
  9. Offline

    Marco van Dijk

    Hey, i use iconomy 5 but when i press the button, the money is being deducted from my iconomy account, but the owner doesnt receive it.
     
  10. Offline

    j_is_me57

    hey, im using essentials and when a player goes trough the turnstile, they arent charged... for me (cause im admin) it doesnt charge and i just go through but for others it always says not enough money... also im having issues with creating turnstiles... the first one worked but then after that the /ts make <name> command wouldnt work and i acctually had to get an older version to create a turnstile and then reload the save file back in with the newer version to make it work... which is fine i guess, but the fact it wont charge kinda defeats the purpose... i still have the plugin cause i think the idea is awesome but please help thanks
     
  11. Offline

    math132d

    i just get an error when trying to charge money for walking thru a turnstile.
    :'(
     
  12. Offline

    SpeakingCactus

    Erf... /ts access command doesn't work ?
    I mean, i've Cactus and CactusVIP rank, i type:
    /ts access Rikam CactusVIP
    .. A message says that everything is okay, access for VIP registered, but Cactus can open the fence too!
    How is it possible ? The only permission node i set is turnstile.open
    ..
     
  13. Offline

    gameswereus

    great mod, thanks!!
     
  14. Offline

    Codisimus

    UPDATE!

    Can't find who requested it but I added pressure plate support.
    Also you can now link doors instead of fence blocks
     
  15. Offline

    math132d

    this is not working.
    when i set a price to enter no one can enter and the console says
    "[servere] could not pass event PLAYER_INTERACT to turnstile"
    plz help me :'(
     
  16. Offline

    ktccd

    I got a weird bug...
    made a fence and chest. I used /ts make Hub_Crystal_Z on the fence.
    Then /ts access Hub_Crystal_Z Zipco
    then /ts link Hub_Crystal_Z on the chest.
    Now anyone, even non-Zipco members could use it (name of group is Zipco).
    Help? :S
     
  17. Offline

    Codisimus

    Just to make sure is their inheritance? Any errors thrown?
     
  18. Offline

    jonDatz

    I'm not sure if this was mentioned before, but is there a way to make the turnstile configurable with size / block type. I would like to make a turnstile that is wider, or maybe even taller, as sometimes a single fence may look sort of odd.
     
  19. Offline

    ktccd

    We simply made a group named Zipco with no commands and inherits from the regulars group. The plugin works, except that anyone can open the turnstile (for now, we're using a secret payment).

    EDIT:
    Removing inheritance does not help.

    Second bugreport (kind of urgent, but not as urgent as the group thing):
    Placing more items inside it than needed removes all of it and won't return the excess anway.
    Could you make it not take the excess amount, allowing someone to pay for multiple people at once, or make it return the excess items to them?
    (This is concerning only when you have MORE of the priced items than asked, not just more items).

    EDIT 2:
    In fact, it'd be best if the turnstile did not work when you enter too many items. We use a special number of a certain block to use our personal turnstiles until the group access is fixed, so someone could just put a stack of every block until they found the right one......
     
  20. Offline

    Codisimus

    It now supports using doors instead of fence blocks... would you still request to make it wider?

    Can I get on your server and check it out?

    how about it only works when the exact amount is in there with no other blocks?
     
  21. Offline

    jonDatz

    Adding doors is a very cool feature. Thanks for the quick response
     
  22. Offline

    ktccd

    to the second bug, yes please. Do that, so we can have secret X number of Y and that can't break it by placing 64 of Y and get past.
    Also:

    Can I get on your server and check it out?

    No idea, not my server. That's all the info though, can you not replicate the situation?
    • group with no commands and 2 members
    • turnstile with that group as access only
    • other members of some other group
    • chest linked to turnstile with price 2 cobble
    That would, for us, let any of the other unrelated group pay 2 cobble to get past. We expected them to get an error and be refused...
     
  23. Offline

    Codisimus

    Last time I tested that feature it worked fine and I haven't edited that code since then... but I'll test it again just in case.

    EDIT: What version of Permissions? I want to install the same one
     
  24. Offline

    ktccd

    Think it's 3.1.4

    This could probably be fixed with some tutorial info on how you did it as well. I mean, those videos mostly show how you use them, not much how to set them up, how you can set them up, different methods and such.

    Also, doors in the wrong direction close so fast you can not get back out, making them one-way doors and kind of useless for my 2 way teleport rooms.

    Further, is there some way to set the same block as several turnstiles? I gotta make a big, complicated fence-system to have more than 1 different option of payment, group discounts and such.

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

    Headsuphunter

    you should add a command where we can change the names for turnstiles so if what they are for changes they can change.
     
  26. Offline

    LucidLethargy

    Thank you so much for keeping this plugin going, It never seems to have a lack of use on my server!
     
  27. Offline

    cpalms

    Can you add more than one group to /ts access [GROUP] ?
     
  28. Offline

    Codisimus

    The first video shows how to set it up, but I will be adding more vids

    Right now you would just have to make two separate Turnstiles, sorry

    I'm pretty sure you could link a fence block or door to several Turnstiles. I can't test it though bc Minecraft won't let me connect at the moment

    Sorry, idk wut you mean.

    no. unless you make separate Turnstiles as mentioned above.
     
  29. Offline

    kahlilnc

    Is it possible to make one button cost (in) and one button not (out)?
     
  30. Offline

    Codisimus

    again this could be done by making two different Turnstiles on the same block
     
    kahlilnc likes this.
  31. Offline

    kahlilnc

    Says turnstile already exist there.
     

Share This Page