Minecraft 1.18 requires Java 17. PloxHost will automatically detect if you're running 1.18 or not and change your java version if needed.
If this fails to update, you may see an error such as:
Exception in thread "main" java.lang.UnsupportedClassVersionError
You can manually change your Java version to 18 in your ploxhost.yml file.
Please see: https://support.plox.host/en/knowledgebase/article/change-java-version