Inactive [ADMN/DEV] Pail v0.7.5 - The simplest and most extensible Bukkit GUI [1.0.1]

Discussion in 'Inactive/Unsupported Plugins' started by escape, Aug 7, 2011.

  1. Offline

    escape

    Pail
    The interface for and by the people
    [​IMG]
    What is it?
    Pail is a Java swing Graphical User Interface designed specifically for bukkit.
    Why is it different?
    • Pail is written as a plugin, meaning the same, simple drag-and-drop install server owners have come to know.
    • Pail uses pure Java and no external libraries, eliminating the need for any dependencies.
    • Pail is designed for bukkit servers, allowing more control than any vanilla server GUI.
    • Pail is extensible! Other plugins can hook into Pail to add their own interfaces, creating a single place for server admins to manage their server and players.
    • Pail is completely cross-platform.
    What can other plugins do?
    Pail opens up many opportunities for plugin developers to take advantage of. Plugins can be written solely to add functionality to Pail, or Pail support can be integrated easily into existing plugins. Just imagine being able to edit your permissions groups, view server performance, or manage your world's economy all from a single interface!

    ===============================
    For Developers:
    You can start developing for Pail now! The API currently consists of several methods for adding your components to the interface. To add a tab for your plugin to the Pail GUI, pass the title of your plugin's tab and the JPanel containing your interface to:​

    Code:
    PluginManager pm = this.getServer().getPluginManager();
    ((Pail)pm.getPlugin("Pail")).loadInterfaceComponent("Title", new JPanel());
    For more method descriptions, the JavaDoc is available here.

    Installation:
    Just drop Pail.jar into your plugins folder. That's it!

    Features:
    • Convenient access to player related functions
    • Interface for editing server settings
    • Command buffer to recall recent console commands by pressing up and down
    • Waypoint system for teleporting players
    • Searchable console (with regular expression support)
    • Much more!
    Commands:
    • Pail - Reopens the Pail GUI through the console
    Screenshots:
    Show Spoiler

    [​IMG]

    [​IMG]
    [​IMG]



    Todo:
    • Support for remote hosted servers (milestone 1.0)
    Credits:

    Pail has been brought to you by
    With contributions by
    Changelog:
    Version 0.7.5
    • Craftbukkit RB1240 support
    • Implemented simple gui api (docs coming soon)
    Version 0.7.4
    • Reimplemented CB1185 support
    Version 0.7.3 (Not promoted)
    • Fixed interface not loading bug
    Version 0.7.2
    • Minecraft 1.8.1 compatability (Craftbukkit RB 1185)
    • Added manual backup option
    • Added "say" option for console input
    • Possible fix for the gui not loading occasionally on server launch
    Show Spoiler

    Version 0.7.1
    • Fixed the 'apple.eawt' bug on startup
    • Added language API
    • Window can now be resized
    Version 0.7
    • Features:
      • 8 new menu options
      • Automatic translations for more than 30 languages via Google translate API
      • Console is now searchable via Find option (ctrl+F)
      • Text from the console can be copied via ctrl+C
      • Mac integration improvments
      • Players' faces are displayed next to their names
      • OP/Deop is context sensitive
      • Player names bolded in the console
      • Minor interface refinements
    • Fixes:
      • Fixed labels being cut off on some systems
      • Give now works properly with non-vanilla items
      • Fixed exceptions starting up when the interface takes too long to load
      • Enable is now thread-safe
    Version 0.6
    • Implemented skin switching in the settings
    • Fixed a bug when giving non-standard items
    • Fixed occasional NPE on startup
    • Maven integration
    Version 0.5.2
    • Added Waypoint API
    • UTF-8 support in the console
    • Interface now matches more closely with the native OS
    Version 0.5.1
    • Color support in the console
    • Fixed a bug when the craftbukkit version can't be determined
    • Autoscrolling now works properly in all situations
    Version 0.5
    • Server stop, reload, and save-all moved to Server menu
    • Added one-click auto update
    • Fixed console not scrolling down when text is added (thanks feildmaster)
    Version 0.4.1_1
    • Patched a bug in the teleport dialog
    Version 0.4.1
    • Fixed several bugs including:
      • Kill command not working
      • Command buffer skipping commands
      • Rare exceptions on disabling or reloading the plugin
    Version 0.4
    • Created waypoint system for teleporting players
    • Added command buffer to reuse recent console commands
    • Message, kick, and ban moved to player menu
    • Optimized the way settings are loaded
    • Several bugfixes and optimizations
    • Support for CB b1060
    Version 0.3.2
    • Bugfixes
    • Server IP is now configurable in settings
    Version 0.3.1
    • Several small bugfixes
    • About window shown by clicking pail version
    Version 0.3
    • Added settings section for hiding/showing tabs by other plugins
    • New API methods
    • Small optimizations and bugfixes
    Version 0.2
    • Added graphical item chooser
    • Added getInterfaceComponent to API
    • Refactoring and bugfixes
    Version 0.1
    • Preview release



    Download Pail 0.7.5 beta
    Latest dev build (unstable)
    [​IMG]

    EDIT: removed external links. Please use http://dev.bukkit.org/server-mods/pail/
     
  2. Offline

    escape

    Just released version 0.4:

    • Created waypoint system for teleporting players
    • Added command buffer to reuse recent console commands
    • Message, kick, and ban moved to player menu
    • Optimized the way settings are loaded
    • Several bugfixes and optimizations
    • CB b1060 support
     
  3. Offline

    feildmaster

    good job on the update.

    My power keeps going out.. ARG!!!
     
  4. Offline

    escape

    I feel your pain, bukkit.org is choking since the new RB came out lol
     
  5. Offline

    feildmaster

    Yeah, that's annoying as well.
     
  6. Offline

    escape

    Let me know if you find any bugs in 0.4, I'm a little delirious after my all-day coding marathon :p
     
  7. Offline

    feildmaster

    I'm a little delirious after my all day, power outage, trying to code and failing day.

    Not going to be getting any plugins out today...! :(
     
  8. Offline

    Justin17

    The kill command doesn't work xD
     
  9. Offline

    Varrkarus

    Getting an error after updating to Bukkit build 1060 and to Pail v0.4:

     
  10. Offline

    feildmaster

    To all players who get the above error:
    You are required to use RB 1060 in order to use version 0.4

    Escape made it so console tried to kill... Will be fixed in next version.

    EDIT: Sorry, I forgot it's always been like that. It's craftbukkit that has changed.
    Still, it will be fixed. =P

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  11. Offline

    escape

    Kill is working for me...
     
  12. Offline

    feildmaster

    Really? They got rid of the kill console command.. :confused:

    You're not using 1060 are you.
     
  13. Offline

    escape

    I am indeed using 1060.
    They didn't remove it, they just made it more controllable by plugins.
     
  14. Offline

    feildmaster

    kill gives "unknown console command"

    Either way, there's three ways to change this:
    Code:
    server.getPlayer(name).performCommand("kill");
    Code:
    server.getPlayer(name).sethealth(0);
    Code:
    Player player = server.getPlayer(name);
    player.damage(player.getHealth());
     
  15. Offline

    escape

    All fine options, one will make it into today's bugfix
     
  16. Offline

    feildmaster

    Command buffer should always start at the bottom when you press "up," while having a blank line/after hitting enter.

    allowing you to access the last command first. Also, when pressing down while in the buffer (and it's the last item), it should go to a blank line.

    The last one is a personal preference. The first, is a must. ;)
     
  17. Offline

    Sh00ck

    This is needed!

    Please...
    This looks so nice :(
     
  18. Offline

    feildmaster

    It's being worked on, from different angles even... (I'm looking into a secret project... That might just fail, so it stays secret)
     
  19. Offline

    escape

    Just committed the fix for this. (both parts)
     
  20. Offline

    feildmaster

    lets give it a test here... ^^

    EDIT: Changing from up/down is buggy escape. Makes you press twice to "change" the direction.

    I'd look at how to fix it, but I'm going to sleep.

    EDIT 2: Apparently, sending damage to the player is a bad way to kill them. It does not bypass armor. ;) (You get around 4 hearts of damage with diamond armor)
     
  21. Offline

    escape

    having to press down twice in some situations is unavoidable I think because it moves the cursor to the end before registering
     
  22. Offline

    Justin17

    Has anyone else noticed that pressing the reload button rarely works? It turns the plugins off and then freezes. Only some things save :/ Or was this fixed in v0.4?
     
  23. Offline

    feildmaster

    i'll play with it and see if I can improve it.

    Should be fixed.

    -------
    Pushing fix for the command buffer now escape. ;)

    EDIT: Forgot a fix. It shouldn't try to go up if the buffer is empty:
    Code:
    if(e.getKeyCode() == KeyEvent.VK_DOWN && index == -1||e.getKeyCode() == KeyEvent.VK_UP && cmdHistory.isEmpty()) return;
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  24. Offline

    0xDEADMEAT

    k that worked thanks
     
  25. Offline

    feildmaster

    I was wrong. I'll be looking into this later, unless @escape wants to try and figure out why:
    1- "title is taken," is thrown in reload <ServerReadyListener:23>
    2- NPE onDisable <Pail:89>
    3- NPE in reload <ServerReadyListener:24>

    (Have fun bug hunting...!)
     
  26. Offline

    escape

    Funny, I've never seen any of these on reload

    EDIT: Committed a possible fix for all three
     
  27. Offline

    feildmaster

    @escape : Yeah, these errors don't get triggered every time. It seems to be very random actually.

    Which means, the only way to get it fully tested is to release it in an update later.
     
  28. Offline

    escape

    I suspect it happens when the server is laggy and finishes loading before the GUI is loaded.
     
  29. Offline

    feildmaster

    instead of all the listeners you have, why not trigger a runnable task that opens the gui after it's loaded?
     
  30. Offline

    escape

    I've considered that, but I felt the tradeoff between a rather rare bug and not being able to see the loading console output would be too high.
     
  31. Offline

    feildmaster

    Mmm.... that's a good point, but...

    When you load the data while the gui hasn't even loaded, you can have the following happen:
    1- Previous data isn't available
    2- The tab you're on doesn't get loaded
    (Rather, I never even knew it had that feature till I read the code. That feature doesn't even work on my server.)
     

Share This Page