Developers
Developers
This plugin comes with an API to get, set and reset skins and display names.
Setup
Eclipse:
- Right click your project on the Package Explorer and click Properties. (or press ALT+ENTER)
- Click on "Java Build Path" on the sidebar (left) of the properties window.
- Click "Add External Jars" (or "Add JARs" if you have a /lib/ folder) and locate SkinChanger.jar.
- Click Open (or "OK") and then "OK" again to close the Properties window.
IntelliJ:
- Load your project.
- Go to "File" then "Project Structure" or by default, CTRL+ALT+SHIFT+S.
- Go to "Libraries".
- Press the green plus sign. (may be a different colour depending on theme of IntelliJ)
- Press "Java".
- Locate SkinChanger.jar.
- Press "OK" and "OK" again.
How to use
When you want to use the SkinAPI class, you must import: com.faris.skinchanger.utils.SkinAPI
All methods in the SkinAPI class are static and so can be used without making an instance of it.
Methods
Name | Para(s) | Description | Return | Returns |
---|---|---|---|---|
getDisplayName() | player | Get the display name of a player. | String | The player's display name. |
getSkin() | player | Get the skin of a player. | String | The player's skin name. |
set() | player, skinUsername, displayName | Set the skin and display name of a player. | boolean | True if the setting of skins and display name was successful. |
setSkin() | player, skinUsername | Set the skin of a player. | boolean | True if the setting of the skin was successful. |
setDisplayName() | player, displayName | Set the display name of a player. | boolean | True if the setting of the name was successful. |
reset() | player | Reset the player's skin and display name. | Nothing | Nothing. |
resetDisplayName() | player | Reset the player's display name. | Nothing | Nothing. |
resetSkin() | player | Reset the player's skin. | Nothing | Nothing. |
Comments