Inactive [ADMN] PetitionPlugin v1.4 - Help ticket system [1597]

Discussion in 'Inactive/Unsupported Plugins' started by ATCPlugins, Jul 23, 2011.

  1. Offline


    This plugin is used for players to log problems, requests and complaints. It relies on Vault for permissions support.

    Get PetitionPlugin on BukkitDev!

    The source code is available on github, feel free to do whatever you want with it. If you use it to save the universe, credits would be nice.
    If you would like to make a pull request the github repo can be found at:

    • Players may open one or more petitions and get assigned a unique ticket # for each. This number can be used to track the petition until it has been closed.
    • Each petition may be assigned to a specific op/admin or left as unassigned
    • Players as well as ops/admins may add comments to an open petition
    • Ops/admins (and currently players) may warp to the location where the petition was opened
    • Ops/admins (and currently players) may review the history of each open petition
    • Closed petitions are archived and can be reviewed or reopened by moderators
    • Use the command "/petition" or the shorthand command "/pe".
    • All commands are case-insensitive
    • New and updated petitions are announced to everyone with 'petition.moderate' permission
    • Want to call them something else than petitions? This can be configured.
    • Supports multiple worlds
    • Offline players receive notifications on petition updates when logging in
    • Server admins can handle petitions on the server console
    • Players and moderators are reminded of their open petitions at configurable intervals
    Command syntax
    /pe open|create|new <Message>
    /pe comment|log <#> <Message>
    /pe close <#> [<Message>]
    /pe list [<count>]
    /pe view <#>
    /pe assign <#> [<Operator>]
    /pe unassign <#>
    /pe warp|goto <#>
    Note that the command/alias "/pe" can no longer be changed by the server administrator.

    How to install
    1. Download PetitionPlugin from BukkitDev
    2. Copy it to your "plugins" directory
    3. Optionally create a new directory called "plugins/PetitionPlugin"
    4. Optionally create a new directory called "plugins/PetitionPlugin/archive"
    5. Optionally create a new file "plugins/PetitionPlugin/settings.txt"
    6. Load the plugin (Restart the server, or use any plugin you have for this purpose)
    The configuration file is optional, the following settings are available:
    Command examples
    A player in distress:
    /pe open Someone has burned down my home!
    # the player receives a ticket number, say 45 for this example
    /pe comment 45 And killed my chicken!
    /pe list
    # the plugin shows me a list of currently open petitions
    /pe assign 45 FloydATC
    # the petition status is changed to show that I am now handling this incident
    /pe warp 45
    # I am teleported to the scene
    /pe comment 45 Nice crater
    /pe close 45 Feather refunded, have a nice day
    # +1 served
    Again, note that the command/alias "/pe" can be changed by the server administrator.

    v1.00 - Original release
    v1.01 - Rebuild (fixed onPlayerCommand issue)
    v1.02 - Implemented locking and permissions
    v1.03 - Added notifications and colors, and fixed a stupid permission bug
    v1.04 - Fixed a few problems with notifications, added more colors.
    v1.05 - Command/alias can now be configured. More colors.
    v1.06 - Fixed crash bug when closing without a comment. Added optional notifications on assign/unassign.
    v1.07 - Improved error-checking. Players may now list/close/comment/view/warp to their own petitions.
    v1.08 - Automatically create necessary directories and files if they don't exist
    v1.10 - A few cosmetic fixes + petition length in header
    v1.11 - Added experimental support for multiple worlds
    v1.12 - Changed to use world name instead of ID
    v1.20 - Rewrote to use onCommand(), fixed /pe warp security issue + much more.
    v1.21 - Removed the "stupidly long constructor" as per Bukkit team recommendation
    v1.22 - Implemented a notification system for offline players, admins and operators
    v1.23 - Fixed duplicate messages. Commands now work from the server console.
    v1.24 - Added optional setting to limit use of warp. Petitions are now almost listed in correct order.
    v1.25 - Fixed null pointer error on player join.
    v1.26 - Petitions are now listed in correct order. Finally.
    v1.27 - Optional online/offline filter to /pe list implemented.
    v1.28 - Non-moderators could assign/unassign their petitions. Fixed.
    v1.30 - Closed petitions may be viewed and reopened. Added list filters "closed", "unassigned", "newest" plus Regular Expression matching.
    v1.31 - The list would always get reversed. Fixed.
    v1.32 - Notification thread implemented, remind users and mods at regular intervals.
    v1.33 - Changed onPlayerJoin() as required by build #600. Fixed deprecated call to void teleportTo().
    v1.34 - Added option to notify all players when a petition is closed, not just the moderators.
    v1.35 - Added log file (Thanks Juze!)
    v1.4 - Now requires Vault & fixed a bug with the unassign command.

    • '' required to open, comment and view a petition
    • 'petition.warp-to-own' required IF 'warp-requires-permission' is enabled
    • 'petition.warp-to-own-if-assigned' required IF 'warp-requires-permission' is enabled
    • 'petition.moderate' and 'petition.moderator' required for everything else
    Known problems
    Certain situations can lead to double notifications, such as an operator commenting on his own petition. Colorization is work-in-progress.

    I'm a Java newbie, please be gentle.
    Thank you :)
    sourcemaker, Karlkorv, CubieX and 2 others like this.
  2. Offline


    Great plugin m8, thanks for maintaing it!
    Lebensdauer likes this.
  3. Offline


    Did you do anything with this because the original seems to be working for others...?
  4. Offline


    No, it's the same plugin. I worked with FloydATC but because the original was marked inactive and we were going to get a shared account anyway I saw it fit to move it. Floyd is on holiday in Denmark last I heard from him and I didn't want to let the plugin just sit there in the inactive section waiting for him to return.

    Hope you understand.
    kahlilnc likes this.
  5. Offline


    I wanted others to no as well :D
  6. Nice, hope you can look into an issue:

    Seems offline players do not receive a message upon login in regards to tickets closed when they were offline, I am pretty sure this should be the case though.
  7. Offline


    changelog is usually written the other way around
  8. Offline

    Matt Gill

    So the permissions node is just
    - 'petition'
    for regular players?
  9. Offline



    Okay, i'll reverse it.

    I'll get onto that soon!
  10. Offline

    Matt Gill

    I'm really liking this plugin thank you. It really helps so I don't get spammed with questions and what not when I get on my server.
  11. Offline


    So this should still work fine with bukkit permissions I'd think, because it pretends it's a 2.6 permssions.jar right?
  12. Offline


    This is built against Permissions 2.7.4. I'm pretty busy currently sorry, i've had an email from Floyd so he might be back soon. Otherwise if anyone wants to make any Pull Requests feel free to do so!
  13. Offline


    Works wonderfully.
  14. Offline


    Anyone got this to work with PermissionsBukkit?

    Using superperms-bridge it enables any user no matter the permissions to use all commands :/
  15. Offline


    Couldn't get it to work, couldn't get it to work...finally I dove into the files. This should be petition.moderator not petition.moderate

    It appears both petition.moderator and petition.moderate are used.
  16. Offline


    Right, sorry just got back from my holiday. So what is the exact problem?

    I'll look into it.
    GmK likes this.
  17. Offline


    petiton.moderate & petition.moderator are both used, but only petition.moderate is mentioned in the permission section of the first post.
  18. Offline


    Okay, so they both work?
  19. Offline


    They're both required to fully moderate; .moderate gives full /pe list instead of only personal, and .moderator gives /pe warp. I'm not sure if these are meant to be seperate, or it was accidental.
  20. Offline


    Hm okay, i'll note that down. Thanks for telling me.
  21. Offline


    Sure, this is my personal favorite plugin as a server admin! :)
  22. Offline


    @ATCPlugins I have a question and suggestion for you as I think this could be exactly what I am looking for. Question does this work without errors with 1060? I know you said you just got back from vacation so I understand if not :D

    Suggestion: Use of spout to create an actual ticket interface for petitioned and for people to be able to assign themselves to it via a check box and such. It would make it completely interactive and kinda awesome beyond / commands
  23. Offline


    It worked perfectly once I got the permissions up!
  24. Offline


    I actually think this would be an amazing addition. Definitely something i'm going to look into asap.
  25. Offline


    Cool I'll look forward to see what you come up with if you need any testing a majority of my server uses spout (were like a few plugins short of a full transition) and although I'm not a developer I'm usually lurking in their channels lol
  26. Offline


    CraftIRC support would be nice to have, possible?
  27. Offline


    Using superpermbridge too, everyone can do everything.
    This makes me sad. Because I don't know any other efficient way of assigning plots to people.....
    Please fix this issue!
  28. Offline


    can anyone help help me?
    2011-09-05 12:44:59 [SEVERE] Error occurred while enabling PetitionPlugin v1.34 (Is it up to date?): Plugin attempted to register PLAYER_JOIN while not enabled
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register PLAYER_JOIN while not enabled
        at org.bukkit.plugin.SimplePluginManager.registerEvent(
        at com.floyd.bukkit.petition.PetitionPlugin.onEnable(
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(
        at net.minecraft.server.MinecraftServer.e(
        at net.minecraft.server.MinecraftServer.a(
        at net.minecraft.server.MinecraftServer.init(
  29. Offline


    Some people have experienced this problem could you tell me everything you're doing/running with your server so I can reproduce the bug.

    Hm...I assume Buxville modified the plugin to get it working with CraftIRC.

    I'm going to be quite busy with School up untill around December now so i'll see if I can get someone to help around here. I'll leave them any work i've done so far.
  30. Offline


    Oh it works i forget the superpermbridge for permissionsbukkit sorry

Share This Page