mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
38a890f840
commit
f5f1a22b93
1 changed files with 11 additions and 0 deletions
11
MinecraftClient/config/sample-script-random-command.cs
Normal file
11
MinecraftClient/config/sample-script-random-command.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//MCCScript 1.0
|
||||
|
||||
string[] commands = new[] {
|
||||
"send command1",
|
||||
"send command2",
|
||||
"send command3"
|
||||
};
|
||||
|
||||
int randomIndex = new Random().Next(0, commands.Length);
|
||||
string randomCommand = commands[randomIndex];
|
||||
MCC.PerformInternalCommand(randomCommand);
|
||||
Loading…
Add table
Add a link
Reference in a new issue