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.
you can book your train ticket by viviting this website http://irctcregistration.net/
@Kazathur92
Thanks to DrkMatr1984, It's updated and ready to go. While it is approved you can download the new version at;
http://dev.bukkit.org/bukkit-plugins/trainticket/files/7-train-ticket-1-5-1-7-9/
Great plugin, please add a command, or let us customize the booth signs
omg!! update it to 1.7 plz!! i beg of you! :C ... i want it so badly.. xD
@DrkMatr1984
Great! But how did I get the plugin (that's what's interresting me...) With apache Maven I have errors (All is well setted). That's kinda embarrasting to must do that to have the plugin... http://pastebin.com/yz2SunHP Actually I faced out the problem: Here's the good pom.xml file that makes maven do it correctly: http://pastebin.com/waQ3bv58 Me 1-0 Creator xD (I said it because I can't even make a bloc in java xD)
Can someone post the 1.5 version please?
Wizzledonker still mia, I moved the github source to https://github.com/BukkitCodersUnited/TrainTicket
https://github.com/DrkMatr1984/TrainTicket/wiki
Fixed the caveat in the "known caveats" section of the download page. The Gold Ingot system now depletes your gold ingots no matter how many stacks you have them in and no matter how many ingots are in each stack.
@DrkMatr1984
Oh and
Fixed a bug where the plugin would allow you to keep buying tickets until you were broke even if your inventory was full, causing the tickets you were purchasing to end up in null space.
For anyone interested, I have COMPLETELY updated this plugin. Access to my source and Dev Builds can be found here https://github.com/DrkMatr1984/TrainTicket/wiki
Changelogs are also located at that link, but for anyone interested: You must delete your old config.yml and let a new one generate on server start. I've made it free to ride horses and pigs, and I've split the permissions nodes into two for the exempt permission. It is now TrainTicket.exempt.boat TrainTicket.exempt.cart
I also fixed two bugs. One was if you had left over tickets in your inventory, they wouldn't work on relog. Now they do. The other was you could only have one ticket item in a stack at a time. Now they stack up to 64(well, depending on maxstacksize of the ticket item you choose).
Lastly, I added new options in the config.yml. You are now able to not only set the ticket item ID number, but also a Custom Name for the ticket item and two lines of custom Lore.
@DrkMatr1984 v.1.5 Split exempt permissions into two nodes, TrainTicket.exempt.cart and TrainTicket.exempt.boat. It also no longer requires a ticket to ride Horses or Pigs.
PM me for a link to the newest jar or check out my github and compile using mvn clean package.
https://github.com/DrkMatr1984/TrainTicket
@Gertyie96
Link Removed for Craftbukkit 1.6.4 Works for me, compiled against recent sources
@thomasw1997
I found wizzledonker's source on Github and updated it to his current 1.4 version. I compiled it against CB 1.6.4 R2 and newest vault (1.2.27 I think?) and tested the plugin, it seems to work fine. Here's a link to the source, just run mvn clean package to compile. i may work on splitting the ticket permission node into two as you suggested, because I also only wish to use this for minecarts. Will get back to you if I do and post new links.
https://github.com/DrkMatr1984/TrainTicket
Update please :D
Would it be possible for you to either make it so we can choose what players have to have a ticket for, as in, either boats, minecarts, or both, or split the permisison node "TrainTicket.exempt" into two nodes such as
"TrainTicket.exempt.boat" and "TrainTicket.exempt.cart"
I got this plugin for the minecarts, and don't want players to need a ticket to use boats.
Thanks! :)
please update to 1.6.2 :-)
World best plugin !!
Can you help me ,i have done all the thinks and when i click on the sign ..I see this "Insufficient funds to buy a ticket"..Thanks :))
Is it possible to enabled or disable this per world? I have an Amusement Park world and this would be perfect for the Monorail and Roller Coaster rides I have, but I only want it to work on that world.