Evilsystem Posted July 10, 2013 Share Posted July 10, 2013 Hello there! I have some problems setting up minecraft with WHMCS. I can't figure out what I'm doing wrong? This is where I'm at: Here is my minecraft_config.php: <?php include('default_values.php'); switch ($params["configoptions"]["Ram"]) { case "256MB": $billing_api_values["gamevar_Xms"] = "256"; $billing_api_values["gamevar_Xmx"] = "256"; $billing_api_values["game_slots"] = 3; break; case "512GB": $billing_api_values["gamevar_Xms"] = "512"; $billing_api_values["gamevar_Xmx"] = "512"; $billing_api_values["game_slots"] = 12; break; case "768MB": $billing_api_values["gamevar_Xms"] = "768"; $billing_api_values["gamevar_Xmx"] = "768"; $billing_api_values["game_slots"] = 16; break; case "1024MB": $billing_api_values["gamevar_Xms"] = "1024"; $billing_api_values["gamevar_Xmx"] = "1024"; $billing_api_values["game_slots"] = 20; break; case "1.5GB": $billing_api_values["gamevar_Xms"] = "1536"; $billing_api_values["gamevar_Xmx"] = "1536"; $billing_api_values["game_slots"] = 30; break; case "2GB": $billing_api_values["gamevar_Xms"] = "2048"; $billing_api_values["gamevar_Xmx"] = "2048"; $billing_api_values["game_slots"] = 40; break; case "3GB": $billing_api_values["gamevar_Xms"] = "3072"; $billing_api_values["gamevar_Xmx"] = "3072"; $billing_api_values["game_slots"] = 70; break; case "4GB": $billing_api_values["gamevar_Xms"] = "4096"; $billing_api_values["gamevar_Xmx"] = "4096"; $billing_api_values["game_slots"] = 100; break; } ?> I hope someone can tell my what I'm doing wrong? Link to comment Share on other sites More sharing options...
Evilsystem Posted July 10, 2013 Author Share Posted July 10, 2013 Basically I just need to know how to setup the Configure Able options with the .php file? Link to comment Share on other sites More sharing options...
CloudCUBE Posted July 11, 2013 Share Posted July 11, 2013 You need to do the ram value then your comment. for example 512|512mb Link to comment Share on other sites More sharing options...
Evilsystem Posted July 12, 2013 Author Share Posted July 12, 2013 Thanks.. I got it working now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.