#!/bin/sh
DIR="$(cd "$(dirname "$0")" && pwd)"
JAVA_EXE="$HOME/.ZionScape/jre/bin/java"
if [ ! -x "$JAVA_EXE" ]; then
  if command -v java >/dev/null 2>&1; then
    JAVA_EXE="java"
  else
    JAVA_EXE="$DIR/jre/bin/java"
  fi
fi
exec "$JAVA_EXE" -jar "$DIR/client-launcher.jar"
