Advertisement
Guest User

Ja keine Arnung xD

a guest
Dec 4th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.70 KB | None | 0 0
  1.  
  2. CODE!----------------------------------------------------------------------------------------------------------------------------------
  3.  
  4.  
  5.  
  6. package me.remadyretunrs.mute_leben;
  7.  
  8. import java.io.File;
  9. import java.io.IOException;
  10. import java.util.ArrayList;
  11. import java.util.List;
  12.  
  13. import org.bukkit.Bukkit;
  14. import org.bukkit.configuration.file.FileConfiguration;
  15. import org.bukkit.configuration.file.YamlConfiguration;
  16. import org.bukkit.event.Listener;
  17. import org.bukkit.plugin.java.JavaPlugin;
  18.  
  19. import me.remadyretunrs.mute_leben.commands.MuteCommand;
  20. import me.remadyretunrs.mute_leben.commands.UnmuteCommand;
  21.  
  22. public class main extends JavaPlugin implements Listener{
  23.  
  24. public static File cfg;
  25. public static FileConfiguration Config;
  26. public static File ordner;
  27.  
  28. public static String pf = "§8[§cFLAMED§8] §7 ";
  29. public static String nop = "§8[§cFLAMED§8] §7Du hast keine Rechte dazu!";
  30. public static String pno = "§8[§cFLAMED§8] §7Du musst ein Spieler sein!";
  31. public static String pv = "§8[§cFLAMED§8] §7Dieser Spieler ist bereits ";
  32. public static List<String> muted = new ArrayList<>();
  33.  
  34. public void onEnable(){
  35. cfg = new File("plugins/FLAMED" , "config.yml");
  36. Config = YamlConfiguration.loadConfiguration(cfg);
  37. ordner = new File("plugins/FLAMED");
  38.  
  39. if(!cfg.exists()){
  40. try {
  41. cfg.createNewFile();
  42. System.out.println("Die Config von FLAMED wurde erstellt!");
  43. } catch (IOException e) {
  44. System.out.println("Config von FLAMED geladen!");
  45. e.printStackTrace();
  46. }
  47. if(!ordner.exists()){
  48. ordner.mkdir();
  49. }
  50. muted = Config.getStringList("muted");
  51.  
  52. }
  53.  
  54. getCommand("mute").setExecutor(new MuteCommand());
  55. getCommand("umute").setExecutor(new UnmuteCommand());
  56. Bukkit.getPluginManager().registerEvents(new MuteCommand(), this);
  57. Bukkit.getPluginManager().registerEvents(this, this);
  58. }
  59. }
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. FEHLER!--------------------------------------------------------------------------------------------------------------------------------
  70.  
  71.  
  72. [23:07:15] [Server thread/INFO]: Starting minecraft server version 1.10
  73. [23:07:15] [Server thread/INFO]: Loading properties
  74. [23:07:15] [Server thread/INFO]: Default game type: SURVIVAL
  75. [23:07:16] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-6016ac7-10c10b3 (MC: 1.10) (Implementing API version 1.10-R0.1-SNAPSHOT)
  76. [23:07:16] [Server thread/INFO]: Debug logging is disabled
  77. [23:07:16] [Server thread/INFO]: Server Ping Player Sample Count: 12
  78. [23:07:16] [Server thread/INFO]: Using 4 threads for Netty based IO
  79. [23:07:16] [Server thread/INFO]: Generating keypair
  80. [23:07:17] [Server thread/INFO]: Starting Minecraft server on *:29876
  81. [23:07:17] [Server thread/INFO]: Using default channel type
  82. [23:07:17] [Server thread/INFO]: Set PluginClassLoader as parallel capable
  83. [23:07:18] [Server thread/INFO]: [MuteLeben] Loading MuteLeben v1.0
  84. [23:07:18] [Server thread/INFO]: [ViaVersion] Loading ViaVersion v1.0.1
  85. [23:07:18] [Server thread/INFO]: [ViaVersion] ViaVersion 1.0.1 is now loaded, injecting!
  86. [23:07:18] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time ****
  87. [23:07:18] [Server thread/INFO]: Preparing level "world"
  88. [23:07:18] [Server thread/INFO]: -------- World Settings For [world] --------
  89. [23:07:18] [Server thread/INFO]: Arrow Despawn Rate: 1200
  90. [23:07:18] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
  91. [23:07:18] [Server thread/INFO]: Item Merge Radius: 2.5
  92. [23:07:18] [Server thread/INFO]: Item Despawn Rate: 6000
  93. [23:07:18] [Server thread/INFO]: View Distance: 10
  94. [23:07:18] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
  95. [23:07:18] [Server thread/INFO]: Experience Merge Radius: 3.0
  96. [23:07:18] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
  97. [23:07:18] [Server thread/INFO]: Max Entity Collisions: 8
  98. [23:07:18] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
  99. [23:07:18] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
  100. [23:07:18] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
  101. [23:07:18] [Server thread/INFO]: Mob Spawn Range: 4
  102. [23:07:18] [Server thread/INFO]: Cactus Growth Modifier: 100%
  103. [23:07:18] [Server thread/INFO]: Cane Growth Modifier: 100%
  104. [23:07:18] [Server thread/INFO]: Melon Growth Modifier: 100%
  105. [23:07:18] [Server thread/INFO]: Mushroom Growth Modifier: 100%
  106. [23:07:18] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
  107. [23:07:18] [Server thread/INFO]: Sapling Growth Modifier: 100%
  108. [23:07:18] [Server thread/INFO]: Wheat Growth Modifier: 100%
  109. [23:07:18] [Server thread/INFO]: NetherWart Growth Modifier: 100%
  110. [23:07:18] [Server thread/INFO]: Structure Info Saving: true
  111. [23:07:18] [Server thread/INFO]: Random Lighting Updates: false
  112. [23:07:18] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
  113. [23:07:18] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
  114. [23:07:18] [Server thread/INFO]: Max TNT Explosions: 100
  115. [23:07:19] [Server thread/INFO]: -------- World Settings For [world_nether] --------
  116. [23:07:19] [Server thread/INFO]: Arrow Despawn Rate: 1200
  117. [23:07:19] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
  118. [23:07:19] [Server thread/INFO]: Item Merge Radius: 2.5
  119. [23:07:19] [Server thread/INFO]: Item Despawn Rate: 6000
  120. [23:07:19] [Server thread/INFO]: View Distance: 10
  121. [23:07:19] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
  122. [23:07:19] [Server thread/INFO]: Experience Merge Radius: 3.0
  123. [23:07:19] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
  124. [23:07:19] [Server thread/INFO]: Max Entity Collisions: 8
  125. [23:07:19] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
  126. [23:07:19] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
  127. [23:07:19] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
  128. [23:07:19] [Server thread/INFO]: Mob Spawn Range: 4
  129. [23:07:19] [Server thread/INFO]: Cactus Growth Modifier: 100%
  130. [23:07:19] [Server thread/INFO]: Cane Growth Modifier: 100%
  131. [23:07:19] [Server thread/INFO]: Melon Growth Modifier: 100%
  132. [23:07:19] [Server thread/INFO]: Mushroom Growth Modifier: 100%
  133. [23:07:19] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
  134. [23:07:19] [Server thread/INFO]: Sapling Growth Modifier: 100%
  135. [23:07:19] [Server thread/INFO]: Wheat Growth Modifier: 100%
  136. [23:07:19] [Server thread/INFO]: NetherWart Growth Modifier: 100%
  137. [23:07:19] [Server thread/INFO]: Structure Info Saving: true
  138. [23:07:19] [Server thread/INFO]: Random Lighting Updates: false
  139. [23:07:19] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
  140. [23:07:19] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
  141. [23:07:19] [Server thread/INFO]: Max TNT Explosions: 100
  142. [23:07:19] [Server thread/INFO]: -------- World Settings For [world_the_end] --------
  143. [23:07:19] [Server thread/INFO]: Arrow Despawn Rate: 1200
  144. [23:07:19] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
  145. [23:07:19] [Server thread/INFO]: Item Merge Radius: 2.5
  146. [23:07:19] [Server thread/INFO]: Item Despawn Rate: 6000
  147. [23:07:19] [Server thread/INFO]: View Distance: 10
  148. [23:07:19] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
  149. [23:07:19] [Server thread/INFO]: Experience Merge Radius: 3.0
  150. [23:07:19] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
  151. [23:07:19] [Server thread/INFO]: Max Entity Collisions: 8
  152. [23:07:19] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
  153. [23:07:19] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
  154. [23:07:19] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
  155. [23:07:19] [Server thread/INFO]: Mob Spawn Range: 4
  156. [23:07:19] [Server thread/INFO]: Cactus Growth Modifier: 100%
  157. [23:07:19] [Server thread/INFO]: Cane Growth Modifier: 100%
  158. [23:07:19] [Server thread/INFO]: Melon Growth Modifier: 100%
  159. [23:07:19] [Server thread/INFO]: Mushroom Growth Modifier: 100%
  160. [23:07:19] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
  161. [23:07:19] [Server thread/INFO]: Sapling Growth Modifier: 100%
  162. [23:07:19] [Server thread/INFO]: Wheat Growth Modifier: 100%
  163. [23:07:19] [Server thread/INFO]: NetherWart Growth Modifier: 100%
  164. [23:07:19] [Server thread/INFO]: Structure Info Saving: true
  165. [23:07:19] [Server thread/INFO]: Random Lighting Updates: false
  166. [23:07:19] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
  167. [23:07:19] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
  168. [23:07:19] [Server thread/INFO]: Max TNT Explosions: 100
  169. [23:07:20] [Server thread/INFO]: Preparing start region for level 0 (Seed: -7271937898445544145)
  170. [23:07:22] [Server thread/INFO]: Preparing spawn area: 0%
  171. [23:07:23] [Server thread/INFO]: Preparing spawn area: 6%
  172. [23:07:24] [Server thread/INFO]: Preparing spawn area: 13%
  173. [23:07:25] [Server thread/INFO]: Preparing spawn area: 39%
  174. [23:07:26] [Server thread/INFO]: Preparing spawn area: 72%
  175. [23:07:27] [Server thread/INFO]: Preparing start region for level 1 (Seed: -7271937898445544145)
  176. [23:07:28] [Server thread/INFO]: Preparing spawn area: 2%
  177. [23:07:29] [Server thread/INFO]: Preparing spawn area: 22%
  178. [23:07:30] [Server thread/INFO]: Preparing spawn area: 40%
  179. [23:07:31] [Server thread/INFO]: Preparing spawn area: 49%
  180. [23:07:32] [Server thread/INFO]: Preparing spawn area: 94%
  181. [23:07:32] [Server thread/INFO]: Preparing start region for level 2 (Seed: -7271937898445544145)
  182. [23:07:34] [Server thread/INFO]: Preparing spawn area: 48%
  183. [23:07:34] [Server thread/INFO]: [MuteLeben] Enabling MuteLeben v1.0
  184. [23:07:34] [Server thread/INFO]: Config von FLAMED geladen!
  185. [23:07:34] [Server thread/WARN]: java.io.IOException: Das System kann den angegebenen Pfad nicht finden
  186. [23:07:34] [Server thread/WARN]: at java.io.WinNTFileSystem.createFileExclusively(Native Method)
  187. [23:07:34] [Server thread/WARN]: at java.io.File.createNewFile(Unknown Source)
  188. [23:07:34] [Server thread/WARN]: at me.remadyretunrs.mute_leben.main.onEnable(main.java:36)
  189. [23:07:34] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292)
  190. [23:07:34] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)
  191. [23:07:34] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
  192. [23:07:34] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugin(CraftServer.java:362)
  193. [23:07:34] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugins(CraftServer.java:322)
  194. [23:07:34] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.t(MinecraftServer.java:416)
  195. [23:07:34] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.l(MinecraftServer.java:381)
  196. [23:07:34] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.a(MinecraftServer.java:336)
  197. [23:07:34] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:270)
  198. [23:07:34] [Server thread/WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:539)
  199. [23:07:34] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
  200. [23:07:34] [Server thread/ERROR]: Error occurred while enabling MuteLeben v1.0 (Is it up to date?)
  201. java.lang.NullPointerException
  202. at me.remadyretunrs.mute_leben.main.onEnable(main.java:50) ~[?:?]
  203. at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot.jar:git-Spigot-6016ac7-10c10b3]
  204. at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  205. at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  206. at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugin(CraftServer.java:362) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  207. at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugins(CraftServer.java:322) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  208. at net.minecraft.server.v1_10_R1.MinecraftServer.t(MinecraftServer.java:416) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  209. at net.minecraft.server.v1_10_R1.MinecraftServer.l(MinecraftServer.java:381) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  210. at net.minecraft.server.v1_10_R1.MinecraftServer.a(MinecraftServer.java:336) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  211. at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:270) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  212. at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:539) [spigot.jar:git-Spigot-6016ac7-10c10b3]
  213. at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
  214. [23:07:34] [Server thread/INFO]: [ViaVersion] Enabling ViaVersion v1.0.1
  215. [23:07:34] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
  216. [23:07:34] [Server thread/INFO]: Done (16,387s)! For help, type "help" or "?"
  217. [23:07:35] [Server thread/INFO]: [ViaVersion] ViaVersion detected server version: 1.10(210)
  218. [23:12:55] [User Authenticator #1/INFO]: UUID of player RemadyReturns is 22b3ea68-bcc9-4613-8508-466bab7446b4
  219. [23:13:03] [Server thread/INFO]: RemadyReturns[/127.0.0.1:51503] logged in with entity id 260 at ([world]-0.7101399559525784, 74.0, -0.5)
  220. [23:13:32] [Server thread/INFO]: RemadyReturns issued server command: /plugins
  221. [23:13:36] [Server thread/INFO]: RemadyReturns issued server command: /mute
  222. [23:13:46] [Server thread/INFO]: RemadyReturns issued server command: /mute remadyret
  223. [23:14:03] [Async Chat Thread - #0/INFO]: <RemadyReturns> .
  224. [23:14:07] [Server thread/INFO]: RemadyReturns lost connection: Disconnected
  225. [23:14:08] [Server thread/INFO]: RemadyReturns left the game.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement