Filled Private Message Format Plugin

Discussion in 'Plugin Requests' started by Jaackk, Dec 21, 2015.

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

    Jaackk

    Plugin category: Chat


    Suggested name: SimplePrivateMessage


    What I want:

    I am simply looking for a plugin that can go on to a server to change the look of the message format essentials gives. I would like the format to be configurable with placeholders such as Receiver and Sender. Configurable sounds when you are sent a message would be nice too if it's not too much hassle.

    (SIMPLE MESSAGE PLUGIN - LIGHTWEIGHT - NO BAGGAGE FROM BIG CHAT PLUGINS)


    Commands & Permissions

    None needed.

    If any added:

    /simpleprivatemessage
    Or alias:
    /spm

    /spm reload
    /spm disable

    with relevant permissions simpleprivatemessage.reload and .disable

    The message commands will be all used in essentials, the plugin should format all these types:
    /msg
    /m
    /whisper
    /w
    /tell
    /t
    /reply
    /r


    When I'd like it by:

    Any time is fine but hopefully by January as it's such a light plugin and all it consists off is being able to have custom formatted messages.
     
    Last edited: Dec 21, 2015
  2. Offline

    WolfMage1

    I believe you can just change the messages_en.properties file to change the message format...

    yeah you can, line 250 of messages_en.properties
    msgFormat=\u00a76[\u00a7c{0}\u00a76 -> \u00a7c{1}\u00a76] \u00a7r{2}
     
  3. Offline

    Firestar311

    @Jaackk I will start working on this right away.

    @WolfMage1 I assume this is in the Jar file. Which most people do not know how to get into it, or what to do.

    /spm reload
    /spm disable

    I can do a reload command, why would you want to disable, if it were possible?
     
  4. Offline

    WolfMage1

    @Jayfeather311
    @Jaackk

    http://pastebin.com/SiLDuLWM he can just create a messages_en.properties in the Essentials folder for your server plugins and put that in it go to line 250 and change it, its faster than making a plugin and configuring it.

    And plus you have more customizability of essentials if you just do what I said. and there's no guarantee that what you make might not be overridden by essentials or will work. mine does.
     
    Jaackk likes this.
  5. Offline

    Jaackk

    Thank you and no the disable is not needed.

    I love the way you described how you can customise the messages. I did not know this. Maybe there needs to be a plugin made to do this in a simpler way as I don't think many people know about this and I also came across an issue while trying this method. I tried formatting the essentials message format but I didn't want this format, for example:

    [Prefix] [Name] [Suffix]

    I just want the messages to be clean like so:

    To >> [Name] >> [Message]
    From >> [Name] >> [Message]

    Essentials uses the groups, prefixes and suffixes within the messages and this looks untidy. I also really don't like how essentials puts your name in the message as 'me' without even a capital letter. I'd rather it just say the players name.

    Here for reference is the type of layout I would like to have; no prefixes, suffixes, groups, 'me', just clean:

    [​IMG]

    Thank you for your time everyone,
    Keep me updated,

    Best Regards,
    Jack.
     
    Last edited: Dec 22, 2015
    UnseenMC Network and WolfMage1 like this.
  6. Offline

    pie_flavor

    @Jaackk So the prefix is To >> and the suffix is >>. Easy.
     
  7. Offline

    Jaackk

    It's not like that, essentials uses {0} {1} {2}. These represent:

    0 = First value, this being the sender or receiver based on which way the message is (sent or received).
    1 = The second value, the opposite of the first, being the sender or receiver based on which way the message is.
    2 = The message.

    The actual 1 + 2 aren't configurable inside of the messages properties file so I am unable to change them from what they are.
     
  8. Offline

    Firestar311

    @WolfMage1 Essentials automatically allows other plugins to override their commands. As the priority is set to the lowest. and by default commands are set to normal
     
    Jaackk likes this.
  9. Offline

    Jaackk

    Bump! :D
     
  10. Offline

    Jaackk

    BUMP! :D
     
  11. Offline

    Jaackk

    BUMP! :D
     
  12. Offline

    Jaackk

    BUMPDIDDY BUMP! :D
     
  13. Offline

    Brzurk

    you can edit this in essentials message properties
     
  14. Offline

    Jaackk

    Please read above ^

    Many thanks :)
     
  15. Offline

    87pen

    Last edited: Jan 8, 2016
  16. Offline

    Firestar311

    @Jaackk Sorry, I have been on a very unexpected vacation and had no internet access or computer access, I am back now.
     
  17. Offline

    87pen

    Jaackk likes this.
  18. Offline

    Jaackk

    @Jayfeather311 Not a problem :)

    Thank you ever so much! I will download and install it now and get back to you :D

    EDIT: Works like a charm @87pen you are a star :D

    If anything could be added I think it would be cool to send a Minecraft sound when someone is messaged. Apart from that it's perfect, thanks again!
     
    Last edited: Jan 9, 2016
  19. Offline

    87pen

    @Jaackk After I fix the MCoreFactionsExtras bug I will look into adding sounds to the message plugin.
     
  20. Offline

    Jaackk

    Sounds good, thank you for your time @87pen :D
     
  21. Offline

    87pen

    https://www.dropbox.com/s/0jjigjfth4v3owy/LightWeightMessages.jar?dl=0
    In the config the sounds are customizable. You have to use the values from this list in caps.
    Sounds (open)

    AMBIENCE_CAVE
    AMBIENCE_RAIN
    AMBIENCE_THUNDER
    ANVIL_BREAK
    ANVIL_LAND
    ANVIL_USE
    ARROW_HIT
    BAT_DEATH
    BAT_HURT
    BAT_IDLE
    BAT_LOOP
    BAT_TAKEOFF
    BLAZE_BREATH
    BLAZE_DEATH
    BLAZE_HIT
    BURP
    CAT_HISS
    CAT_HIT
    CAT_MEOW
    CAT_PURR
    CAT_PURREOW
    CHEST_CLOSE
    CHEST_OPEN
    CHICKEN_EGG_POP
    CHICKEN_HURT
    CHICKEN_IDLE
    CHICKEN_WALK
    CLICK
    COW_HURT
    COW_IDLE
    COW_WALK
    CREEPER_DEATH
    CREEPER_HISS
    DIG_GRASS
    DIG_GRAVEL
    DIG_SAND
    DIG_SNOW
    DIG_STONE
    DIG_WOOD
    DIG_WOOL
    DONKEY_ANGRY
    DONKEY_DEATH
    DONKEY_HIT
    DONKEY_IDLE
    DOOR_CLOSE
    DOOR_OPEN
    DRINK
    EAT
    ENDERDRAGON_DEATH
    ENDERDRAGON_GROWL
    ENDERDRAGON_HIT
    ENDERDRAGON_WINGS
    ENDERMAN_DEATH
    ENDERMAN_HIT
    ENDERMAN_IDLE
    ENDERMAN_SCREAM
    ENDERMAN_STARE
    ENDERMAN_TELEPORT
    EXPLODE
    FALL_BIG
    FALL_SMALL
    FIRE
    FIRE_IGNITE
    FIREWORK_BLAST
    FIREWORK_BLAST2
    FIREWORK_LARGE_BLAST
    FIREWORK_LARGE_BLAST2
    FIREWORK_LAUNCH
    FIREWORK_TWINKLE
    FIREWORK_TWINKLE2
    FIZZ
    FUSE
    GHAST_CHARGE
    GHAST_DEATH
    GHAST_FIREBALL
    GHAST_MOAN
    GHAST_SCREAM
    GHAST_SCREAM2
    GLASS
    HORSE_ANGRY
    HORSE_ARMOR
    HORSE_BREATHE
    HORSE_DEATH
    HORSE_GALLOP
    HORSE_HIT
    HORSE_IDLE
    HORSE_JUMP
    HORSE_LAND
    HORSE_SADDLE
    HORSE_SKELETON_DEATH
    HORSE_SKELETON_HIT
    HORSE_SKELETON_IDLE
    HORSE_SOFT
    HORSE_WOOD
    HORSE_ZOMBIE_DEATH
    HORSE_ZOMBIE_HIT
    HORSE_ZOMBIE_IDLE
    HURT_FLESH
    IRONGOLEM_DEATH
    IRONGOLEM_HIT
    IRONGOLEM_THROW
    IRONGOLEM_WALK
    ITEM_BREAK
    ITEM_PICKUP
    LAVA
    LAVA_POP
    LEVEL_UP
    MAGMACUBE_JUMP
    MAGMACUBE_WALK
    MAGMACUBE_WALK2
    MINECART_BASE
    MINECART_INSIDE
    NOTE_BASS
    NOTE_BASS_DRUM
    NOTE_BASS_GUITAR
    NOTE_PIANO
    NOTE_PLING
    NOTE_SNARE_DRUM
    NOTE_STICKS
    ORB_PICKUP
    PIG_DEATH
    PIG_IDLE
    PIG_WALK
    PISTON_EXTEND
    PISTON_RETRACT
    PORTAL
    PORTAL_TRAVEL
    PORTAL_TRIGGER
    SHEEP_IDLE
    SHEEP_SHEAR
    SHEEP_WALK
    SHOOT_ARROW
    SILVERFISH_HIT
    SILVERFISH_IDLE
    SILVERFISH_KILL
    SILVERFISH_WALK
    SKELETON_DEATH
    SKELETON_HURT
    SKELETON_IDLE
    SKELETON_WALK
    SLIME_ATTACK
    SLIME_WALK
    SLIME_WALK2
    SPIDER_DEATH
    SPIDER_IDLE
    SPIDER_WALK
    SPLASH
    SPLASH2
    STEP_GRASS
    STEP_GRAVEL
    STEP_LADDER
    STEP_SAND
    STEP_SNOW
    STEP_STONE
    STEP_WOOD
    STEP_WOOL
    SUCCESSFUL_HIT
    SWIM
    VILLAGER_DEATH
    VILLAGER_HAGGLE
    VILLAGER_HIT
    VILLAGER_IDLE
    VILLAGER_NO
    VILLAGER_YES
    WATER
    WITHER_DEATH
    WITHER_HURT
    WITHER_IDLE
    WITHER_SHOOT
    WITHER_SPAWN
    WOLF_BARK
    WOLF_DEATH
    WOLF_GROWL
    WOLF_HOWL
    WOLF_HURT
    WOLF_PANT
    WOLF_SHAKE
    WOLF_WALK
    WOLF_WHINE
    WOOD_CLICK
    ZOMBIE_DEATH
    ZOMBIE_HURT
    ZOMBIE_IDLE
    ZOMBIE_INFECT
    ZOMBIE_METAL
    ZOMBIE_PIG_ANGRY
    ZOMBIE_PIG_DEATH
    ZOMBIE_PIG_HURT
    ZOMBIE_PIG_IDLE
    ZOMBIE_REMEDY
    ZOMBIE_UNFECT
    ZOMBIE_WALK
    ZOMBIE_WOOD
    ZOMBIE_WOODBREAK
     
  22. Offline

    Jaackk

    Hey @87pen , The plugin and sounds work amazingly however every time someone sends a message there is an internal error. There is nothing wrong with the plugin by appearance but this is shown every message.


    10.01 01:53:47 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'msg' in plugin LightWeightMessages v1.0

    10.01 01:53:47 [Server] ERROR Unhandled exception executing command 'msg' in plugin LightWeightMessages v1.0
     
  23. Offline

    87pen

  24. Offline

    Jaackk

    Works perfectly!

    Do you think you could add whether to disable if the message sends a sound to the player sending the message?
    I would like to disable this personally because I only want the receiving player to be notified of a message by sound.

    Many thanks :D
     
  25. Offline

    87pen

    In the config there should be two values. Right now they should look like this.
    sender: LEVEL_UP
    reciever: EXPLODE
    These are the sounds the sender and the reciever get when someone runs the command. Just change the sender value to NONE if you do not want them to recieve a sound.
     
  26. Offline

    Jaackk

    Yes I was wondering if I could put none but it wasn't in your sounds spoiler,

    That's everything then! Huge thanks @87pen :D

    Best Regards,
    Jack.
     
    87pen likes this.
Thread Status:
Not open for further replies.

Share This Page