Spigot ServerRestarter 1.1

Restart the server, independent of hosting

  1. NorthPL submitted a new resource:

    ServerRestarter - Restart the server, independent of hosting

    Read more about this resource...
     
  2. Thats nice and all, but this is laughably complicated just to restart a server compared to using spigot's /restart and a bash/BAT script, or simply a looping startup script and /stop (or just a control panel's restart). There's something to be said about the ratio of effort:benefit, and just because its possible doesn't make it practical.

    Still, good on you for showing anything can be done if you know what you're doing.


    And lol:
    Code (Text):
        if (localPluginDescriptionFile.getName().equals("Skript"))
          ClassLoaderBridge.jdMethod_do("[PluginLoader] Loading " + localPluginDescriptionFile.getFullName() + " (i really must do it? :( )");
     
  3. As I have written... this plugin was to be the only proof that in Java everything we can.
    Someone needed a plugin that allows to restart the server without shell scripts, etc., And received a response of "you can not" like.
    "Me? I can not do!?"

    PS. lol2: [​IMG]
    (i try translate it to english...)
     
    • Like Like x 1
  4. Maybe add an config option for restart messages would me nice :)
     
  5. I get 2 errors on start up how to fix this problem?
    [14:00:24] [Server thread/INFO]: [ServerRestarter] Loading ServerRestarter v1.1
    [14:00:24] [Server thread/INFO]: [ServerRestarter]
    Bukkicie nasz,
    któryś jest w javie,
    święć się metody Twoje,
    przyjdź repo Twoje,
    bądź kod Twój jako w gicie tak i w mavenie,
    stacktrace naszego powszedniego daj nam dzisiaj,
    i odpuść nam bugi Twoje,
    jako i my odpuszczamy naszym kolegom z pracy,
    i nie wódź nas na wycieki pamięci,
    ale nas zbaw od Skript.

    Enter.

    ~Bukkit.PL

    [14:00:24] [Server thread/ERROR]: no attach in java.library.path initializing ServerRestarter v1.1 (Is it up to date?)
    java.lang.UnsatisfiedLinkError: no attach in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source) ~[?:1.8.0_45]
    at java.lang.Runtime.loadLibrary0(Unknown Source) ~[?:1.8.0_45]
    at java.lang.System.loadLibrary(Unknown Source) ~[?:1.8.0_45]
    at sun.tools.attach.LinuxVirtualMachine.<clinit>(Unknown Source) ~[?:?]
    at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(Unknown Source) ~[?:?]
    at com.sun.tools.attach.VirtualMachine.attach(Unknown Source) ~[?:?]
    at tk.northpl.serverrestarter.code.Core.do(Unknown Source) ~[?:?]
    at tk.northpl.serverrestarter.PluginBoot.onLoad(Unknown Source) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:296) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:199) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    [14:00:24] [Server thread/ERROR]: Error occurred while enabling ServerRestarter v1.1 (Is it up to date?)
    java.lang.NoClassDefFoundError: javassist/ClassPool
    at tk.northpl.serverrestarter.code.MinecraftCodePatcher.<clinit>(Unknown Source) ~[?:?]
    at tk.northpl.serverrestarter.code.northPl.do(Unknown Source) ~[?:?]
    at tk.northpl.serverrestarter.code.Core.for(Unknown Source) ~[?:?]
    at tk.northpl.serverrestarter.PluginBoot.onEnable(Unknown Source) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugin(CraftServer.java:356) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at org.bukkit.craftbukkit.v1_8_R2.CraftServer.enablePlugins(CraftServer.java:316) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:200) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) [spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_45]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.3.jar:git-Spigot-1d14d5f-7aaa833]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_45]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_45]
    ... 12 more
     
    #5 xwolfyxNL, May 9, 2015
    Last edited: May 9, 2015