Tickets
Tickets
A plugin for making tickets and ticket stations to amusements, trains... anything!
Author: minecraftman1436 *Requires Vault!*Code added to github - Update the plugin if you want to! :D
Get code here!
Features:- Make tickets, that your players on your server can buy
- Ticket features:
- You can make different kinds of tickets
- You can set a cost for the ticket
- You can set an amount of uses for the ticket
- Make ticket stations, where the tickets can be used
- Ticket station features:
- You can define which tickets the stations will accept
| Commands: | Permissions: | Description: |
| /t buy [Ticket name] | tickets.buy | Buy a ticket |
| /t createbooth [Booth name] | tickets.admin | Create a ticket booth |
| /t linkfence [Booth name] | tickets.admin | Link a fence to a ticket booth |
| /t addticket [Booth name] [Ticket name] | tickets.admin | Add a ticket to a ticket booth |
| /t removeticket [Ticket name] | tickets.admin | Remove a ticket |
| /t removebooth [Ticket booth name] | tickets.admin | Remove a ticket booth |
It should look like this:
Tickets:
  ExampleTicket:
    Description: Example
    Price: 1
    Uses: 30
Booths:
The ExampleTicket is a sample ticket, that shows, how you should define a ticket in the config.
  Attributes:
    Description: it is the description of the ticket that will be shown under the ticket item name.
    Price: Defines the price for buying the ticket.
    Uses: Defines how many times the ticket can be used, before it disappear. Creating a ticket booth: Start by using the command:
/t createbooth [Booth name]Then point at the fence that should be the gate and use the command:
/t linkfence [Booth name]Then add the tickets the ticket booth should accept by using the command:
/t addticket [Booth name] [Ticket name]Then make a sign like this:

It will turn into this:

When someone rightclicks the sign with an accepted ticket in hand the fence will open. Todo:
- Add commands for making a ticket
-
View User Profile
-
Send Message
Posted Mar 31, 2019Can you please update the plugin for minecraft 1.12.2 ? I can't run the plugin in my server, beacause I got this error :
[18:45:33] [Server thread/ERROR]: Could not load 'plugins/Bukkit-Tickets.jar' in folder 'plugins'
And when I run outdated version I can't link a fence with a booth.
I hope you will read this !
-
View User Profile
-
Send Message
Posted May 26, 2014Some quick notes (mostly for myself) but may be helpful for others. I am using these as train tickets for different lines and wanted a single-use ticket as well as a multi-use pass. Here's what I've figured out about the config file and what it means to the "real" world:
First, the config file looks something like this:
Tickets: ExampleTicketx1: identifier for the command Name: ExampleTicket GUI identifier Description: Example Used in the tooltip Price: 1 how much will be removed from the inventory Uses: 30 how many uses
So in my case, I have 2 items. BFTicketx1 and BFPassx10 are the ID's. When you want to use the /t buy __ command, you have to use the identifier.
The names are "TrainTicket" and "TrainPass". This is how they'll show up in the GUI, but ALSO when you /t addticket x y to a booth, you use the GUI name (NOT the identifier name)
So in the config I build my pass as:
Tickets: TrainTicketx1: Name: TrainTicket Description: Single Use Train Ticket Price: 5 Uses: 1 TrainTicketx10: Name: TrainPass Description: Multi-use Train Pass Price: 30 Uses: 10
I then create a command sign to sell tickets (so users don't have to muck with commands) This example is the command for selling the multi-use pass:
/cmds 1 /t buy TrainTicketx10
The user will use the sign and get an item in their inventory "TrainPass"
Next, create the ticket gate:
/t createbooth StationGate
(point at the fence piece) /t linkfence StationGate
/t addtickets StationGate TrainPass NOTE! I'm using the GUI name, not ID name
Create a sign:
[Tickets] StationGate Use your Ticket here!
And that more or less works.
Plan your ticket plan well, rebuilding the config file over and over is unpleasant.
Hope this helps!
-
View User Profile
-
Send Message
Posted Nov 10, 2013I always get this error :
2013-11-10 10:05:17 [SEVERE] Could not pass event PlayerMoveEvent to Tickets v1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:228) at net.minecraft.server.v1_6_R3.Packet10Flying.handle(SourceFile:136) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at com.hutech.tickets.Main.onPlayerMove(Main.java:181) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 15 more 2013-11-10 10:05:17 [SEVERE] Could not pass event PlayerMoveEvent to Tickets v1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:228) at net.minecraft.server.v1_6_R3.Packet10Flying.handle(SourceFile:136) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at com.hutech.tickets.Main.onPlayerMove(Main.java:181) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 15 more
-
View User Profile
-
Send Message
Posted Nov 8, 2013Update Please :) I really like this plugin very much!
-
View User Profile
-
Send Message
Posted Sep 23, 2013Can you please make it so that i can use it with essentials, i REALLY need a tixcket plugin for esentials
-
View User Profile
-
Send Message
Posted Sep 16, 2013I will update in the next 2 days, all on the to do list will be added :-)
-
View User Profile
-
Send Message
Posted Sep 15, 2013when the next version is coming????? (my server is REALY need the BEST tickets system)