Rebuilding arena API

Discussion in 'Plugin Help/Development/Requests' started by HenkDeKipGaming, Jul 8, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    HenkDeKipGaming

    hey, i am looking for a plugin that can rebuild arena's
    But i don't just want one where you have a command and it'll rebuild your selection from before.
    i want to use this in my own plugin, so it should have like methods where i can easily use it to save arena's to my own config and then use a rebuild method from this api.
    it can just depend on worldedit or something.
    if i'm not clear with what i need, please tell me :)
    if someone wants to make this, i reaaaalllyyy appreciate it!

    - Greetings :D

    EDIT: new idea (litterally taken from a post of me down there)

    Okey, so I thaught of a new (maybe a bit more clear) idea:

    Idea: A plugin that can backup a world and simply restore that backup world.

    It should be able to backup worlds with custom names.
    I need it to be compatible with 1.8
    Also, this might be a hard feature, so I'm sorry if I'm asking to much from you guys :O
    I'd like to use this in my own plugin...
    So for example i make a minigame plugin and the game has ended in my plugin, then it would be amazing to just use a simple method where I can easily restore the world that I'd like to.
    So maybe like:
    Code:
    restoreWorld("worldName");
    
    And
    Code:
    BackupWorld("worldName");
    
    Something really simple to use for me.
    if anyone wants to make something like this I would really appreciate that! I love this community!
    I hope it's not too big of a deal, because this might be a little bit asky...
    But yeah, if anyone wants to make this, I love you xD

    Commands: There are no commands needed, if I can use it simply in my code
    Permissions: Same with the commands, I can make them myself in my code

    when should it be done: Any time, if someone even wants to make time for making this, I would appreciate it so much!

    Thanks for reading :) I hope someone wants to make this for me :D

    - Greetings
     
    Last edited: Jul 9, 2015
  2. Offline

    timtower Administrator Administrator Moderator

    HenkDeKipGaming likes this.
  3. Offline

    HenkDeKipGaming

    yeah, but those are really hard for me to understand, maybe someone can make that easyer for me with some easy to understand methods?

    thanks :D
     
  4. Offline

    Zombie_Striker

  5. Offline

    HenkDeKipGaming

    that website is offline :(

    EDIT: nvm
    This website shows commands...
    i see no code or anything that i could use in my plugin :(

    Okey, so I thaught of a new (maybe a bit more clear) idea:

    Idea: A plugin that can backup a world and simply restore that backup world.

    It should be able to backup worlds with custom names.
    I need it to be compatible with 1.8
    Also, this might be a hard feature, so I'm sorry if I'm asking to much from you guys :O
    I'd like to use this in my own plugin...
    So for example i make a minigame plugin and the game has ended in my plugin, then it would be amazing to just use a simple method where I can easily restore the world that I'd like to.
    So maybe like:
    Code:
    restoreWorld("worldName");
    
    And
    Code:
    BackupWorld("worldName");
    
    Something really simple to use for me.
    if anyone wants to make something like this I would really appreciate that! I love this community!
    I hope it's not too big of a deal, because this might be a little bit asky...
    But yeah, if anyone wants to make this, I love you xD

    Commands: There are no commands needed, if I can use it simply in my code
    Permissions: Same with the commands, I can make them myself in my code

    when should it be done: Any time, if someone even wants to make time for making this, I would appreciate it so much!

    Thanks for reading :) I hope someone wants to make this for me :D

    - Greetings

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 12, 2016
  6. Offline

    HenkDeKipGaming

    Code:
    if (YouCanBumpHere = true) {
        bukkit.sendMessage("BUMP");
    } else {
        bukkit.sendMessage("sorry :O");
    }
     
  7. I've actually made an algorithim that regenerates full worlds from a backup,
    But every arena would have to be in a separate world
     
  8. Offline

    HenkDeKipGaming

    hey, is that simple to use in code?
    because i just like to use it in my own code, it just has to reload a backup of a world back to the world.

    Thanks for your reply :)
     
    Last edited by a moderator: Jul 10, 2015
  9. Last edited by a moderator: Jul 10, 2015
    HenkDeKipGaming likes this.
  10. Offline

    HenkDeKipGaming

    WOW thank you!
    i love this community!
    you helped me out man!
    you got yourself a new follower :)

    is this not the way i should use this?
    Code:
    if (cmd.getName().equalsIgnoreCase("editsign")) {
                RegenAPI.getInstance().regenerateWorld(Bukkit.getWorld("lol"), "lol"); 
            }
    
    this is the console error:

    Code:
    [11:13:02] [Server thread/INFO]: HenkDeKipGaming issued server command: /editsign
    [11:13:02] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'editsign' in plugin KitPvP v1.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PlayerConnection.handleCommand(PlayerConnection.java:1139) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:974) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-870264a-0a645a2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
        at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:712) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554) [spigot.jar:git-Spigot-870264a-0a645a2]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IllegalArgumentException: Plugin already initialized!
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:122) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at gq.dempsey.api.RegenAPI.<init>(RegenAPI.java:26) ~[?:?]
        at gq.dempsey.api.RegenAPI.getInstance(RegenAPI.java:29) ~[?:?]
        at dk.Karsten.main.Main.onCommand(Main.java:159) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        ... 15 more
    Caused by: java.lang.IllegalStateException: Initial initialization
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:125) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at gq.dempsey.api.RegenAPI.<init>(RegenAPI.java:26) ~[?:?]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_45]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_45]
        at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_45]
        at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_45]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:291) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.reload(CraftServer.java:744) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.Bukkit.reload(Bukkit.java:534) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        ... 15 more
    z
    
    
    Ps: nah @timtower don't remove non-english xD i want to know what he said haha

    EDIT by Timtower: merged posts, and no
     
    Last edited by a moderator: Jul 11, 2015
  11. Moved to Bukkit Alternates.
     
  12. Offline

    HenkDeKipGaming

    okay? may i ask why? :)
     
  13. Spigot

    Spigot is an alternate of Bukkit, therefor it belongs in Bukkit Alternates.
     
  14. It does require a Back-up to be placed i
    The regenapi/backups folder
     
  15. Offline

    HenkDeKipGaming

    oh does it need to be a zip file?

    EDIT: still doesn't work...
    console error:

    Code:
    [19:21:13] [Server thread/INFO]: HenkDeKipGaming issued server command: /editsign
    [19:21:13] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'editsign' in plugin KitPvP v1.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PlayerConnection.handleCommand(PlayerConnection.java:1139) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:974) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-870264a-0a645a2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
        at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:712) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651) [spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554) [spigot.jar:git-Spigot-870264a-0a645a2]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IllegalArgumentException: Plugin already initialized!
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:122) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at gq.dempsey.api.RegenAPI.<init>(RegenAPI.java:26) ~[?:?]
        at gq.dempsey.api.RegenAPI.getInstance(RegenAPI.java:29) ~[?:?]
        at dk.Karsten.main.Main.onCommand(Main.java:159) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        ... 15 more
    Caused by: java.lang.IllegalStateException: Initial initialization
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:125) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at gq.dempsey.api.RegenAPI.<init>(RegenAPI.java:26) ~[?:?]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_45]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_45]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_45]
        at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_45]
        at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_45]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:291) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:199) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) ~[spigot.jar:git-Spigot-870264a-0a645a2]
        ... 1 more
    
    
     
  16. Wich version of Java are you using?
     
  17. Offline

    HenkDeKipGaming

    i think 7
     
  18. Offline

    Zombie_Striker

    Really?No one read the error log?

    you are using the same package name twice somewhere. Remember to change the package name for each plugin (they cant be the same).
     
    HenkDeKipGaming likes this.
  19. Offline

    HenkDeKipGaming

    So thats why the package names are always that large xD
    i'll try :)
     
Thread Status:
Not open for further replies.

Share This Page