promotional bannermobile promotional banner

Galaxy

Abandoned
Galaxy
<p>A picture of the main window</p>

A picture of the main window

<p>A picture of the give item window</p>

A picture of the give item window

Description

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

The Galaxy Team

profile avatar
  • 3
    Projects
  • 19.1K
    Downloads
Donate

More from _ForgeUser7446613View all

  • RealChop project image

    RealChop

    • 6.2K
    • Bukkit Plugins

    RealChop

    • 6.2K
    • September 6, 2014
    • Bukkit Plugins
  • ItemEnchanting project image

    ItemEnchanting

    • 11.0K
    • Bukkit Plugins

    ItemEnchanting allows the use of a configurable item for enchanting instead of experience.

    • 11.0K
    • April 3, 2014
    • Bukkit Plugins
    • +3
  • KPerms project image

    KPerms

    • 2.9K
    • Bukkit Plugins

    Simple permissions plugin

    • 2.9K
    • March 5, 2014
    • Bukkit Plugins
  • Underdark project image

    Underdark

    • 5.8K
    • Bukkit Plugins

    World generator for D&D Underdark-like terrain

    • 5.8K
    • August 28, 2013
    • Bukkit Plugins
    • +1
  • RealChop project image

    RealChop

    • 6.2K
    • Bukkit Plugins

    RealChop

    • 6.2K
    • September 6, 2014
    • Bukkit Plugins
  • ItemEnchanting project image

    ItemEnchanting

    • 11.0K
    • Bukkit Plugins

    ItemEnchanting allows the use of a configurable item for enchanting instead of experience.

    • 11.0K
    • April 3, 2014
    • Bukkit Plugins
    • +3
  • KPerms project image

    KPerms

    • 2.9K
    • Bukkit Plugins

    Simple permissions plugin

    • 2.9K
    • March 5, 2014
    • Bukkit Plugins
  • Underdark project image

    Underdark

    • 5.8K
    • Bukkit Plugins

    World generator for D&D Underdark-like terrain

    • 5.8K
    • August 28, 2013
    • Bukkit Plugins
    • +1