[Harry Potter] Chat notifier for admins when new players join!

Discussion in 'Plugin Requests' started by ScrimmyBear, Aug 29, 2016.

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

    ScrimmyBear

    Hey, I want a plugin for my Harry Potter server so that when a new player joins that are in the default group (Muggle) it announces in chat to certain groups (Staff, Admin, etc) that a player has just joined and is in need of help. I want it so that it notifies them in chat every 1 minute until the default player has moved into a different group (via group manager). The message I want it to say to the Staff/Admins is:

    &9Hey! There is a muggle online that needs your help
    &9Would you please help them?
    &9Thanks!
    &9Players: &7(Players names)
     
  2. So if a player is online that is in a certain group, it would send Staff that he/she needs help?
    What Minecraft version do you want this to run?

    EDIT:
    Done it, can't test it though as i dont have any "test people". If you encounter any problems, tahg me.

    Link: https://www.dropbox.com/s/jrxcio6on79trtg/MuggleHelp.jar?dl=0

    Permissions: muggle.help, muggle.admin
    Give muggle.help to the Muggle group and muggle.admin to the Staff groups
     
    Last edited: Aug 29, 2016
  3. Offline

    ScrimmyBear

    Yes exactly! Anything above 1.8.8 :)

    I gave the permission to both groups yet it only says my name. Also it spams my chat with the same message, could you please extend the time to be 1 minute

    Also it only lists 1 name and they are opped people

    @Johnzyno

    http://prntscr.com/cbrdcq

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited: Aug 29, 2016
  4. Offline

    EndureBlackout

  5. Offline

    ScrimmyBear

  6. Offline

    EndureBlackout

  7. Offline

    ScrimmyBear

    @EndureBlackout I went onto my test server, changed it so there was no inheritance with the groups. Gave my alt muggle.help in the default group and gave my account muggle.admin in the admin group and nothing shows up on my screen/chat?
     
  8. Offline

    EndureBlackout

    Any errors in the console? and did you reload/restart after putting the plugin into the plugins folder? Also what version of spigot/bukkit are you running?
     
  9. Offline

    ScrimmyBear

    @EndureBlackout There are no errors in console, yes I restarted me server when i put it in. I am running the plugin on my 1.8.8 server
     
  10. Offline

    EndureBlackout

  11. Offline

    ScrimmyBear

    @EndureBlackout Still nothing. Its like the plugin is not even there, I try to enable it/load it with plugman but it keeps saying its not a vaild plugin
     
  12. Offline

    EndureBlackout

  13. Offline

    DoggyCode™

    I have no idea why people are going on about permissions and all that when you can just integrate "GroupManager "itself into the plugin, which by the way I have done. Here's the end result:

    Please note that this plugin only works with GroupManager, not PEX and other groups/permissions plugins, then I would have to integrate "Vault" which would have been easier and better, but but :)

    On enabling (https://gyazo.com/513de43955642b4beb9482c4a06b1715):
    [​IMG]

    When a new player joins (https://gyazo.com/bd413ee82a732251ff6e561a40bdf810):
    [​IMG]

    Message broadcasted to online Admins (players with the permission "helpem.admin") every minute when there are people online with a rank called "Muggle" (https://gyazo.com/4de78443b25bd545eb83d7f998199d3c).
    [​IMG]

    I was only one player online, but it should be listed like this:
    Player(s): | ExpDev | EndureBlackout | ScrimmyBear |

    DOWNLOAD:
    https://www.dropbox.com/s/f4t89dfxb5ax1m6/HelpEm.jar?dl=0

    "Marius" is my name. I stopped Developing for awhile which is why you can see that in the package name.
     
    SirGregg likes this.
  14. Offline

    ScrimmyBear

    @DoggyCode™ It works perfectly, however if there is 2 Muggles online it announces the message twice...[​IMG]
    Also could you please extend the time it broadcasts from 1 minute to 10 minutes please. And if could, could you please set the message out like this...

    &9--- &5[&6MuggleAlert&5] &9---
    &9 Hey! There are Muggle(s) online that needs your help.
    &9Would you please help them?
    &9Thanks!
    &9Player(s): &6<Players names>
    &9--- &5[&6MuggleAlert&5] &9---

    &9--- &5[&6MuggleAlert&5] &9---
    &9A new player &5(&6<Player>&5) &9just joined with the rank ''Muggle''.
    &9Be sure to help them out!
    &9--- &5[&6MuggleAlert&5] &9---
     
    Last edited: Sep 5, 2016
  15. Offline

    DoggyCode™

    https://www.dropbox.com/s/f4t89dfxb5ax1m6/HelpEm.jar?dl=0

    Should be fixed :)
     
  16. Offline

    ScrimmyBear

    @DoggyCode™ Ahahah sorry to be a pain but can you remove this feature...[​IMG]
    Its just a bit spammy when people join and leave constantly, but the rest of the plugin works great!
     
Thread Status:
Not open for further replies.

Share This Page