AdvancedReplay
作者:rebot | 分类:模组
Minecraft 版本: 1.8.8 1.8.9 1.21.11 26.1 26.1.1 26.1.2
平台: bukkit paper purpur spigot
标签: management technology utility

AdvancedReplay
AdvancedReplay is a Replay system for Spigot 1.8 & 1.21.
It can record players on your Server and save the recorded data to a file or database, so you can watch the replays at any time. Currently it records almost every action a player does and can be easily controlled with the commands.
⚠️ This Plugin needs ProtocolLib to run.
Features
Replaying: When watching a replay you have a variety of tools to control the replay. For example, you can pause it, change the speed, teleport to one of the players and more.
Easy to use API: AdvancedReplay comes with a lot of possibilities for customization with the api, including a way to change how replays are saved and a possibility to add and replay your own data.
For more details take look at the API section.
Recorded Data:
AdvancedReplay is currently able to record players, living entities, items and Projectiles.
- Player movements
- Player actions (Eating, Arm animations & more)
- Inventory changes
- Metadata updates
- Projectiles
- Dropped Items
- Block changes by players
- Chat messages
If you encounter any bugs please report them in Github.
Configuration
In the config.yml you can configure some general settings about the plugin and the recorded data If you want to use a database you also need to set up the mysql.yml.
If you want to disable a notification or message just leave it empty.
Videos
Commands/Permissions
/replay - Overview of all commands
/replay start [Name]:[Duration] [<Players ...>] - Starts recording a new Replay
/replay stop [-nosave|-force] - Stops and saves a Replay
/replay play - Starts a recorded Replay
/replay jump - Jump to a specific moment
/replay leave - Leave your Replay
/replay info - Information about a Replay
/replay delete - Deletes an existing Replay
/replay list [Page] - Lists all available Replays
/replay reload - Reloads the configuration
replay.command. - Permission for the specific command
API Examples
Register a custom ReplaySaver ```java ReplayAPI.getInstance().registerReplaySaver(new IReplaySaver() { @Override public void saveReplay(Replay replay) { ReplayData data = replay.getData(); // Will be called to save a new replay } @Override public boolean replayExists(String replayName) { // Return true if the replay exists return false; } @Override public void loadReplay(String replayName, Consumer consumer) { // Load the ReplayData and return a new replay to the consumer consumer.accept(new Replay(replayName, new ReplayData())); } @Override public void deleteReplay(String replayName) { // Will be called to delete an existing replay } @Override public List getReplays() { // Return all available replays return null; } }); ``` Register your own ReplayHook ```java ReplayAPI.getInstance().registerHook(new IReplayHook() { @Override public PacketData onRecord(String playerName) { /* * Will be called every tick for every player that is being recorded. * Return a PacketData containing the data that you want to add. */ return null; } @Override public void onPlay(ActionData data, Replayer replayer) { String name = data.getName(); PacketData packetData = data.getPacketData(); // Will be called whenever a previous recorded action should be played } }); ``` Replay Events ```java public void onReplayFinished(ReplaySessionFinishEvent e) { Player player = e.getPlayer(); Replay replay = e.getReplay(); ```请登录后举报
暂无评论,抢个沙发吧~