Replay System - Project Overwatch - PSC Support

 Replay System - Project Overwatch - PSC Support 1.0

Replay System - Project Overwatch - PSC Support
Tested Minecraft Versions:
  • 1.8
  • 1.9
4841959410.png


07a2ce43ab.png

7d5ebd6378.png



564add317e.png

Code:
Permission: Overwatch.use
- Using Overwatch

Permission: Overwatch.record
- /overwatch record start [player]
=> Start recording.
=> Without giving player you are recording all players.
- /overwatch record stop [player]
=> Stop recording.
=> Without giving player you are stop recording all players.
- /overwatch record play <name> [player]
=> Playing a capture
=> Without giving player you are playing all files of the filename.

Permission: Overwatch.snapshot
- /overwatch snapshot start <fileName> [player]
=> Start snapshoting.
=> Without giving player you are recording all players.
- /overwatch snapshot stop [player]
=> Stop snapshoting.
=> Without giving player you are stop recording for all players.
- /overwatch snapshot play <fileName> [player]
=> Playing a snapshot.
=> Without giving player you are playing all files with the filename.

Difference between snapshot and record:
Record = Copying world and teleporting to world.
Snapshot = Register recording where the world is. Not copying the world.

a637db6a8a.png

Code:
#The maximum time in seconds a ShadowCap recording can be. (Set to 0 to disable shadowcap)
shadowcap_time: 60

#Plugin Metrics - Send anonymous usage statistics to MCStats.org. Please leave this on, it gives me insight into how much my plugin is used!
plugin_metrics: true

#Where the plugins will be saved. Standard path: standard.
path: standard

#MySQL information for website integration + key usage.
mysql:
  enable: true
  hostname: localhost
  port: 3306
  database: overwatch
  username: root
  password: ''
  host: 127.0.0.1
Code:
record:
  play:
    single_player: '&aPlaying file &e#%key% &awith the player &e%playername%&a.'
    file_not_exists: '&cThis file doesn''t exists.'
    all_players: '&aPlaying all files with the name &e#%key%&a.'
    not_start_with_char: '&cThe file didn''t start with the &e#&c! Please remove it.'
  start:
    all_players: '&aRecording &eall &aplayers with the file name &e#%key%&a.'
    single_player: '&aRecording the player &e%playername% &awith the file name &e#%key%&a.'
  stop:
    single_player: '&aRecording stopped for player &e%playername%&a. Saved as &e#%key%&a.'
    all_players: '&aRecording stopped for all players. Saved as &e#%key%&a.'
  already_recording: '&cYou are already recording.'
  player_not_online: '&cThis player is not online.'
snapshot:
  play:
    single_player: '&aPlaying file &e%filename% &awith the player &e%playername%&a.'
    all_players: '&aPlaying all files with the name &e%filename%&a.'
  start:
    all_players: '&aSnapshating &eall &aplayers with the name &e%filename%&a.'
    single_player: '&aSnapshating the player &e%playername% &awith the name &e%filename%&a.'
  stop:
    single_player: '&aSnapshating stopped for the player &e%playername%&a. Saved as
      &e%filename%&a.'
    all_players: '&aSnapshating stopped for all players. Saved as &e%filename%&a.'
command:
  no_permission: '&cYou have no permissions to execute this command.'

6dc7fc0423.png

Code:
You can implement the jar to your plugin to use the Overwatch API.

First class is the OverwatchAPI.class
Code: OverwatchAPI.getInstance()...

Here there are some util methods for Overwatch.


The second class is the Capture.class
Here you create a new Capture Object and you can give the Object a key parameter.
Code: Capture capture = new Capture("Not necessary filename");

There are a lot of methods you can use for example startSnapshot().

There will be a lot more updates for this API.

7ea456d33f.png


a6e944f848.png

Similar resources

StrikePractice – PvP Bot, Replay Matches, Build, Ranked, Party, Events, Kit Editor, MySQL MikeyBoy
Perfect practice PvP plugin with realistic PvP Bot, fight playbacks and more.
4.25 star(s) 4 ratings
Downloads
1,871
Updated
X Replay | Advanced Replay Plugin Dekomori
X Replay is a minecraft replay plugin which lets you record and replay every game automatically.
2.67 star(s) 6 ratings
Downloads
1,138
Updated
BlackSpigot General Chat
Rules Help Users
    L @ Lumm: No clue gang
    Top