Create Legacy.java

Core of the plugin.