mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-13 07:25:08 +01:00
Ensure sensitive information isn't shown without permission
This commit is contained in:
@@ -29,24 +29,40 @@ public final class InfoCommand implements CommandHandler {
|
|||||||
var questingEnabled = gameOptions.gameOptions.questing.enabled;
|
var questingEnabled = gameOptions.gameOptions.questing.enabled;
|
||||||
var scriptsEnabled = gameOptions.enableScriptInBigWorld;
|
var scriptsEnabled = gameOptions.enableScriptInBigWorld;
|
||||||
|
|
||||||
// TODO: Send to remote server (Grasscutter API) and send dump link.
|
|
||||||
CommandHandler.sendMessage(sender, """
|
CommandHandler.sendMessage(sender, """
|
||||||
Credits
|
Created by Meledy
|
||||||
- Slushy Team (akio, azzu, Areha11Fz, tamil)
|
- currently maintained by KingRainbow44
|
||||||
- Yuki (resource minifying & packaging)
|
- formerly maintained by Birdulon
|
||||||
- Dimbreath (dumping most resources)
|
|
||||||
|
|
||||||
|
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
|
Server Information
|
||||||
Revision: %s
|
Revision: %s
|
||||||
Player Count: %d
|
Player Count: %d
|
||||||
Questing Enabled: %s
|
Questing Enabled: %s
|
||||||
Scripts Enabled: %s
|
Scripts Enabled: %s
|
||||||
Operating System: %s
|
Operating System: %s
|
||||||
Resource Information: %s"""
|
Resource Information: %s
|
||||||
.formatted(
|
|
||||||
build, playerCount, questingEnabled, scriptsEnabled,
|
discord.gg/T5vZU6UyeG"""
|
||||||
System.getProperty("os.name"), resourceInfo.toString()
|
.formatted(
|
||||||
)
|
build, playerCount, questingEnabled, scriptsEnabled,
|
||||||
);
|
System.getProperty("os.name"), resourceInfo.toString()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
CommandHandler.sendMessage(sender, """
|
||||||
|
Grasscutter Discord: discord.gg/T5vZU6UyeG""");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user