YouTuber+

Discussion in 'Archived: Plugin Requests' started by Huntfishplay, Nov 26, 2014.

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

    Huntfishplay

    Name: Youtuber+

    info: Okay I'd like a plugin where when a YouTuber does /record It Says in chat [Youtube] (name) Is Now Recording! His Chat Is Temporarly Off! (Use color codes) The chat is silentced for him only... He will also have god mode and /fly... I'd also like it to say every once and a while the Youthbers name and the server channel....


    Commands: /record /finish

    Perm: u.record u.finish

    Wanted by: Whenever sooner is better
     
  2. Offline

    JordyPwner

    So you want when a youtuber types: /record it will announce that he is recording and give him fly and god? and when he types /finish it will announce that he is done with recording ? and while recording that he cant use the chat and doesnt receive any message?
     
  3. Offline

    Huntfishplay

    He can't chat but he can't see others chat... JordyPwner

    EDIT: I Also need command /YouTuber chatsee NAME
     
  4. Offline

    JordyPwner

    Huntfishplay doing this now

    When the youtuber types: /youtube record he wont see the chat and he cant chat. When he types /youtube finish he will be able to chat and see the chat

    EDIT: Going to eat now.

    EDIT2: Going back to work on this ;)

    <Edit by mrCookieSlime: Merged posts. Please use the Edit-Button.>
     
  5. Offline

    Huntfishplay

  6. Offline

    JordyPwner

    Stuck at the chat event ;3 Sorry, if anyone can help me ill appreciate that
     
  7. Offline

    Fuzzybear04

    Code:java
    1. AsyncPlayerChatEvent
    2. if(list.contains(p.getUniqueId()){
    3. e.setCancelled(true);
    4. else {
    5. e.setCancelled(false);
    6.  

    ?
     
  8. Offline

    JordyPwner

    Thanks but the broadcastmessage getting the message from config gets me a NPE
     
  9. Offline

    Fuzzybear04

    What happens?
    What do you mean?
     
  10. Offline

    JordyPwner

    Fuzzybear04 this will give me a NPE
    Code:java
    1. Bukkit.getServer().broadcastMessage(main.getConfig().getString("Finish-Message").replace("%player%", player.getName()).replaceAll("&", "ยง"));
     
  11. Offline

    Fuzzybear04

    Is it the same for your recording message?
     
  12. Offline

    JordyPwner

    Yup only "Finish-Message" is for recording: "Record-Message"

    EDIT: FIXED

    EDIT2: i still get other players msg
     
  13. Offline

    Fuzzybear04

    How did you fix it?
    And what do you mean you "still get other players msg"?
     
  14. Offline

    JordyPwner

    for the broadcast i had: Bukkit.getServer() but now i just did: Bukkit.broadcastMessage

    and for the 2nd question: when bob says hi then henk still see his message even when is on the list
     
  15. Offline

    JordyPwner

    this is for the player self
    but idk how to disable the messages that the player receives
    i thought on ChatMessage but im not sure ';3

    Code:java
    1. @EventHandler
    2. public void PlayerChat(AsyncPlayerChatEvent e){
    3. if(isrecording.contains(e.getPlayer().getUniqueId())){
    4. e.setCancelled(true);
    5. }else{
    6. e.setCancelled(false);
    7. }
    8. }
    9.  
     
  16. JordyPwner For the receive, do a for statement check who is in the list and disable theirs and leave the others to get the message.
     
  17. Offline

    Fuzzybear04

    Removing from Chat

    Code:java
    1. for(Player p : Bukkit.getOnlinePlayers()){
    2. if(list.contains(p.getUniqueId()){
    3. e.getRecipients().remove(p);
    4. }
    5.  
    6. e.getRecipients().add(p);
    7. }



    ?
     
  18. Offline

    JordyPwner

    Not working..
     
  19. Offline

    Fuzzybear04

    Not sure then
     
  20. Offline

    XgXXSnipz

    Huntfishplay when would you ever use this plugin? what if their playing survival games, and they record then their invincible and can fly??
     
  21. Offline

    Skionz

    XgXXSnipz You have a good point. I see a lot of flaws in this with abuse of the command.
     
  22. Offline

    JordyPwner

    this is not my problem :p i just fill his request :p
     
    Fuzzybear04, Huntfishplay and Skionz like this.
  23. Offline

    Huntfishplay

    JordyPwner Skionz XgXXSnipz I dont have that in my server so not my problem... but for others just disable the god and fly mode part
     
  24. Offline

    Fuzzybear04

    JordyPwner have it so in the Config they can select whether they want the god and fly mode to be enabled.
     
  25. Offline

    XgXXSnipz

  26. Offline

    JordyPwner

    Huntfishplay do you mind if i finish it tomorrow? Im a bit tired and have alot of homework ;3
     
  27. Offline

    BrentHogeling

    JordyPwner Not be to rude but you take a fairy simple plugin request, yet you don't know how to do a crucial part of it? Someone else may have been able to do this and have it done in under an hour, please if you take a request, make sure you know how to do that request in the first place.
     
Thread Status:
Not open for further replies.

Share This Page