Home›Java›Mods›UploadSkins - Upload your own skins
UploadSkins - Upload your own skins
ModsJava

UploadSkins - Upload your own skins

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
For now Spigot Only!
Tested on spigot 1.11
==============================================

Features:
Requirements:
  1. MySQL Database
  2. Website hosting (with ability to set folder permissions)
  3. CustomSkins (it requires NickNamer and PacketListenerAPI )
  4. Java 8
Screenshot of the html+php page that i will be providing:
[​IMG]

Website Files: Download

How it works(Short):
Spoiler: How it works:
Basicly, when a player joins, it adds him to the mysql database if he is joining for the first time. Every time he joins the server, it updates the ipadress he used to join the server. When he goes to change the skin, he will need to enter the username and chose a skin to upload. when he clicks upload, the site gets the ip adress of the pc thats accessing the website, it compares it to the ip which the player used when he joined the server last time, and if they match, the skin will be uploaded, if not, he wont be able to upload it. For this reason the server and the website both need to be either on local host, or on a remote host. a mix of those two wont work. A player cant change another players skin unless that player logged on the server from the pc from where the skin is being changed.


How to install:
Plugin:

Spoiler: Plugin:
Download the plugin and place it in your plugins folder.
Start the server, and close it right after its done loading. (You will see errors, just ignore them)
Go into the config file, and put in your mysql login info:

Code (Text):
MySql_Hostname: hostname       - set your mysql hostname
MySql_Port: 3306                         - Port must be 3306. Sorry.
MySql_User: user                         - set your mysql username
MySql_Password: password       - set your mysql password
MySql_dbName: database           - set your database name
Website: your.website.com         - set the link to your website(without http://)
Note:
Where it says Website, you need to enter the link to the website where the skins will be uploaded. So if the skins are uploaded to your.website.com/uploads/skins.png, you will have to enter just "your.website.com".
(Note: Skins must be uploaded to a folder named uploads)
Then just start the server. If you configured everything correctly, it will work!
(untill a player sets a skin, every time he joins the server, you will see an error in the console saying skin '0' doesnt exsist, use /createcustomskin 0 link to create a skin with that id. What you need to do is set the default skin for players for when they join. name of the skin must be 0.)

Website:
Spoiler: Website:
Download the website files from HERE .
Open uploadskins.php with a text editor (notepad++ recommended)
Edit the following things:

Code (Text):

$servername = "mysql_hostname";  -set your mysql hostname
$username = "mysql_username";     -set your mysql username
$password = "mysql_password";      -set your mysql password
$dbname = "mysql_database";          -set your database name
Upload the files to your webhost.
Create a folder where uploadskins.php is located named uploads (exactly like this) and set permissions for it to 777 (permission for everyone to be able to read, execute and write in the folder) otherwise the skins wont be uploaded!

How to set default skin:

Spoiler: Default Skin:
To create a default skin, you will have to upload the skin you want to any place where you can get the link to it with .png at the end, and then just use the command: /createcustomskin 0 link_to_the_skin

After that, everything should work just fine.
Note that the plugin customskins sometimes fails to create a skin, in which case the player will have to upload the skin again.


IMPORTANT!!
Im not an expert programmer so i cant say that the security of the php page is good. Beware of mysql injections! I recommend that you create your own php page that has better security. I do not take any responsability for any type of breakthrough. You are free to use my php code, but i strongly suggest making your own.
==============================================

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

UploadSkins - Upload your own skins is a free Minecraft Java mod. Downloaded 507 times (via Spigot). Download it and open it directly in the game.

Explore more