SocialSpy on login

Discussion in 'Archived: Plugin Requests' started by dezaaa, Mar 10, 2014.

  1. Offline

    dezaaa

    Hello, I would like to know if there's a way how to enable socialspy automatically when player join the game ( or better option, not to disable it when player leaves the game).
    Thanks :)
     
  2. Online

    timtower Administrator Administrator Moderator

    dezaaa What is socialspy?
     
  3. Offline

    Everyonc


    This is command form essentials that allows you to see players private massages.

    @topic you must set this in config ;)
     
  4. Online

    timtower Administrator Administrator Moderator

    Is there a command to do this from the console? If so: will make you a plugin that runs a command from the console on join
     

  5. Another thing you can do is sudo a player to issue the command used to turn socialspy on when logging in.
     
  6. Online

    timtower Administrator Administrator Moderator

    Also fine for me. Do you know the command?
     

  7. Code:java
    1. server.dispatchCommand(player, cmd);


    Not 100% sure but I think that's it.
     
  8. Online

    timtower Administrator Administrator Moderator

    I know that part but I don't know what the actual command should be :p
     
  9. Offline

    Shahblox

    I just got a plugin called Skript which is pretty awesome, idk that much about it though. I know you can do something like this for your problem, not sure though. This code I gave below is something like what you would do.
    Code:
    on join:
        make player execute command "/socialspy"
        permission: auto.socialspy
     
  10. Offline

    dezaaa

    Correct me if i'm wrong, basically you create a shortcut and then just assign that permission to group?

    EDIT// I tried it and it didn't work.
     
  11. Offline

    Shahblox

    Like I said before, idk much about Skript. I was assuming it would work. Try going to the Skript forums and asking for help there. :)
     
  12. Online

    timtower Administrator Administrator Moderator

    dezaaa What command does the player ( or console ) needs to run for this to work?
     
  13. Offline

    BrushPainter


  14. Oh, my bad. Misunderstood your question.
    It's /socialspy.
     
  15. Online

    timtower Administrator Administrator Moderator

    Everybody makes mistakes :p
    dezaaa Of you still need something that runs commands on player join just tahg me.
     
  16. Offline

    dezaaa

    I'm sorry for my inactivity.

    BrushPainter Thanks for effort, but I don't think it works (I used player with OP in Owner group ("*" permissions).

    timtower Yep, I'm still interested in such a thing :D
     
  17. Online

    timtower Administrator Administrator Moderator

Share This Page