Filled Prefix 'yes' and 'no' changer

Discussion in 'Plugin Requests' started by PexLord, Oct 5, 2017.

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

    PexLord

    Plugin category: Chat Utilities

    Minecraft version: 1.8+

    Suggested name: PrefixChatChanger

    What I want: Simply a plugin that lets players change their chat prefix (PEX), but when they perform for example /prefix blabla it will first ask them in chat 'are you sure you want blabla to be your prefix? type yes or no - if they will type 'yes' it will change, if they will type 'no' it will cancel the changing proccess. Same goes for /removeprefix (which will be used for resetting your prefix to the pex group original prefix).

    Ideas for commands:
    /prefix
    /removeprefix

    Ideas for permissions:
    prefixchanger.prefix = perm for /prefix
    prefixchanger.removeprefix = perm for /removeprefix

    When I'd like it by: As soon as possible please :) Thanks in advance of course!
     
  2. Offline

    Dai_Kunai

    I could create this, but what happens if they don't write yes or no, but something else?
     
  3. Offline

    PexLord

    Something like what? :)
     
  4. Offline

    Arkobat

    Description:
    I have created on after my best skills.
    I have tested it on a 1.8.8 server, with Pex version 1.23.4

    It can be used for every permssion / prefix plugin, because you define the command to change the prefix in config.yml
    I have made the standard to fit Pex
    Change this line to change the command executed by console.
    Code:
    cmdPrefixSet: 'pex user %player% prefix &6[&5%prefix%&6]'

    You can have a standard prefix to change back to when players use /prefix remove.
    Standard removes the prrefix.
    Can be changed in config.yml
    Code:
    cmdPrefixRem: 'pex user %player% prefix ""'

    If you decide to use my plugin, and need any changes, be sure to PM me, and i will do my best to change whatever you should need :)



    Commands:
    • /prefix change <arg>
    • /prefix remove
    • /prefix yes
    • /prefix no
    • /prefix help
    • /prefix reload

    Permissions:
    • prefixchanger.use
      • Basic permission. Needed to execute all commands.
    • prefixchanger.change
      • Allows you to change your prefix
    • prefixchanger.remove
      • Allows you to remove your prefix
    • prefixchanger.help
      • Allows you to see the help page
    • prefixchanger.reload
      • Allows you to reload the plugin
      • Default: OP

    I have sent the download in a private message, as i can't post mediafire links on this forum.
     
  5. Offline

    PexLord

    Could you change the /prefix no and /prefix yes to chat messages using ASyncPlayerChatEvent or something? So they can say 'yes' and 'no' in chat instead of running a command.
     
  6. Offline

    Arkobat

  7. Offline

    PexLord

    Thanks so much for this! I really appreciate it! :)

    Just one little issue I got: When I type 'yes', it does change my prefix, but then I can't type anything else in chat (It keeps saying the confirmation message, and says its 'not a yes/no'), until I type 'no' which stops that and I am able to chat again..
     
  8. Offline

    Arkobat

  9. Offline

    PexLord

    It works like a charm. This plugin is something I have requested several times and no one helped me with it. I really appreciate and thank you for your work and help! :)

    Mods - this thread can now be locked.
     
Thread Status:
Not open for further replies.

Share This Page