Filled [SIMPLE] Restrict Essentials "/nick" command

Discussion in 'Archived: Plugin Requests' started by HunterGPlays, Nov 23, 2014.

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

    HunterGPlays

    Suggested name: NickRestrict

    What I want: Basically, Essentials features the "/nick" command. However, I want to use it only to format my name with colour and formatting codes, not change it to something else however there is no feature for that. I want a plugin that makes sure when you do "/nick {name}" that {name} is the same as your real name, ignoring colour or formatting codes. If it's not then it won't allow the command and give you a configurable error message.

    Ideas for commands: It shouldn't need any commands, perhaps just "/nickrestrict reload".

    It should allow "/nick &cHunter&e&lG&rPlays" but not "/nick ThisIsNotMyName" as Essentials does not allow you to only use "/nick" for colouring your name.
    Ideas for permissions: nickrestrict.bypass - allow access to change your nickname (default OPs only)

    When I'd like it by: Anytime but the sooner, the better!
     
  2. Offline

    mrCookieSlime Retired Staff

    HunterGPlays
    My Plugin ChatTitles allows you to do this. It requires you to use the Chat System from RankPrefix+ though.
    Both links are in my signature.
     
  3. Offline

    HunterGPlays

    You can only choose from presets with your plugin, I want a plugin that you can change the colours your ingame name to whatever you choose (like /nick &cHun&dter&6GPlays) because I saw another server that uses essentials for nicknames and has a custom plugin that makes sure you don't change your nickname to anything else.
     
  4. Offline

    mrCookieSlime Retired Staff

    HunterGPlays
    Ah I see.
    But still a good Alternative just incase ;D
     
  5. Offline

    ZyphiorMC

    HunterGPlays - I am not sure that this is even possible.
     
  6. Offline

    HunterGPlays

    It was on another server, it is possible
     
  7. Offline

    mrCookieSlime Retired Staff

  8. Offline

    xepisolonxx

    HunterGPlays I made something like this like during 1.7.2 i upated it but im not sure if you want tablist name or displayname so msg me wich <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Oct 31, 2016
  9. Offline

    HunterGPlays

    [quote uid=90780536 name="xepisolonxx" post=2902645]HunterGPlays I made something like this like during 1.7.2 i upated it but im not sure if you want tablist name or displayname so msg me wich <Edit by Moderator: Redacted mediafire url>

    This changes your tablist name, I just want a plugin that makes sure when you do "/nick {name}" that {name} is the same as your real name, ignoring colour or formatting codes. If it's not then it won't allow the command and give you a configurable error message.
     
    Last edited by a moderator: Oct 31, 2016
  10. Offline

    nverdier

    HunterGPlays

    I could do this using essentials nicknames. First it would checks if the nickname is actual user name, then it would run a console command so the user's essentials nickname would be changed. Would this work?
     
  11. Offline

    HunterGPlays

    It shouldn't be a console command, it should be run from the player.

    Lets say my IGN is HunterGPlays.
    It should just make sure that "/nick &cHunter&7G&lPlays" works but not "/nick ThisIsNotMyRealName". Basically just check if the command is using the players real name or else do not allow the command and display an error message from the config.
     
  12. Offline

    HunterGPlays

    nverdier I said I was gonna change to CommandBook in my previous post, I changed my mind. Anyway read the previous post.

     
  13. Offline

    nverdier

    HunterGPlays What I mean is the user would type "/nick &cHunter&6G&lPlays" and then my plugin would take out the color codes and check if the name their actual username, then it would run a console command of "/essentials:nickname &cHunter&6G&lPlays" so that the nickname is through essentials, but they can't differ from their actual name other than colors. But never mind cause you don't want it.
     
  14. Offline

    HunterGPlays

    That's perfect, yeah please do that, and if you do just add one more thing, a message saying it was successful. Thanks
     
  15. Offline

    nverdier

    Wait so you want me to do it or you're still going to use command book? What's going on lol
     
  16. Offline

    HunterGPlays

    I would appreciate it if you still did it, and I'm not gonna use CommandBook.
     
  17. Offline

    bwfcwalshy Retired Staff

  18. Offline

    nverdier

    kk thanks xD

    HunterGPlays
    http://dev.bukkit.org/bukkit-plugins/nickrestrict/

    Commands: /nick [nickname|off]
    /nick [player] [nickname|off]

    Permissions: nickrestrict.bypass <-- to set prefix other than your actual name
    nickrestrict.other <-- to the another player's nickname, also bypasses the name restriction
    nickrestrict.* <-- to bypass all restrictions
    nickrestrict.admin <-- same as nick restrict.*

    NOTE: OPs have access to all commands and have no restrictions whatsoever.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  19. Offline

    HunterGPlays

    [quote uid=90962328 name="nverdier" post=2904865]HunterGPlays
    <Edit by Moderator: Redacted mediafire url>

    Commands: /nick [nickname|off]
    /nick [player] [nickname|off]

    Permissions: nickrestrict.bypass <-- to set prefix other than your actual name
    nickrestrict.other <-- to the another player's nickname, also bypasses the name restriction
    nickrestrict.* <-- to bypass all restrictions
    nickrestrict.admin <-- same as nick restrict.*

    NOTE: OPs have access to all commands and have no restrictions whatsoever.[/quote]

    That's exactly like what I wanted! Thanks a lot! There were a few minor niggles but I posted it on the plugin page.
     
    Last edited by a moderator: Oct 31, 2016
Thread Status:
Not open for further replies.

Share This Page