Galaxy

This project is abandoned.

Whether this project is out of date or its author marked it as abandoned, this project is no longer maintained.

If you wish to take this project over, please report it and state your intentions.

Main window

Galaxy

This project uses pure Bukkit API, and as such, is unlikely to break on Bukkit implementations. However, as I am no longer maintaining my Bukkit plugins, if you want to take this up, shoot me an e-mail at lucariatias<at>gmail<dot>com

About Galaxy

Galaxy is a GUI for bukkit. After playing with Swings recently, I felt like creating my own for Bukkit.

Features

  • Adds a GUI to bukkit

Installation

Installs just like any other plugin, just drop into your plugins folder and you're ready to go!

Source

GitHub

Adding support in your own plugin

Add the following code into your plugin to add a "planet" to Galaxy.

if (Bukkit.getServer().getPluginManager().getPlugin("Galaxy") != null) {
    Galaxy galaxy = (Galaxy) Bukkit.getServer().getPlugin("Galaxy");
    galaxy.addPlanet(new Planet("Planet name", Color.[Colour name, e.g. RED, AQUA, etc], new [Insert the name of your frame here]));
}

Create a class for your plugin's frame. If you use Eclipse, I reccommend using WindowBuilder.
The class must extend JFrame.
Your plugin.yml must also include:

softdepend: [Galaxy]

or, if Galaxy is a requirement:

depend: [Galaxy]

Maven

Repository information:

<repository>
  <id>galaxy-repo</id>
  <url>https://raw.github.com/Lucariatias/Galaxy/mvn-repo</url>
</repository>

Dependency information:

<dependency>
  <groupId>io.github.lucariatias</groupId>
  <artifactId>galaxy</artifactId>
  <version>1.2.0</version>
</dependency>

Permissions/Commands

None!

Configuration

The config contains one option: theme. This sets which theme to use, from the themes directory, minus the .yml extension. In theme file, you can set numerous options to change the colours used by Galaxy. The default is "dark". Using a blank file will result in the default Nimbus colours being used. You can see which colours can be set here. Copy the formatting for the dark theme for each colour.

If you do not like the look of Nimbus, you can use the following command line options:

OptionResulting L&F
-Dswing.defaultlaf=javax.swing.plaf.metalMetal
-Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeelMotif
-Dswing.defaultlaf=javax.swing.plaf.synthSynth
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeelGTK
-Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeelWindows

It should probably be noted that Galaxy is only tested using Nimbus; other L&Fs are not guaranteed to work, an easier way to set L&F may be added in the future if requested.

Screenshots (Outdated; Galaxy 1.1)

Screenshot Screenshot

Bugs/feature requests

Comment or open a ticket/PR on Github

You must login to post a comment. Don't have an account? Register to get one!

  • 4 comments
  • Avatar of TigerWorks TigerWorks Jun 23, 2013 at 16:04 UTC - 0 likes

    This "plugin" is interesting! Worth a try!

    Busy on private projects - please do not contact me for custom things currently.

  • Avatar of Lucariatias Lucariatias May 18, 2013 at 10:51 UTC - 0 likes

    Please wait until Galaxy 1.1 is accepted for a fancy new interface.

  • Avatar of Lucariatias Lucariatias Apr 05, 2013 at 14:30 UTC - 0 likes

    @choltfo: Go

    That's actually not a bad idea, and not very hard to pull off. I'm surprised people are still interested in this project, I was thinking of doing a full rewrite and making it look pretty. I've been really busy with exams and such, and when I do get time to program it's usually for Gildorym now, but that would be a fun side project when I can. Thanks.

  • Avatar of choltfo choltfo Mar 23, 2013 at 01:24 UTC - 0 likes

    Hey there Lucariatias.

    I have a suggestion.

    As hard as this would be, I think it would be possible to make an addition to this where you can change YAML settings for plugins in a GUI form. I have considered making something like this, but lack the skills.

    Anyways, that would be awesome if you could pull it off. (Good luck.)

    TTYL,

    Choltfo

    BFAK:Choltfo,90670996,bc42a49389046b7f93f66cca76e32120a2003c2a12b94ae4b48b7ade4b1de3e5

  • 4 comments

Facts

Date created
Oct 01, 2012
Category
Last update
Dec 08, 2013
Development stage
Abandoned
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Downloads
1,272
Recent files

Authors