Filled HelpMeStaff

Discussion in 'Plugin Requests' started by MrGreenJam, Nov 30, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    MrGreenJam

    Minecraft version: 1.7.

    Suggested name: HelpMeStaff

    What I want: I searched around for a plugin like this, but they always end up way too complicate for such a small job.
    There are 2 pieces to this plugin, the first would be an extremely light weight way to ask any online staff member any sort of question.
    The staff would see the question pop up in chat and can message the person it was sent from, to answer the question.

    The second part is an extremely lightweight way to report a player. Much like the /ask message, the /report would just add a [name] variable.

    You cannot spam /ask and /report, so there would have to be a delay of 30 seconds.

    A notification sound will be sent to the recipient of a report or question (pling).

    The person reporting will see a confirmation message saying &aReport sent. or &aStaff will help you momentarily.

    Customisable messages for sent/received

    Ideas for commands:
    Ask:
    /ask [question]
    Would output '&c[player] needs help: &f[question]' to the recipient

    Report:
    /report [name]
    Would output '&4playerA &7has reported &4playerB' to the recipient

    /report [name] [reason]
    Would output '&4playerA &7has reported &4playerB &7for &c[reason]' to the recipient

    (both of the report commands would work with or without a reason)

    Ideas for permissions:
    - helpmestaff.report.send (be able to send a report with/without a reason)
    - helpmestaff.report.receive (be able to receive reports)
    - helpmestaff.ask.send (be able to ask a question using /ask)
    - helpmestaff.ask.receive (be able to receive the questions)

    When I'd like it by: ASAP!

    Feel free to ask question below if you need more details.
    Thank you so much in advance,

    - Jam
     
  2. Offline

    DSCxSander

    I'm gonna work on this project.
    Dont blame me, but why 1.7 :p

    Expected time: about 2 hours
     
    MrGreenJam likes this.
  3. Offline

    MrGreenJam

    Thank you so much! I'm using 1.7 because of the PvP mechanics. My server is a hardcore competitive PvP server where people 1v1 to reach the leaderboards and strive to be the best. Blockhitting, jitter clicking, quickdropping are not available in the newer versions of minecraft and therefore do not attract these competitive players.
     
  4. Offline

    DSCxSander

    No problem! I'm done with the plugin :) I've not test it yet. Can you do this for me?

    Commands:
    /report <player> [reason]
    /ask <question>

    <> is requierd.

    Permissions:
    /report - helpmestaff.report.send
    receive report - helpmestaff.report.receive

    /ask - helpmestaff.ask.send
    receive ask - helpmestaff.ask.receive

    Download link:
    https://www.dropbox.com/s/3qxlr4p7zlzrnae/HelpMeStaff.jar?dl=0
     
  5. Offline

    MrGreenJam

    Yes everything works just fine! There's only a grammatical error, you wrote 'report has been send.' when it's supposed to be 'report has been sent.' :p But could you please remove the notification 'You have been reported'? I don't want hackers to toggle there hacks when they saw that they were reported ;)
    And could you please add a 30 second delay? As of right now players can spam the /report and /ask.
     
  6. Offline

    DSCxSander

    Oops.. Sorry ;) I gonna remove that 'you have reported' section, and will add the delay!

    Updated version: https://www.dropbox.com/s/3qxlr4p7zlzrnae/HelpMeStaff.jar?dl=0

    Changelog:
    • Added cooldown (600 ticks = 30 sec)
    • Removed the 'you have been reported' messages.
    • Removed grammatical errors

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 30, 2016
  7. Offline

    MrGreenJam

    Thank you so much! Going to test now ;)

    Edit: It appears that the 30 second delay is not working. The message 'you can't send a report right now' appears but the report still sends and says 'report has been sent.'

    And could you please capitalise the R in 'report has been sent'? :)
     
    Last edited: Nov 30, 2016
  8. Offline

    DSCxSander

  9. Offline

    MrGreenJam

  10. Offline

    DSCxSander

  11. Offline

    MrGreenJam

    Yes everything works! Could you just add a 'Question has been sent.' when a player sends a /ask? After that I'll leave you alone ;)
     
  12. Offline

    DSCxSander

  13. Offline

    MrGreenJam

  14. Offline

    DSCxSander

    No problem m8! If you want more plugins made by me, you can send an PM :)

    Edit: Don't forget the filled tag :)
     
  15. Offline

    Skrubzy

    There's plugins where you can convert back to the old 1.7 pvp mechanics but still be on versions such as 1.9 and 1.10

    Here's one that I just found quickly (I didn't actually read anything about it, so it might not even be the right plugin lol) https://www.spigotmc.org/resources/better-combat.19439/

    EDIT: @DSCxSander Do you think you could update this to work with Spigot 1.10 and have the chat messages configurable in the config.yml? Also, could you make the sound effects configurable too?
    By sound effects, I mean the sounds you hear when you receive a report/question and when you submit a report or ask a question - Separate sounds for each

    Keep in mind that you don't have to do this. This plugin just seems really useful and I'd love to use it on 1.9.4 :)
     
    Last edited: Jan 18, 2017
  16. Offline

    DSCxSander

    @Skrubzy Sorry, I'm running out of my time for the study..
     
  17. Offline

    MrGreenJam

    @DSCxSander could you just please set the sound on the receive ask? It appears that you forgot to put it :p
     
  18. Offline

    DoggyCode™

  19. Offline

    DSCxSander

    I finnaly have some time to code! Is it still needed?

    Sorry for my late reaction! I've time for that now. Is it still needed?
     
  20. Offline

    JanTuck

    @DSCxSander
    Great plugin, i just have some suggestions.


    I would suggest using a HashSet<Player> instead of a List<Player>, also use UUIDs instead cause if you rejoin the last player instance will become null and you will get a new one. Succesfully bypassing the cooldown.

    There is also no reason that the report and ask is static.

    You could also make the for loop much simpler
    Code:java
    1.  
    2. for ( Player player : Bukkit.getOnlinePlayers())
    3. {
    4. Player a = player;
    5. }
    6.  
     
    Last edited: Jan 19, 2017
  21. Offline

    ipodtouch0218

    @JanTuck
    Not just bypassing the cooldown, it will also create a memory leak, since the JGC can't remove the player instance.
     
    JanTuck likes this.
  22. Offline

    Leonator05

    Hey do you mind making a 1.8 version of this and adding a config for messages w/ color code support please? :D

    @DSCxSander
     
  23. Offline

    JanTuck

    @Leonator05

    This does not use any NMS or versioned variables i dont see why it shouldn't be working on 1.8. Have you tried it?
     
  24. Offline

    DSCxSander

    Sure. I take a look at it. If I'm finished, I will upload this plugin.
     
Thread Status:
Not open for further replies.

Share This Page