Facebook
From Wet Mockingjay, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 44
  1. [15:30:16 WARN]: java.io.IOException: Die Syntax f├╝r den Dateinamen, Verzeichnisnamen oder die Datentr├Ągerbezeichnung ist falsch
  2. [15:30:16 WARN]:        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  3. [15:30:16 WARN]:        at java.io.File.createNewFile(Unknown Source)
  4. [15:30:16 WARN]:        at me.jumper251.replay.filesystem.saving.DefaultReplaySaver.saveReplay(DefaultReplaySaver.java:41)
  5. [15:30:16 WARN]:        at me.jumper251.replay.filesystem.saving.ReplaySaver.save(ReplaySaver.java:27)
  6. [15:30:16 WARN]:        at me.jumper251.replay.replaysystem.recording.Recorder.stop(Recorder.java:150)
  7. [15:30:16 WARN]:        at de.alex.essentialslite.listener.AdvancedReplay.stopRecording(AdvancedReplay.java:65)
  8. [15:30:16 WARN]:        at de.alex.essentialslite.listener.AdvancedReplay.onArenaStatusChangeEvent(AdvancedReplay.java:39)
  9. [15:30:16 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor31.execute(Unknown Source)
  10. [15:30:16 WARN]:        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69)
  11. [15:30:16 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
  12. [15:30:16 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
  13. [15:30:16 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:545)
  14. [15:30:16 WARN]:        at de.marcely.bedwars.game.arena.Arena.a(Arena.java:453)
  15. [15:30:16 WARN]:        at de.marcely.bedwars.game.arena.Arena.a(Arena.java:377)
  16. [15:30:16 WARN]:        at de.marcely.bedwars.game.arena.Arena.b(Arena.java:2036)
  17. [15:30:16 WARN]:        at de.marcely.bedwars.game.arena.Arena.a(Arena.java:797)
  18. [15:30:16 WARN]:        at de.marcely.bedwars.ba.a(PlayerQuit.java:44)
  19. [15:30:16 WARN]:        at de.marcely.bedwars.as.a(Events.java:31)
  20. [15:30:16 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor137.execute(Unknown Source)
  21. [15:30:16 WARN]:        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69)
  22. [15:30:16 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
  23. [15:30:16 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
  24. [15:30:16 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:545)
  25. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.PlayerList.disconnect(PlayerList.java:409)
  26. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1485)
  27. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.NetworkManager.handleDisconnection(NetworkManager.java:356)
  28. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.ServerConnection.c(ServerConnection.java:163)
  29. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1255)
  30. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417)
  31. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098)
  32. [15:30:16 WARN]:        at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925)
  33. [15:30:16 WARN]:        at java.lang.Thread.run(Unknown Source)
  34. [15:30:16 ERROR]: Could not pass event ArenaStatusUpdateEvent to MBedwars v4.0.15
  35. java.lang.NullPointerException: null
  36.         at me.jumper251.replay.replaysystem.recording.Recorder.stop(Recorder.java:146) ~[?:?]
  37.         at de.marcely.bedwars.et.g(AdvancedReplay.java:71) ~[?:?]
  38.         at de.marcely.bedwars.et.a(AdvancedReplay.java:51) ~[?:?]
  39.         at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor120.execute(Unknown Source) ~[?:?]        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.14.4.jar:git-Paper-243]
  40.         at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.14.4.jar:git-Paper-243]
  41.         at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.14.4.jar:git-Paper-243]
  42.         at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:545) ~[patched_1.14.4.jar:git-Paper-243]
  43.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:453) ~[?:?]
  44.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:377) ~[?:?]
  45.         at de.marcely.bedwars.game.arena.Arena.b(Arena.java:2036) ~[?:?]
  46.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:797) ~[?:?]
  47.         at de.marcely.bedwars.ba.a(PlayerQuit.java:44) ~[?:?]
  48.         at de.marcely.bedwars.as.a(Events.java:31) ~[?:?]
  49.         at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor137.execute(Unknown Source) ~[?:?]        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.14.4.jar:git-Paper-243]
  50.         at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.14.4.jar:git-Paper-243]
  51.         at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.14.4.jar:git-Paper-243]
  52.         at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:545) ~[patched_1.14.4.jar:git-Paper-243]
  53.         at net.minecraft.server.v1_14_R1.PlayerList.disconnect(PlayerList.java:409) ~[patched_1.14.4.jar:git-Paper-243]
  54.         at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1485) ~[patched_1.14.4.jar:git-Paper-243]
  55.         at net.minecraft.server.v1_14_R1.NetworkManager.handleDisconnection(NetworkManager.java:356) ~[patched_1.14.4.jar:git-Paper-243]
  56.         at net.minecraft.server.v1_14_R1.ServerConnection.c(ServerConnection.java:163) ~[patched_1.14.4.jar:git-Paper-243]
  57.         at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1255) ~[patched_1.14.4.jar:git-Paper-243]
  58.         at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417) ~[patched_1.14.4.jar:git-Paper-243]        at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098) ~[patched_1.14.4.jar:git-Paper-243]
  59.         at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925) ~[patched_1.14.4.jar:git-Paper-243]
  60.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
  61. [15:30:36 INFO]: Replay Gestoppt!
  62. [15:30:36 ERROR]: Could not pass event ArenaStatusUpdateEvent to MBedwars v4.0.15
  63. java.lang.NullPointerException: null
  64.         at me.jumper251.replay.replaysystem.recording.Recorder.stop(Recorder.java:146) ~[?:?]
  65.         at de.marcely.bedwars.et.g(AdvancedReplay.java:71) ~[?:?]
  66.         at de.marcely.bedwars.et.a(AdvancedReplay.java:51) ~[?:?]
  67.         at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor120.execute(Unknown Source) ~[?:?]
  68.         at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.14.4.jar:git-Paper-243]
  69.         at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.14.4.jar:git-Paper-243]
  70.         at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.14.4.jar:git-Paper-243]
  71.         at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:545) ~[patched_1.14.4.jar:git-Paper-243]
  72.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:453) ~[?:?]
  73.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:377) ~[?:?]
  74.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:830) ~[?:?]
  75.         at de.marcely.bedwars.game.arena.Arena.a(Arena.java:971) ~[?:?]
  76.         at de.marcely.bedwars.game.arena.b.F(ArenaScheduler.java:516) ~[?:?]
  77.         at de.marcely.bedwars.MBedwars$3.run(MBedwars.java:241) ~[?:?]
  78.         at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.14.4.jar:git-Paper-243]
  79.         at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.14.4.jar:git-Paper-243]
  80.         at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1171) ~[patched_1.14.4.jar:git-Paper-243]
  81.         at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:417) ~[patched_1.14.4.jar:git-Paper-243]
  82.         at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:1098) ~[patched_1.14.4.jar:git-Paper-243]
  83.         at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:925) ~[patched_1.14.4.jar:git-Paper-243]
  84.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
  85.        
  86.        
  87.        
  88.         Code:
  89.        
  90.        
  91.        
  92.        
  93.         package de.alex.essentialslite.listener;
  94.  
  95. import java.text.SimpleDateFormat;
  96. import java.util.Date;
  97. import java.util.HashMap;
  98. import java.util.Map;
  99.  
  100. import org.bukkit.Bukkit;
  101. import org.bukkit.entity.Player;
  102. import org.bukkit.event.EventHandler;
  103. import org.bukkit.event.HandlerList;
  104. import org.bukkit.event.Listener;
  105. import de.marcely.bedwars.api.ArenaStatus;
  106. import de.marcely.bedwars.api.event.ArenaStatusUpdateEvent;
  107. import de.marcely.bedwars.game.arena.Arena;
  108. import me.jumper251.replay.api.ReplayAPI;
  109. import me.jumper251.replay.replaysystem.Replay;
  110.  
  111. public class AdvancedReplay implements Listener {
  112.          
  113.     private final Map<Arena, Replay> recordings = new HashMap<>();
  114.    
  115.  
  116.     public void onDisable(){
  117.         HandlerList.unregisterAll(this);
  118.        
  119.         for(Replay replay:this.recordings.values()){
  120.             if(replay.isRecording())
  121.                 replay.getRecorder().stop(true);
  122.         }
  123.        
  124.         this.recordings.clear();
  125.     }
  126.    
  127.     @EventHandler
  128.     public void onArenaStatusChangeEvent(ArenaStatusUpdateEvent event){
  129.         final Arena arena = (Arena) event.getArena();
  130.        
  131.         stopRecording(arena);
  132.        
  133.         if(event.getStatus() == ArenaStatus.Running) {
  134.             startRecording(arena);
  135.         }
  136.                
  137.     }
  138.    
  139.     private void startRecording(Arena arena){
  140.         Date now = new Date();
  141.         SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
  142.         final String name = "MBW: " + arena.getName() + " [" + format.format(now) + "]";
  143.         final Replay replay = ReplayAPI.getInstance().recordReplay(name, Bukkit.getConsoleSender(), arena.getPlayers().stream().toArray(Player[]::new));
  144.         System.out.println("┬žaReplay Startet! ┬žb" + arena.getPlayers().stream().toArray(Player[]::new));
  145.        
  146.         this.recordings.put(arena, replay);
  147.     }
  148.    
  149.     private void stopRecording(Arena arena){
  150.         final Replay replay = this.recordings.get(arena);
  151.         System.out.println("┬žcReplay Gestoppt!");
  152.        
  153.         if(replay == null)
  154.             return;
  155.        
  156.         if(replay.isRecording())
  157.             replay.getRecorder().stop(true);
  158.        
  159.        
  160.         this.recordings.remove(arena);
  161.     }
  162. }      
  163.  
  164.