mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 09:47:28 +00:00
Ensure sensitive information isn't shown without permission
This commit is contained in:
parent
621000fd4b
commit
f660a7b8a4
@ -29,24 +29,40 @@ public final class InfoCommand implements CommandHandler {
|
||||
var questingEnabled = gameOptions.gameOptions.questing.enabled;
|
||||
var scriptsEnabled = gameOptions.enableScriptInBigWorld;
|
||||
|
||||
// TODO: Send to remote server (Grasscutter API) and send dump link.
|
||||
CommandHandler.sendMessage(sender, """
|
||||
Credits
|
||||
- Slushy Team (akio, azzu, Areha11Fz, tamil)
|
||||
- Yuki (resource minifying & packaging)
|
||||
- Dimbreath (dumping most resources)
|
||||
Created by Meledy
|
||||
- currently maintained by KingRainbow44
|
||||
- formerly maintained by Birdulon
|
||||
|
||||
Other Credits
|
||||
- Slushy Team (akio, azzu, Areha11Fz, tamil; protocol)
|
||||
- Yuki (resource minifying & packaging)
|
||||
- Dimbreath (dumping most resources)""");
|
||||
// TODO: Send to remote server (Grasscutter API) and send dump link.
|
||||
if (
|
||||
sender == null
|
||||
|| sender.getAccount()
|
||||
.hasPermission("grasscutter.command.troubleshoot")
|
||||
|| playerCount == 1
|
||||
) {
|
||||
CommandHandler.sendMessage(sender, """
|
||||
Server Information
|
||||
Revision: %s
|
||||
Player Count: %d
|
||||
Questing Enabled: %s
|
||||
Scripts Enabled: %s
|
||||
Operating System: %s
|
||||
Resource Information: %s"""
|
||||
.formatted(
|
||||
build, playerCount, questingEnabled, scriptsEnabled,
|
||||
System.getProperty("os.name"), resourceInfo.toString()
|
||||
)
|
||||
);
|
||||
Resource Information: %s
|
||||
|
||||
discord.gg/T5vZU6UyeG"""
|
||||
.formatted(
|
||||
build, playerCount, questingEnabled, scriptsEnabled,
|
||||
System.getProperty("os.name"), resourceInfo.toString()
|
||||
)
|
||||
);
|
||||
} else {
|
||||
CommandHandler.sendMessage(sender, """
|
||||
Grasscutter Discord: discord.gg/T5vZU6UyeG""");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user