TrainTicket
TrainTicket v1.5
Download for Bukkit (V1.7.9, 1.8, 1.7.2)
Trainticket allows only people with 'tickets' to enter minecarts and boats. This Plugin now boasts ticket hooking an and integrated economy system, perfect for those roleplay moments! You can now create [booth] signs to sell tickets... and only players who have bought a ticket may enter with a piece of paper.
VAULT enables the economy system, it is required if you would like to use iConomy, essentialsEcon or any economy plugin with TrainTicket. If Vault isn't detected, TrainTicket switches to using gold ingots. For details on how this gold ingot system works, see the 'known caveats' section of the dowload page.
Description
Basically, the plugin cancels the player from being able to enter a cart if they do not have a 'ticket' (a piece of paper). Players must have a ticket in their hands to be able to enter a minecart. On entering a minecart, the player is sent a message simply saying that they have entered the minecart, and the ticket is removed from the player's hands. A player must have a ticket in their hand in order for this to work. On player exiting a minecart, the player is sent a 'Hope you enjoyed the trip!' configurable message and is dismissed from the minecart. I plan to add more configuration options in the future.
Players buy tickets from [booth] signs, they can be set up like this:
[booth]
<name>
<price, eg: 12.50, 5.70>
When a player with the permission node 'TrainTicket.booth.use' rightclicks these signs, the player will be given a ticket and permitted to enter a minecart with this ticket. If you are using the Gold Ingot currency, the ceiling of the number on the sign is the amount of gold ingots required. therefore, for 12.30 you would need 13 gold ingots to pay for the ticket. These 13 gold ingots would also need to be allocated as 13 somewhere else in your inventory other than the full stack of more than 13. The number in your inventory must be exactly 13, in a stack.
Permissions
- TrainTicket.exempt - Defines whether or not a player is exempt from having to need a ticket.
- TrainTicket.booth.use - Defines whether a player can use a ticket booth
- TrainTicket.booth.create - Defines whether a player or group can create a ticket [booth]
Planned Features
- Worldgaurd support, For regions.
Configuration
When you first run your server with trainticket, you will get a config file. Below is a config file with neccessary comments explaining every aspect of the TrainTicket configuration. You can copy + paste this into your config.yml
# TrainTicket configuration file example, with comments messages: #This is the message that displays when you enter a vehicle successfully enterMessage: You entered a cart with a ticket! #This message displays when you leave a vehicle leaveMessage: Hope you enjoyed your ride! #When you havn't bought the ticket, or you aren't holding a ticket this displays deniedMessage: Have you paid for that? / You need a ticket to enter that vehicle! #This configures whether or not messages are enabled enabled: true #This message appears when the player attempting to buy a ticket doesn't have enough money boothDenied: Insufficient funds to buy a ticket! #This message appears when a player buys a ticket, trainticket will replace %price% with the price, or you #can leave it out. boothAccept: You have bought a ticket for %price% booth: #The data value for ticket items, check data values at http://www.minecraftwiki.net/wiki/Data_values ticket_item_id: 339 #Configures whether or not a minecart is dispensed when a player buys a ticket. dispense_minecart: true
For Videos of the plugin in action, check out the Videos & Media page!
This plugin uses the default bukkit permissions. If you find only ops can do everything, then you are using an outdated permissions plugin. The plugin named 'Permissions' for example, is outdated. Post me a pm or comment if you have any issues.
Just about to release update 1.3:
As for the worldgaurd support, that is nearly here. You can browse the 1.3 source code at the official trainticket repository at https://github.com/wizzledonker/TrainTicket Goto the commits section for a description and outlining of what I changed in this version, in code.
Hey, I really like this plugin! You did some amazing work on it :)
I have a similar problem, and I can get in a train with or without ticket, even without being OP. Any ideas?
Thanks for your awesome work!
@TrynoCURSE
Unfortunately, I have not actually tested this plugin with 'Permissions', even though it is the default permissions plugin. There should be no problems, as this plugin uses the default permissions API and any permissions plugin developer should have support for that by now.
The permissions in question are the following two permissions:
TrainTicket.booth.use:
Description: Defines whether the player can buy a ticket from a ticket booth
Default: op
TrainTicket.booth.create:
Description: Defines whether the player can create a ticket booth
Default: op
Signs change to 'The Booth:' if the player does not have the second of the above permissions, the one which is required for booth sign creation. Anyway, I will look into it if this could possibly be a fault of mine, sorry if it is.
I Have Vault, Essentials,(Not EssentialEcon) iConomy, Worldedit,Permissions 3.0. But When A Non-OP With The Right Permissions ( - 'TrainTicket.booth.use') Right Clicks A Sign , He Wont Get A Ticket nor A Message, When He Tries To Make A [Booth] Sign, He Will Not Get [Booth], He Will Get "The Booth :" At The 1st Line.
@lambik
Yes, it is because you are op. The permission node trainticket.exempt defaults to op status. Probably best that you use a permission plugin. I'll fix some defaults in the next release.
I don't know if it is my faulty configuration but it is not working for me with minecartmania I can still enter the train without ticket ... or is it because im an op?
Since you are working on the WorldGuard feature, thats one request I don't have to make, but another, could you make it so the tickets cost gold ingots? Or possibly even custom items created by SpoutMaterials? Because I made gold coins crafted by gold ingots with that plugin, and I'd totally get this plugin if this were to happen.
@ItsKohle
I am working on it now. It shouldn't take too long. I will make this optional also. Is anyone aware of a region permissions plugin? Which changes permissions based on regions? If a plugin exists like this, that could be used as a temporary work-around.
@wizzledonker
Yes, I am also looking for something like this. Perhaps in certain WorldGuard regions it requires a ticket/doesn't?
@mcgerman
I would love that too, but it might be a bit hard to implement. I will integrate worldgaurd support soon so you can specify regions in which the player needs a ticket.
The Plugin is very good but, could you please add that tickets are only needed for special minecarts
@Jdon278
Hmm, I'll work on those features tonight so that I can get this plugin more remote. For now, you can use the permission node trainticket.exempt to make certain players not need a ticket to enter minecarts.
I will add an option to the config to set whether a player recieves a minecart when they buy a ticket.
Amazing plugin really love, but i need to be able to set it to certain things, so it will only work on my server roller-coaster and not other peoples minecarts, also an amazing would be to give them a minecart when they buy a ticket
@hittingal
Vault supports BOSEconomy, so you are all set! Simply download the plugin along with vault, and it will automatically hook with:
iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy and eWallet
All via Vault.
Could you add support for BOSEconomy? It's a really good Economy plugin, simple. I'd like to see this implemented :)
UPDATED:
It is the update you have all been waiting for!
UPDATED:
I am almost there with the other main features!
@gamemaster1494
I'll work on those tonight, thanks
iConomy Support and Hooking tickets are reaaaaly needed. Please work on thoes. =)
A great idea, and a great plugin to use with TrainCarts. =D
Can't wait til thoes 2 additions are added. =D
@wizzledonker
There is stuff like SimpleRegionMarket to help with Hotels ;)