This is my first post here so if I'm not in the right place sorry....
I am attempting to run two instances of minecraft with different usernames so I can test out permissions on my server. If I connect to different servers or just use singleplayer I can run the two without any problems but when I connect to the same server it freezes both clients. Any ideas why?
Run a client command line (java -jar minecraft.jar from where the launcher is), see if any errors show up.
Thanks...I see nothing interesting in the output, no errors. I am starting the first client like normal and I am using the following bash script to run the second client.
#!/bin/bash
IP="default"
port="default"
name="default"
while getopts ":i:p:n:" opt; do
case $opt in
i)
IP=$OPTARG
;;
p)
port=$OPTARG
;;
n)
name=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done
if [[ $IP != "default" && $port != "default" && $name != "default" ]]; then
echo "Starting Minecraft with IP port configuration of: $IP:$port, and the username: $name"
java -DsocksProxyHost=$IP -DsocksProxyPort=$port -Xms512m -Xmx1024m -cp "$HOME/.minecraft/bin/*" -Djava.library.path="$HOME/.minecraft/bin/natives" net.minecraft.client.Minecraft "$name"
elif [ $name != "default" ]; then
echo "Starting Minecraft with the username: $name"
java -Xms512m -Xmx1024m -cp "$HOME/.minecraft/bin/*" -Djava.library.path="$HOME/.minecraft/bin/natives" net.minecraft.client.Minecraft "$name"
elif [[ $IP != "default" && $port != "default" ]]; then
echo "Starting Minecraft with IP port configuration of: $IP:$port"
java -DsocksProxyHost=$IP -DsocksProxyPort=$port -jar ~/.minecraft/minecraft.jar
else
echo "Usage: minecraftproxy [-options]"
echo
echo "options include: "
echo " -i socks4/5 proxy IP"
echo " -p proxy port"
echo " -n desired username"
echo
echo "Two things to NOTE:"
echo -e "1) if you intend to use the proxy function your minecraft.jar must be placed in ~/.minecraft/\nalso -i and -p options must be used together and will not work alone."
echo -e "2) if you change your username with the -n option you will only be able to play on\ncracked servers."
fi
where I use just the -n option to just change the username.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This is my first post here so if I'm not in the right place sorry....
I am attempting to run two instances of minecraft with different usernames so I can test out permissions on my server. If I connect to different servers or just use singleplayer I can run the two without any problems but when I connect to the same server it freezes both clients. Any ideas why?
OS: Crunchbang linux 64-bit, 4gb ram, Intel core i3 3.1ghz quadcore.
-
View User Profile
-
View Posts
-
Send Message
Retired StaffNeed your server status on your website? Check out mcapi.us!
@Syfaro
Thanks...I see nothing interesting in the output, no errors. I am starting the first client like normal and I am using the following bash script to run the second client.
#!/bin/bash
IP="default"
port="default"
name="default"
while getopts ":i:p:n:" opt; do
case $opt in
i)
IP=$OPTARG
;;
p)
port=$OPTARG
;;
n)
name=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done
if [[ $IP != "default" && $port != "default" && $name != "default" ]]; then
echo "Starting Minecraft with IP port configuration of: $IP:$port, and the username: $name"
java -DsocksProxyHost=$IP -DsocksProxyPort=$port -Xms512m -Xmx1024m -cp "$HOME/.minecraft/bin/*" -Djava.library.path="$HOME/.minecraft/bin/natives" net.minecraft.client.Minecraft "$name"
elif [ $name != "default" ]; then
echo "Starting Minecraft with the username: $name"
java -Xms512m -Xmx1024m -cp "$HOME/.minecraft/bin/*" -Djava.library.path="$HOME/.minecraft/bin/natives" net.minecraft.client.Minecraft "$name"
elif [[ $IP != "default" && $port != "default" ]]; then
echo "Starting Minecraft with IP port configuration of: $IP:$port"
java -DsocksProxyHost=$IP -DsocksProxyPort=$port -jar ~/.minecraft/minecraft.jar
else
echo "Usage: minecraftproxy [-options]"
echo
echo "options include: "
echo " -i socks4/5 proxy IP"
echo " -p proxy port"
echo " -n desired username"
echo
echo "Two things to NOTE:"
echo -e "1) if you intend to use the proxy function your minecraft.jar must be placed in ~/.minecraft/\nalso -i and -p options must be used together and will not work alone."
echo -e "2) if you change your username with the -n option you will only be able to play on\ncracked servers."
fi
where I use just the -n option to just change the username.