Simple Help Tickets
Simple Help Tickets
Description:Simple Help Tickets provides a simple and effective system for users to request the assistance of an admin. Starting out as a rather lightweight plugin I threw together for personal use and decided to share, it has continued to expand due to popular demand. By using /ticket a user can open a help ticket, which can then be reviewed and dealt with by an administrator. Both users and admin are able to reply to tickets to further dialogue regarding a ticket. If a user logs in and an open ticket has received a reply from an admin, they will be notified of the change.
Installation:Updating to 1.0
If you are updating to 1.0 you will need to start with a fresh database.
If you're using SQLite simply delete Tickets.db in SimpleHelpTickets plugin directory
MySQL users, delete the table SHT_Tickets in your database, it will be replaced on server start.
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server
Configuration:
• MaxTickets
Maximum number of tickets per user.
• TicketExpiration
Number of days before a closed ticket expires
• NotifyAdminOnTicketClose
Users with the sht.admin permission will receive a message when a ticket is closed.
• MultiWorld
If using more than one world, take/check ticket will display the appropriate world name in ticket details
• OnJoin
Display number of personal tickets to user / total tickets to admin upon join
• USE_MYSQL
Whether to use MySQL instead of SQLite output.yml
• Use to customize plugin output (Language / Formatting)
Commands:
• /helptickets - SimpleHelpTickets Menu.
• /ticket (description) - Open a help ticket.
• /tickets [-a/-c] - List Open/All/Closed tickets.
• /checkticket <#> - Check the details of a ticket.
• /taketicket <#> - Assign self to a ticket. (and be teleported to the location is was set)
• /replyticket <#> <reply> - Reply to a ticket
• /closeticket [-r] <#> - Close a help ticket.
• /delticket (#) - Delete a help ticket.
• /purgetickets [-c/-a] - Purge expired, Closed or All tickets
Permissions:
• sht.ticket - Open a help ticket.
• sht.admin - Administrate help tickets.
• sht.reload - Reload SimpleHelpTickets.
To Do:
•
•
•
•
•
Web GUI
By popular demand, a Web GUI is available for SimpleHelpTickets.
You can download it below. • SimpleHelpTickets Web GUI
Thankyou for your support! :D Recent Change-Log:
1.4
- Updated for Spigot API 1.10.2
- UPDATED: Updated for new UUID system
(Caveats: UUID not translated to player name)
- Fixed: bug when reopening a ticket
1.3.6
- FIXED: MaxTickets not limiting the amount of tickets a user can open
- FIXED: User OnJoin notification of open tickets repeating itself
- FIXED: MySQL Connection Check. (Merged PR: TheCutter)
1.3.5
- Updated extra formatting to not interfere with colour codes
- Recoded ticket.class
- Fixed "CONSOLE has opened a ticket" bug for MySQL users
- Fixed notification of admin reply on user join
1.3.4
- Added bold/italic/underline/strike/reset to output.yml
- Fixed typo in output.yml
- Added check to getconnection in mysqlconnection.java to ensure connection is established, and if not re-stablish connection before continuing.
1.3.3
- minor bugfix: Users rceiving notification about open tickets even if tickt is/are closed
- minor bugfix: Prefix removed from 'No Tickets To Display' message
- minor bugfix: Instances of getDisplayName changed to getName in closeticket & taketicket (Fronix)
- minor bugfix: A few typos in output.yml have been fixed (if your output.yml is unchanged, delete it before starting your server to generate a new one)
@mastalol
I would also really like this! Extra permissions for each command or a mod permissions group would be amazing!
Might wanna look at your web gui, your opening tags for PHP are just <? not <?php
Hey,
setting MaxTickets is not working. User can open endless tickets.
CB: git-Bukkit-1.6.4-R2.0-50-g402ee87-b2958jnks (MC: 1.7.2) PEX: 1.20.4
config.yml:
@dark1256
You're going to have to give me more info than that, what error message are you receiving which indicates a problem with MySQL?
@EpicxOzone
It was never inactive. There were however bugs which I was unaware of that a user brought to my attention, thus the update.
MySQl not working?
So will this plugin now be updated more? It was inactive for the longest of time....
Hi is there a jenkins repository for your plugin?
@Odiumxxx I get the same thing as ursac gets . I have my own dedicated server and always keep php mysql ect up to date . I am running php 5.5.5 . Every other site i host using php runs fine . I think thet the web gui needs to be updated to php 5.5.5
BTW on the webgui site and other places it says the webgui is compatible with SimpleHelpTickets 1.3.4 plugin . :-/ From my understanding there is no 1.3.4 version of your plugin .
@Odiumxxx Hi,
I'm always getting "CONSOLE has opened a Help Ticket." I figuerd out, what causes the error. Anything is fine, even when the output.yml is altered. But when I change to MySQL, this error appears. Settings are correct, the table (SHT_Tickets) got created and tickets are correctly stored in database.
can you insert a cross-server teleport for bungeeservers?
Can you add a new permission node?
sht.mod
has the following permissions:
OR add a list of individual permissions?
Reason being: We have PREMOD, MOD, ADMIN. I do not want the PREMOD or MOD to be able to delete tickets or reload the config. PS: Check out what I did to your ticket page ;D http://massacrepvp.com/tickets.php
@ursak
Sounds like you need to update / install PHP on your webserver.
Tried the web-ui again after giving up last time it failed me.
I have the database configured and all but all I get is a page where for example the "world" shows:
NONE"; } else { echo $rows['world']; } ?>
Also. What is this at the bottom of the code for?: <? } ?>
Hello, are you open to suggestions on this plugin? and if so how should I submit/say them?
@Odiumxxx Should there be '' around all the info for MySQL like 'username' 'database' 'password' my info dont have that just wondering if it should if so ill add them
@crunkazcanbe
It's appears unable to connect to your MySQL database.
You have failed to setup connection to your MySQL database correctly.
Check the connection & authentication details in your config.
This plugin has not worked right with MySQL from day one. I get this in the console
2013-10-05 16:38:13 [INFO] [SimpleHelpTickets] Connected to MySQL Database 2013-10-05 16:38:13 [INFO] null 2013-10-05 16:38:13 [INFO] [SimpleHelpTickets] Error: java.lang.NullPointerException 2013-10-05 16:38:13 [INFO] [SimpleHelpTickets] 0 Expired Tickets Deleted
When you try to create a ticket you get a internal error has occurred ??? Its connected to MySQL creates the table just doesn't work would be nice if updated to 1.6.4.
@Odiumxxx
Hey hey!
Thanks for the reply :)
This isn't displaying ticket information on logins. I have all proper permissions set up and the login in the config set to true...
No error logs or anything, just isn't showing up...
I am also seeing messages of "CONSOLE opened a helpticket" and this plugin has been installed with no adjustments to config or anything else.
@Odiumxxx
I did give it a try, that's why I asked cause I didn't manage to get it to work. Or rather, I got it up and running it just didn't find the info to show (which exists and all that).My knowledge of php and mysql is limited thought so I just wanted to know if it was supposed to work before I put down to much time on it. Learned the hard way to ask first ;)
EDIT: Nevermind the first part. I didn't actually try the new version of the plugin on older bukkit, only tried the webUI on older plugin...