[INACTIVE][WEB/ADMN] milkAdmin - Free Web Administrator Tool v0.0.55- Backups, Starting and Stopping

Discussion in 'Inactive/Unsupported Plugins' started by Snowl, Feb 12, 2011.

  1. Offline

    Snowl

    [​IMG]MilkAdmin [ALPHA]



    Liked MilkAdmin? Well, good news!

    It's out again: http://forums.bukkit.org/threads/ad...0-05-14-full-webserver-in-a-plugin-766.17249/



    A free, open-source admin tool thats compatible with every OS.
    Designed to be simple, easy and functional.
    How to use? (open)

    1. Download milkAdmin.zip
    2. Extract into the directory craftBukkit is in.
    3. Go into your web browser and go to http://<server ip address here>:64712
    4. Login (username is admin password is admin)
    5. Create a new administrative user (username CANNOT be admin)
    Done!


    Restarting/Starting/Stopping/Restoring not working?!? (open)
    This requires the wrapper made by drdanick: http://forums.bukkit.org/threads/ad...view-full-remote-console-access-r10-a6-2.674/
    Use this server wrapper to launch your server and restarting will work.

    Editing strings (open)
    Go into milkAdmin/strings.txt and edit the strings in there.
    Editing strings (open)

    Current strings available to edit:
    • banned
    • giveitem
    • takeawayitem
    • port





    Features currently implemented:
    • SHA-512 authentication
    • Restarting/Reloading/Killing server
    • Users online
    • Free/Total Memory
    • Server Version
    • Broadcasting messages.
    • Chat (type in the console, dont use /say)
    • Performing Server Commands (start commands with a /)
    • Backups
    • Starting and Stopping Server
    Features in next version:

    • Finish off web interface (players)
    Features coded but not in interface yet (should be in in a version or two):

    • Kicking User
    • Banning User/IP
    • Giving/Removing item from player
    • Getting and setting health of player
    • Changing display name of players
    • Teleport players to x, y, z/another player
    • Get IP: Port of player
    • Saving server
    • Editing/viewing inventory
    Features planned:

    • Fixing up web interface
    • Adding in all the features
    • Plugins
    • Mobile Theme
    • Fixing of properties
    • milkAdmin Account Management
    • View of logs
    • Dynamic Signatures
    • Scheduling
    • multiWorld Backups
    Screenshots:


    [​IMG]
    [​IMG]
    [​IMG]


    Why use MilkAdmin?

    There are a lot of alternatives out there that seem to have more features.
    Well for a start, MilkAdmin is very easy to install and requires almost no technical knowledge whatsoever to install and run. Not to mention that the server uses only java so configuring a complex webserver is not required as most gamers that play minecraft are gamers and not professional server administrators.

    A list of reasons why to use MilkAdmin;

    -Very easy to install and use
    -Does not require technical server knowledge
    -Does not use an external webserver
    -Does not require configuration
    -It's free and open source, I like to be forked on github :p
    -It uses a relatively small amount of memory
    -It's cross platform (will work like a charm on Linux, OS X and Windows)

    And I hope you enjoy my program we put time and effort into it, we appreciate your donations it encourages us and helps every step of the way!

    Thanks to
    • drdanick
    • cayde Dixon
    • d3x
    • RandomSRVApps (for testing and more ;) )
    Changelog:

    v0.0.55Alpha
    • Fixed major bug.
    v0.0.5Alpha

    • Backups /Restoring
    • Fixes
    • Starting and stopping server
    • Edits to the Web Server
    • More
    v0.0.4Alpha

    • Added console in server
    v0.0.3Alpha

    • Fixed Firefox
    • Added save-all option
    • Fixed restarting server
    • Fixed RTK errors
    • Added focusing Broadcast Message clears the box
    v0.0.2Alpha

    • Added port changing
    • Added customizable strings
    v0.0.1Alpha

    • Initial commit. Nothing really special here.
    Source code available at https://github.com/Snowl/milkAdmin



    Want to support me? Like this plugin? [​IMG]
     
  2. Offline

    Snowl

    Source isn't the latest.
    Uploaded it. I use Eclipse to compile. (also contains main milkAdmin)
     

    Attached Files:

  3. Offline

    Vimm

    I can't get the the Restart/Start/Stop features to work. The only thing that happens when I execute it from milkadmin page it echoes "From wrapper: RTK_Timeout" in the server terminal window. Is this something you can help me with our should I take it to the RemoteToolkit thread?

    Thanks.
     
  4. Offline

    drdanick

    Make sure you've correctly set the Toolkit password and username you are using in properties.txt
    --- merged: Mar 2, 2011 6:11 PM ---
    The milkAdminStart source you included there appears to be old and does not include the thread closing fixes I made.
     
  5. Hey there. I'm pretty new to allot of this. But as the version I downloaded from the first post didn't load up on my version of Bukkit properly (got errors on start-up). So i took a swing at compiling it myself, I grabbed Eclipse and tried to add the files from your source to a project. But i kept getting the error:
    Project 'milkAdmin' is missing required library: 'C:\Users\David\Bukkit\Minecraft_RKit.jar'
    I'm not sure how to fix this myself, If i could i wouldn't bother anyone hense my first post.. But i wondered if anyone could tell me what i'm doing wrong. Or even upload a pre-compiled version I could grab to use right away.
    I'd also like to know where i'm going wrong, I like to learn from my mistake so i don't have to post every single time i get an error.. heh.
    This plugin looks great. Thanks.
     
  6. Offline

    Vimm

    Thanks, I worked it out. My properties.txt was messed up for some reason and didn't even include the RTKuser/pass lines. Thanks again and thanks for a brilliant plugin.
     
  7. Offline

    drdanick

    Sounds like you're trying to compile the Toolkit module. You will need to include the latest Toolkit jar on your classpath. FYI, the toolkit module source he uploaded is outdated and does not work. I've noticed that he has packaged the latest source in all of his jars, you'd be best to extract the source from there.
     
  8. Offline

    alext97

    Help me !
    I have suse linux and have Extract the milkadmin to the craftbukkit folder.
    but then I go to the http//(myip):64712 it's dont work!
    I dont need to open a port in firewall you say...

    sorry for bad english:(
     
  9. Offline

    Lance

    I tried this plugin with CB build 490, and it can't load milkAdmin, because of an InvalidPluginException error.
     
  10. where do i place the milkadmin folder? in the world folder or plugin folder?
     
  11. Offline

    Quimoniz

    You need to start the Minecraft server first for milkAdmin to start. It then will be reachable on that port.
    With suse linux you should have a default firewall blocking every port not explicitly opened, go into the YaST control panel to open the specified port for the firewall.
     
  12. Offline

    Mavric Skylar

    Yes I am now getting the same error, please fix this because it's the only way I can remotely admin my server. Thanks for the great pluggin, now we just have to get it working with the Latest Craftbukkit.

    Also just a sample of the error I received when trying to run my server with milkadmin enabled

    Code:
    18:32:59 [SEVERE] Could not load plugins/milkAdmin.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.Snowl.org.milkBukkit.milkBukkit.<init>()
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getConstructor(Class.java:1657)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
        ... 8 more
    
     
  13. Offline

    TheTallest

    Getting the same on 490 have disabled until update !!!!! Yay for this plugin +1000 for you
     
  14. Offline

    Quimoniz

    WOOOO SHARK HAT!
    ________________________
    Also, the error everyone is receiving is related to the way bukkit fetches every plugin's initializer, in particular the constructors.
    When I decompiled the .class of the milkAdmin Plugin I noticed that the constructor indeed exists, so I would assume it's a stupid Bug or maybe milkAdmin was compiled with an outdated version of bukkit. If the first would be the case, I would recommend David Diaz, to add a dummy constructor, like:
    Code:
     public milkBukkit() {
      }
    to milkBukkit.java

    Also, I would recommend David to follow the lower case /upper case coding recommendations by java, stating that class names should always start with an uppercase letter, and variable names should always start with a lower case letter(for a violation of these guidelines see: int WebServer.WebServerSocket).

    Also.. (open)
    [​IMG]
    (Yes you can play around with the url, try http://mc.resonanzkaska.de/item3r=2s=6 for a start)
     
  15. Offline

    xibit1987

    Mate, first THX for an awesome plugin! no doubt use it alot ! BUT, pleas update your plugin to work with craftbukkit 493 since it's the only plugin right now tha dosen't work: getting this error:

    Code:
    21:27:29 [SEVERE] Could not load plugins\milkAdmin.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.Snowl.org.milkBukkit.milkBukkit.
    <init>()
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
            ... 8 more
     
  16. Offline

    Phantom Index

    Yeah update. It's a beautiful plguin
     
  17. Offline

    78tacos

    I can't believe somebody actually made a plugin this nice just for minecraft. It makes managing my server easier for me and the other admins. Thanks for making it, and making it free.

    Also, I had no trouble getting this work on cb 493, thanks to the info from Quimoniz.
     
  18. Offline

    xibit1987

    can someone pleas upload the version with the dummy part, since I don't know how to do it :)
     
  19. Offline

    Quimoniz

    [​IMG]
    I just recompiled it with Craftbukkit 493, and did not change anything, but I was able to start it on my local server, download it from here (direct download).

    [​IMG] PLEASE [​IMG]
    Tell me problems you encounter (including the specific error message, please.
    You may use pastebin.org, codepad.org or just use the code tag)


    Edit
    Turned out that simply rewriting the Constructor with package names(like org.bukkit.plugin.java.JavaPlugin instead of simply JavaPlugin) worked.

    edit again: I hate the coding style of this plugin, and I would like to add some more features to it .. *waves to David Diaz*
     
  20. Offline

    oschaus

    I tried this file with 493 and got the same error as before, unfortunately, about the invalidpluginexception :/
     
  21. Offline

    Quimoniz

    fixed it :D (at least I think it) TRY IT!
    http://mc.resonanzkaska.de/milkAdmin.jar
     
  22. Offline

    oschaus

  23. Offline

    xibit1987

    A+ from here also, working like a charm :)
     
  24. Offline

    TheTallest

    It does seem to be working now a few issues I see not sure if this from the regular code but it does not restart the server it just brings it to a dead stop and then nothing. When you go to the users page you cannot click on any of the users.
     
  25. Offline

    drdanick

    Are you using the RemoteToolkit? It is required for restarts as well as stops/starts.


    On a similar note, I've also noticed that the restart button is actually just outright killing the wrapper and expecting the wrapper to restart the process, rather than telling the wrapper to gracefully stop the server before restarting it. This can easily result in inventory loss, map change loss, etc.

    I've made a little modification to one line in milkAdmin/html/index.html which fixes the problem, download attached to this post. (rename it to index.html. Doesn't seem to be letting me upload anything with a .html extension)

    Alternatively, you can make the change yourself. Just open milkAdmin/html/index.html in some text editor and replace this line:
    Code:
    <a href="/server/force_stop" target="i" style="text-decoration: none;">
    
    with this:
    Code:
    <a href="/server/restart_server" target="i" style="text-decoration: none;">
    
     

    Attached Files:

  26. Offline

    68x

    I'm just wondering how I cna add ban/unban commands to milkAdmin. I figured out that it opens an url like /server/command_here
     
  27. Offline

    drdanick

    The command to do so is not yet supported.
     
  28. Offline

    TheTallest

    I guess I missed the remote tool kit option. I saw the folder when I unzipped Milkadmin but was not sure what it was. I thought it was part of the over all package. I will check that. Thank you for catching the restart issue.
    --- merged: Mar 6, 2011 8:22 PM ---
    Okay so I made the change to the line you suggested the only thing that shows up on the server console window is RTKtimeout and then it goes to the next line. It does not seem to be restarting the server as such. Also I am not sure if you picked up on but clicking on players and then clicking on player name does nothing. YOU ROCK for this Plugin.

    EDIT: Umm DOH on me I Just read your Todo's and ummm DUH I no read very well. Sorry
     
  29. Offline

    68x

    Thank you very much :).
     
  30. But I am a professional server administrator[​IMG] Seriously, looks good though, I will give it a try when the features that I need in the GUI are there.
     
  31. Offline

    blaize9

    Can you add an auto backup? also i can get my backups to show anywhere im running on linux
     

Share This Page