Filled Punishment GUI [ASAP]

Discussion in 'Plugin Requests' started by OfficerDeveloper, Jul 6, 2015.

Thread Status:
Not open for further replies.
  1. @Tecno_Wizard /punish <Player> <Reason> then it pops up with the GUI, for history, the lore will show who punished them, the reason, and the date it occured.
     
  2. Offline

    Tecno_Wizard

  3. @Tecno_Wizard I was stalking this post for 2 minutes and read through your code... Finally someone has an answer for using the getConfig() method in another class file than the main. The...
    Code:
    private static JavaPlugin plugin;
    To the constructor. Thank you very much for being good.

    @OfficerDeveloper Who is this plugin for? A server you're a developer on? Just curious...
     
  4. Offline

    MoejoeAw44

    @NewDevOnTheBlock Absolutly hate when people go on Bukkit to request plugins for a server they are developer on. I've seen so many people take credit for others work it's absolutely insane and literally crushes me.
     
  5. Offline

    Zeinaty

    @MoejoeAw44 I know, right? But I think that's why the forums has a rule where you can't ask for private plugins. Otherwise people would do that a lot more often, because now everybody just posts their plugins on dev.bukkit.org
     
  6. Offline

    Tecno_Wizard

    @Zeinaty @MoejoeAw44, i engrave my name into all of my work and it is ALWAYS publicly posted. I don't make private plugins, and if i was to, they would be obfuscated. Trust me, getting my name or a link to it completely removed is a challenge. By the way @NewDevOnTheBlock, since you seem new, if you'd like the quick-start template that allowed me to write all of this so quickly, i'm not hogging it. Also, another way is to create a static resources class with that info (You might have already seen it) And if you don't need the variable static, leave it an instance variable. I needed it static for my uses.

    @OfficerDeveloper, did you read post #30?
     
    Last edited: Jul 7, 2015
  7. Offline

    meguy26

    @Tecno_Wizard
    For your JSONParser bug, can't you just write the JSONString to the file?
     
  8. Offline

    Tecno_Wizard

    @meguy26, tecnically, but it means that even when no files are changed, the entire string needs to be rewritten. On top of that, if someone uses it as an anonymous class, the file will become completely empty.
     
  9. @NewDevOnTheBlock Server Im owning :)
    @Tecno_Wizard Looks good so far, but for the descriptions can you put it in the item lore? Thanks! And can you ise the items I gave you on post #29?

    Another thing: If the target player has the permission "punish.bypass" make it so that the player's GUI doesn't pop up and it cancels saying they cant punish that player
     
    Last edited: Jul 7, 2015
  10. Offline

    Tecno_Wizard

    @OfficerDeveloper, got it. I did comment that nothing was done. Your items are in now.

    Uhh... Read the code.

    EDIT: So I ran into an issue. I cannot let you punish offline players and give exempt permissions at the same time. I'm guessing offline punish is a priority so I am keeping that unless you say otherwise.

    EDIT 2: Officer, give me your github account name so I can give you editing perms.
    https://github.com/Ethan160503/PunismentGUI
     
    Last edited: Jul 7, 2015
  11. @Tecno_Wizard Punishing offline players is a MUST and my github acc: OfficerEmerald

    Also, reading over the git code: I don't want the history to be re-movable. Only have the punishment be removable, enchant the item if the punishment is active, have the item be normal is the punishment is not active.
     
  12. Offline

    Tecno_Wizard

    @OfficerDeveloper, if you choose to make any edits, please do them in another branch so I don't run into fast-forward errors.
     
  13. @Tecno_Wizard Ok. Can you make it so that it can punish offline players? And the commands will be /p and /punish.
     
    Last edited: Jul 7, 2015
  14. Offline

    Tecno_Wizard

    Already in
    /punish is already registered, /p will be set as an alias in the yml.
     
  15. Last edited: Jul 7, 2015
  16. *Little off topic*
    I just started to really learn the way of OOP, and the biggest difficulty for me if thinking of all the methods (names) and then what I should and should not make into a tiny method. I'm just bad at thinking of names... Hence my name!
     
  17. @Tecno_Wizard got a % of how far you are done? My server's release is basing off this :-:
     
  18. Offline

    Tecno_Wizard

    @OfficerDeveloper, I didn't get too much free time today (Sry) but here's what is done and what needs to be done

    Player file is done (without debugging). Just need to turn an infraction object array into readable itemstacks by the user and make the data just encapsulated enough that you can reference the data without messing anything up by accident.
    The itemstacks themselves for the GUI are done besides the history, but they are not placed yet.
    The click listener has not been started yet, but I've written one before and a lot of the code can be copied and only slightly modified. Helps when you wrote a tutorial on it but this will still be the longest process. http://infernaldevelopers.com/threads/creating-an-inventory-gui-without-the-use-of-an-api.235/
    Config and plugin files need to be configured, however they are quick with how I set things up.
    General debugging (you know how that goes)
     
  19. @Tecno_Wizard Yep, thanks for the giant update ^-^ My server will soon be opened when I get this.
     
  20. Offline

    Tecno_Wizard

  21. Offline

    Tecno_Wizard

    @OfficerDeveloper, i didn't use constants for the lore.

    EDIT: the shematics of the player file is messing withmy mind a bit which is why tonight's push really won't have that many changes, but it will be the API for you, so it needs to be simple and efficient. Writing simple and efficient code not only for yourself but others is a difficult process, especially when you are dealing with strings that are not really defined in any way but your own code.

    EDIT2: Would you like me to add an event-driven listening system? It wouldn't be in the first release, but it would be good to know about it before I build the click listener.
     
    Last edited: Jul 9, 2015
  22. Offline

    Tecno_Wizard

    @OfficerDeveloper

    Do you just want this merged into one line? It looks a bit odd...

    I'll be changing the title color. It's hard to read, I know.

    [​IMG]

    This might be a bit off topic, but Minecraft 1.9 is going to break half of our plugins. LOL. Have you seen the changes they are making? It's INSANELY AWESOME.
     
    Last edited: Jul 13, 2015
  23. Offline

    Nokoa

    It's odd, I have been working on the same thing you requested, though it is not finished yet.

    [​IMG]

    [​IMG]

    [​IMG]

    I hope I might finish it within a week or so, and I might be able to share it with you.

    EDIT: Mine works with a MySQL database rather than a file, and only works with my rank system, it can take awhile until I take it out of my full server plugin and add regular permission support.
     
    Last edited: Jul 13, 2015
  24. @Nokoa That's Mineplex's PunishGUI, which I want basically with a config.


    @Tecno_Wizard It's a 1.8 server
     
  25. Offline

    Tecno_Wizard

    @OfficerDeveloper, I compile on 1.8.7 and @Nokoa, not familiar with MYSQL, which is why I did files. Just as fast when done correctly. I'm getting the request for officer quick, but it will be its own report system when I finish the devbukkit version.
     
    Nokoa and OfficerDeveloper like this.
  26. Last edited by a moderator: Jul 14, 2015
  27. Offline

    Nokoa

    @OfficerDeveloper Yep, it supposed to be, but I made some improvements, such as multiple pages records, insufficient rights to punish higher level staff members, and auto increasing time for each punishment depending on the player's records.
     
  28. @Nokoa If you made it for user files I'd love you <3
     
Thread Status:
Not open for further replies.

Share This Page