public static String getString(String key, MyPetPlayer player) { if (player == null) { return key; } return getString(key, player.getLanguage()); }