File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/kotlin/com/lambda/client/command/commands Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import net.minecraft.client.renderer.GlStateManager
8
8
import net.minecraft.client.renderer.OpenGlHelper
9
9
import net.minecraftforge.common.ForgeVersion
10
10
import org.lwjgl.opengl.GL11
11
+ import java.util.*
11
12
12
13
object TroubleshootCommand : ClientCommand(
13
14
name = " troubleshoot" ,
@@ -18,9 +19,12 @@ object TroubleshootCommand : ClientCommand(
18
19
execute(" Print troubleshooting information" ) {
19
20
MessageSendHelper .sendErrorMessage(" &l&cSend a screenshot of all information below this line!" )
20
21
MessageSendHelper .sendChatMessage(" Enabled Modules:\n " + ModuleManager .modules.filter { it.isEnabled }.joinToString { it.name })
21
- MessageSendHelper .sendChatMessage(" Forge ${ForgeVersion .getMajorVersion()} .${ForgeVersion .getMinorVersion()} .${ForgeVersion .getRevisionVersion()} .${ForgeVersion .getBuildVersion()} " )
22
22
MessageSendHelper .sendChatMessage(" ${LambdaMod .NAME } ${LambdaMod .LAMBDA } ${LambdaMod .VERSION } " )
23
- MessageSendHelper .sendChatMessage(" CPU: ${OpenGlHelper .getCpu()} GPU: ${GlStateManager .glGetString(GL11 .GL_VENDOR )} " )
23
+ MessageSendHelper .sendChatMessage(" Forge ${ForgeVersion .getMajorVersion()} .${ForgeVersion .getMinorVersion()} .${ForgeVersion .getRevisionVersion()} .${ForgeVersion .getBuildVersion()} " )
24
+ MessageSendHelper .sendChatMessage(" Operating System: ${System .getProperty(" os.name" ).lowercase(Locale .getDefault()).replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale .getDefault()) else it.toString() }} ${System .getProperty(" os.version" )} " )
25
+ MessageSendHelper .sendChatMessage(" JVM: ${System .getProperty(" java.version" )} ${System .getProperty(" java.vendor" )} " )
26
+ MessageSendHelper .sendChatMessage(" GPU: ${GlStateManager .glGetString(GL11 .GL_VENDOR )} " )
27
+ MessageSendHelper .sendChatMessage(" CPU: ${System .getProperty(" os.arch" )} ${OpenGlHelper .getCpu()} " )
24
28
MessageSendHelper .sendErrorMessage(" &l&cPlease send a screenshot of the full output to the developer or moderator who's helping you!" )
25
29
}
26
30
}
You can’t perform that action at this time.
0 commit comments