Skip to content

Commit d0ec2b4

Browse files
committed
Init
1 parent e078d93 commit d0ec2b4

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
### IntelliJ IDEA ###
2+
out/
3+
!**/src/main/**/out/
4+
!**/src/test/**/out/
5+
6+
### Eclipse ###
7+
.apt_generated
8+
.classpath
9+
.factorypath
10+
.project
11+
.settings
12+
.springBeans
13+
.sts4-cache
14+
bin/
15+
!**/src/main/**/bin/
16+
!**/src/test/**/bin/
17+
18+
### NetBeans ###
19+
/nbproject/private/
20+
/nbbuild/
21+
/dist/
22+
/nbdist/
23+
/.nb-gradle/
24+
25+
### VS Code ###
26+
.vscode/
27+
28+
### Mac OS ###
29+
.DS_Store

ExampleJavaPlugin.iml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
7+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
8+
</content>
9+
<orderEntry type="inheritedJdk" />
10+
<orderEntry type="sourceFolder" forTests="false" />
11+
<orderEntry type="module" module-name="FlashLauncher" scope="PROVIDED" />
12+
</component>
13+
</module>

res/fl-plugin.ini

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
id=example-java-plugin
2+
name=Example Java Plugin
3+
version=0.1
4+
author=Yourself
5+
description=Example Java Plugin Description
6+
shortDescription=Example Java Plugin Short Description
7+
main=ExampleJavaPlugin
8+
# dependencies=id1:-0.1|-0.2|*,id2:0.1|0.2|-*

res/icon.png

310 Bytes
Loading

src/ExampleJavaPlugin.java

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import Launcher.base.*;
2+
import Launcher.Plugin;
3+
import Launcher.PluginContext;
4+
5+
public class ExampleJavaPlugin extends Plugin {
6+
7+
public ExampleJavaPlugin(PluginContext context) {
8+
super(context);
9+
addAccount(new IAccount() {
10+
@Override
11+
public String getNickname() {
12+
return "ExampleAccount";
13+
}
14+
});
15+
addProfile(new IProfile() {
16+
@Override
17+
public String getName() {
18+
return "ExampleProfile";
19+
}
20+
});
21+
}
22+
}

0 commit comments

Comments
 (0)