Filled AnonymousMessager

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

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

    FireFlies

    Minecraft version: 1.7

    Suggested name: AnonMessager

    What I want: On my server, I use a plugin to give money rewards to my players every day when they join, and every hour they spend on the server. In the config of this plugin, I have to specify commands to run when a player joins and every hour so they can receive the rewards.
    These are the commands I have for daily join rewards:
    - 'tell %player% &3Here is &a$500 &3for joining the server today!'
    - 'eco give %player% 500'

    This is the output: https://gyazo.com/0693068b636f019c626a2ac3342bf4eb

    The thing is, as you can see, there is a little prefix for the tell command [console -> me], making the whole MOTD not blend in well.

    I need a simple plugin to remove this [console->me] the output would look like this: https://gyazo.com/6c588b98879ed03ee393e040c071df2a

    The pluging would remove ANY prefix before a message.

    Ideas for commands:
    A new /tell command like /anon [player] [message]

    Example: /anon FireFlies Hello world!
    would output Hello world!
    without any prefix in front of it.
    Only the specified player will be able to see the message.
    The message needs to be color code compatible!

    Ideas for permissions:
    Since the command will only be ran in console, no need.
    But if you want anon.send to send a /anon message

    When I'd like it by: ASAP
     
    Last edited: Nov 30, 2016
  2. Offline

    Skrubzy

    I had this plugin coded a while ago and someone filled my request. The only problem is that it sends the message to the whole server - instead of just for a defined player. I've been meaning to request this feature as an update, but I've just been forgetting about it every time I'm about to talk to him. I'm going to request that from him now, I'll link you to the file when it's finished :)

    /sm <message>
    (I forgot the permissions, but they're somewhere on that forum)

    EDIT: This plugin is for 1.8 and I just requested that the update be made in 1.9 so this might not work for you - using 1.7 on your server, but I'd try it anyway
     
    Last edited: Nov 30, 2016
  3. Offline

    FireFlies

    Thank you for your reply, I'll still wait to see if someone wants to fill the request to fit my needs (version wise) ;)
     
    Skrubzy likes this.
  4. Offline

    J22929

    done, how should i send it?
     
  5. Offline

    Skrubzy

    You can use Dropbox or just attach the file in your reply/post.
     
  6. Offline

    J22929

  7. Offline

    Skrubzy

  8. Offline

    J22929

    should be fixed
     
  9. Offline

    Skrubzy

    Yes. No matter what I put after "/anon" it still sends me the same message (And even if I just type "/anon")
     
  10. Offline

    FireFlies

    In game, if I type /anon [name] Message it works just fine. But if I try to do it via the console it says I don't have the permission. Is there a way to fix this?
     
  11. Offline

    MrGeneralQ

    @FireFlies
    Nothing you can do about it.


    @J22929
    When you check if the sender has an instance of player, create an else statement and put the exaxt same code without the permission check in there. Instead of using the player object for sending a message use the "sender" object. This will make it possible to execute the command using the console.
     
  12. Offline

    FireFlies

    In the plugin there has to be an event that checks if it is the console doing the command. If not I will get an error saying that I don't have permission.
     
  13. Offline

    Skrubzy

    /pex user CONSOLE add anon.send
    This probably won't work but it's worth a shot lol
     
  14. Offline

    J22929

    updated
     
  15. Offline

    FireFlies

    No wouldn't work x)
     
  16. Offline

    MrGeneralQ

    Like I already said, the code needs an update where it's not checking any permission if the console executed the command. A command is not a player and doesn't have permissions. It's an easy fix but it has to be done by the coder himself.
     
  17. Offline

    FireFlies

    @J22929 Please update the plugin!
     
  18. Offline

    J22929

  19. Offline

    FireFlies

  20. Offline

    J22929

    No problem, if you need anything else let me know
     
Thread Status:
Not open for further replies.

Share This Page