Sueta

DisguiseSaver

0.3

Players will log in with the disguise that they disconnected with

·Plugin

Overview
DisguiseSaver is an addon to disguise plugins.
DisguiseSaver will make players wear the disguise that they were wearing when they left, on rejoin.

Supported Disguise Command Syntaxes
/disguise <disguise-name> - Add aliases under "first-person-disguise" in config.yml

/undisguise - Add aliases under "first-person-undisguise" in config.yml

/disguiseplayer <player name> <disguise name> - Add aliases under "other-person-disguise" in config.yml

/undisguiseplayer <player name> - Add aliases under "other-person-undisguise" in config.yml

Commands
/disguisesaver -

aliases: /ds
description: show information about the plugin
permission: ds.info
/ disguisesaver reload -
aliases: /ds reload
description: reload the config.
permission: ds.reload

Permissions
ds.info -

allows players to use the command /disguisesaver
ds.reload -
allows players to use the command /disguisesaver reload
ds.*:
all the permission listed above

Plugin Configuration Guide
This is the default configuration file, it includes common aliases for commands in disguise plugins:

# Remove EVERY command that your disguise plugin does not have, and add EVERY command that it does have  
 # As for the permissions add your disguise plugin's permissions for each command  
 # After you have filled eveything pefrom /ds reload, either from the console or by a player that has the permission ds.reload   
first-person-disguise   : 
 - d 
- disguise  
first-person-undisguise   : 
 - u 
- undisguise  
other-person-disguise   : 
 - dplayer 
- disguiseplayer  
other-person-undisguise   : 
 - undplayer 
- undisguiseplayer  
first-person-disguise-permission   :  INSERT DISGUISE PLUGIN'S PERMISSION FOR THE COMMAND 
  /DISGISUISE AND/OR ITS ALIASES  
first-person-undisguise-permission   :  INSERT DISGUISE PLUGIN'S PERMISSION FOR THE COMMAND 
  /UNDISGISUISE AND/OR ITS ALIASES  
other-person-disguise-permission   :  INSERT DISGUISE PLUGIN'S PERMISSION FOR THE COMMAND 
  /DISGISUISEPLAYER AND/OR ITS ALIASES  
other-person-undisguise-permission   :  INSERT DISGUISE PLUGIN'S PERMISSION FOR THE COMMAND 
  /UNDISGISUISEPLAYER AND/OR ITS ALIASES

In the four first nodes add all the aliases for the commands in your disguise plugin; "first-person-diguise" is probably for /disguise, "first-person-undiguise" is probably for /undisguise, "other-person-diguise" is probably for /disguiseplayer, "other-person-undiguise" is probably for /undisguiseplayer. You should enter the aliases in YAML List format.
In the four nodes after that you should enter the permissions of your disguise plugin to the commands.

NOTE : Remove every alias that your disguise plugin doesn't include and add every alias that it does.

For the aliases part, let's say that your disguise plugin doesn't include the alias "d" for first person disguise and does include the alias "undis" for first person undisguise, the aliases nodes in the configuration file will look like this:

# Remove EVERY command that your disguise plugin does not have, and add every command that it does have   
first-person-disguise   : 
 - disguise  
first-person-undisguise   : 
 - undis 
- u 
- undisguise  
other-person-disguise   : 
 - dplayer 
- disguiseplayer  
other-person-undisguise   : 
 - undplayer 
- undisguiseplayer

For the permissions part, let's say that you use LibsDisguises (You can use any disguise plugin, the permissions list of your plugin is probably in its wiki or overview page), the permissions nodes in your configuration files will look like this:

first-person-disguise-permission   :  libsdisguises.disguise.*  
first-person-undisguise-permission   :  libsdisguises.undisguise  
other-person-disguise-permission   :  libsdisguises.disguiseplayer.*  
other-person-undisguise-permission   :  libsdisguises.undisguiseplayer

The coniguration file should always be in valid YAML format which you can validate here .

Version History
0.1: Support for commands /disguise and /undisguise

0.2: Support for commands /disguiseplayer and /undisguiseplayer, added command configuration, added data saver for server reset/reload, added update notifications

0.2.1 : Added a command to reload the config

0.3 : Fixed bugs, add info command (/disguisesaver)

How to Rate
5 stars :
plugin works fine, report any small bugs
1-4 stars : report major bugs. when fixed change rating to 5 stars

Donation
Feel free to donate and support me : https://www.paypal.me/robertlitmc

License of Agreement :
By downloading and/or using DisguiseSaver ("the plugin") you accept the following terms:
1. You must not decompile the plugin
2. You must not copy and/or use any of the plugin's code
3. You must not disturbute the plugin and/or claim ownership of the plugin
4. I (robertlit) can change this license at any time and you must always accept the most recent version of this licene
5. I (robertlit) reserve all the rights to the plugin and its code
6. This license is valid for all versions of the plugin
7. If you do not accept one or more of these terms don't download or use the plugin

Copyright (c) 2019, robertlit. All rights reserved.

Similar projects

Plugin →