Commit 7bac86ed authored by Melledy's avatar Melledy
Browse files

Add !changescene command

parent be89a609
......@@ -325,4 +325,20 @@ public class PlayerCommands {
player.getInventory().removeItems(toRemove);
}
}
@Command(aliases = {"scene"}, helpText = "/Changescene [Scene id]")
public static class ChangeScene extends PlayerCommand {
@Override
public void execute(GenshinPlayer player, String raw) {
int sceneId = 0;
try {
sceneId = Integer.parseInt(raw);
} catch (Exception e) {
return;
}
player.getWorld().transferPlayerToScene(player, sceneId, player.getPos());
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment