Sueta
MY

MySQL Nicks

1.3.1

Sync Nicknames via MySQL

·Plugin

Saves Nicks on a MySQL Database

Dependancies:
- PlaceHolderAPI
- A MySQL Database

Optional:
- EssentialsX
- CMI

Placeholders:
- mysqlnicks_nickname
(will show player name if not nicked)

Permissions:
- mysqlnicks.nick (permits user to nick himself and use color codes)
- mysqlnicks.nick.format (permits user to use format codes; like &m, &l)
- mysqlnicks.staff (permits user to nick others)
- mysqlnicks.importnicks (permission to import nicks from essentials)

Commands:
- /nick <nickname>
- /nick off
- /nick <player> <name/off>
- /importnicks (imports nicks from EssentialsX)
- /importcminicks (import nicks from CMI)

Config.yml
MySQL   : 
    #MYSQL details, a MySQL Database is required for this plugin to work   
  Host   :  ' '  
  Port   :  3306  
  Username   :  ' '  
  Password   :  ' '  
  Database   :  ' ' 

 # Set to '' if you don't want a prefix.   
Nickname-Prefix   :  '~' 
 
Messages   : 
    #When command is done from console, this will only show if not using /nick <user> <nick>   
  No-Console   :  '&cOnly players can use this command.' 
   #When someone does /nick and has no perms   
  No-Permission   :  '&cYou do not have permission to use this command' 
   #Shows when someone tries to nick but doesn't have the perm to use format codes   
  No-Format   :  '&cYou are not allowed to use code formatting in your nickname.' 
   #When the player is not found (needs to be on same server)   
  Invalid-Player   :  '&cUnable to find a player with that name.' 
   #Pretty Obvious ;)   
  Insufficient-Arguments   :  '&cPlease use command like this &6/nick &e<name>' 
   #When Staff just set nickname of another player   
  Staff-Set-Nickname   :  '&aSuccessfully set  %player%''s nickname to &e%nickname%'  
   #Error when setting other's nickname   
  Staff-Error-Nickname   :  '&cAn error occurred while trying to set  %player%''s nickname.'  
   #When doing /nick <player> off   
  Staff-Unset-Nickname   :  '&aSuccessfully removed  %player%''s nickname.'  
   #Users message when setting their own nicks   
  Set-Nickname   :  '&aSuccessfully set your nickname to &e  %nickname%'   
  Error-Nickname   :  '&cAn error occurred while trying to set your nickname.'  
  Unset-Nickname   :  '&aSuccessfully removed your nickname.' 

   #Message when doing /importnicks   
  ImportNicks-Success   :  '&aSuccessfully imported nicks from EssentialsX'

Similar projects

Plugin →