mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 13:37:42 +00:00
Merge branch 'development' into unstable-quests
# Conflicts: # src/main/java/emu/grasscutter/command/commands/SetPropCommand.java
This commit is contained in:
commit
34c3c6229f
12
README.md
12
README.md
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
## Quick setup guide
|
## Quick setup guide
|
||||||
|
|
||||||
**Note:** For support please join our [Discord](https://discord.gg/T5vZU6UyeG).
|
**Note**: For support please join our [Discord](https://discord.gg/T5vZU6UyeG).
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ cd Grasscutter
|
|||||||
.\gradlew jar # Compile
|
.\gradlew jar # Compile
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Linux
|
##### Linux (GNU)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/Grasscutters/Grasscutter.git
|
git clone https://github.com/Grasscutters/Grasscutter.git
|
||||||
@ -97,10 +97,6 @@ chmod +x gradlew
|
|||||||
|
|
||||||
You can find the output jar in the root of the project folder.
|
You can find the output jar in the root of the project folder.
|
||||||
|
|
||||||
### Commands have moved to the [wiki](https://github.com/Grasscutters/Grasscutter/wiki/Commands)!
|
### Troubleshooting
|
||||||
|
|
||||||
# Quick Troubleshooting
|
For a list of common issues and solutions and to ask for help, please join [our Discord server](https://discord.gg/T5vZU6UyeG) and go to the support channel.
|
||||||
|
|
||||||
* If compiling wasn't successful, please check your JDK installation (Make sure its JDK 17 or higher and validated JDK's bin PATH variable).
|
|
||||||
* My client doesn't connect, doesn't login, 4206, etc... - Mostly your proxy daemon setup is *the issue*. If you're using Fiddler, change the default port to anything other than 8888.
|
|
||||||
* Startup sequence: MongoDB > Grasscutter > Proxy Daemon (mitmdump, fiddler, etc.) > Game
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
package emu.grasscutter.command.commands;
|
package emu.grasscutter.command.commands;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
import emu.grasscutter.command.Command;
|
import emu.grasscutter.command.Command;
|
||||||
import emu.grasscutter.command.CommandHandler;
|
import emu.grasscutter.command.CommandHandler;
|
||||||
import emu.grasscutter.data.GameData;
|
import emu.grasscutter.data.GameData;
|
||||||
@ -9,9 +14,6 @@ import emu.grasscutter.game.tower.TowerLevelRecord;
|
|||||||
import emu.grasscutter.server.packet.send.PacketOpenStateChangeNotify;
|
import emu.grasscutter.server.packet.send.PacketOpenStateChangeNotify;
|
||||||
import emu.grasscutter.server.packet.send.PacketSceneAreaUnlockNotify;
|
import emu.grasscutter.server.packet.send.PacketSceneAreaUnlockNotify;
|
||||||
import emu.grasscutter.server.packet.send.PacketScenePointUnlockNotify;
|
import emu.grasscutter.server.packet.send.PacketScenePointUnlockNotify;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
label = "setProp",
|
label = "setProp",
|
||||||
@ -22,11 +24,8 @@ import java.util.Map;
|
|||||||
public final class SetPropCommand implements CommandHandler {
|
public final class SetPropCommand implements CommandHandler {
|
||||||
// List of map areas. Unfortunately, there is no readily available source for them in excels or
|
// List of map areas. Unfortunately, there is no readily available source for them in excels or
|
||||||
// bins.
|
// bins.
|
||||||
private static final List<Integer> sceneAreas =
|
private static final List<Integer> sceneAreas = IntStream.range(1, 1000).boxed().toList();
|
||||||
List.of(
|
private final Map<String, Prop> props;
|
||||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
||||||
28, 29, 32, 100, 101, 102, 103, 200, 210, 300, 400, 401, 402, 403);
|
|
||||||
Map<String, Prop> props;
|
|
||||||
|
|
||||||
public SetPropCommand() {
|
public SetPropCommand() {
|
||||||
this.props = new HashMap<>();
|
this.props = new HashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user