-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ELDEpendenci/develop
update for 2.0.1 eldependenci
- Loading branch information
Showing
21 changed files
with
217 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
*.iml | ||
**/*.iml | ||
/javadocs/ | ||
**/dependency-reduced-pom.xml | ||
**/dependency-reduced-pom.xml | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/ELDSQLInstallation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/SQLAddonRegistry.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/bukkit/SQLAddon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package chu77.eldependenci.sql.bukkit; | ||
|
||
|
||
import chu77.eldependenci.sql.ServiceCollectionBinder; | ||
import com.ericlam.mc.eld.BukkitManagerProvider; | ||
import com.ericlam.mc.eld.ELDBukkit; | ||
import com.ericlam.mc.eld.ELDBukkitPlugin; | ||
import com.ericlam.mc.eld.ServiceCollection; | ||
|
||
import java.io.File; | ||
|
||
@ELDBukkit( | ||
lifeCycle = SQLAddonLifecycle.class, | ||
registry = SQLAddonRegistry.class | ||
) | ||
public class SQLAddon extends ELDBukkitPlugin { | ||
|
||
@Override | ||
public void bindServices(ServiceCollection serviceCollection) { | ||
ServiceCollectionBinder.bind(serviceCollection, this); | ||
} | ||
|
||
|
||
@Override | ||
protected void manageProvider(BukkitManagerProvider bukkitManagerProvider) { | ||
File file = new File(getDataFolder(), "hibernate.properties"); | ||
if (!file.exists()) saveResource("hibernate.properties"); | ||
} | ||
} | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...7/eldependenci/sql/SQLAddonLifecycle.java → ...endenci/sql/bukkit/SQLAddonLifecycle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/bukkit/SQLAddonRegistry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package chu77.eldependenci.sql.bukkit; | ||
|
||
import com.ericlam.mc.eld.bukkit.CommandNode; | ||
import com.ericlam.mc.eld.bukkit.ComponentsRegistry; | ||
import com.ericlam.mc.eld.registration.CommandRegistry; | ||
import com.ericlam.mc.eld.registration.ListenerRegistry; | ||
import org.bukkit.event.Listener; | ||
|
||
public class SQLAddonRegistry implements ComponentsRegistry { | ||
|
||
|
||
@Override | ||
public void registerCommand(CommandRegistry<CommandNode> commandRegistry) { | ||
|
||
} | ||
|
||
@Override | ||
public void registerListeners(ListenerRegistry<Listener> listenerRegistry) { | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/bungee/SQLAddon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package chu77.eldependenci.sql.bungee; | ||
|
||
import chu77.eldependenci.sql.ServiceCollectionBinder; | ||
import com.ericlam.mc.eld.BungeeManageProvider; | ||
import com.ericlam.mc.eld.ELDBungee; | ||
import com.ericlam.mc.eld.ELDBungeePlugin; | ||
import com.ericlam.mc.eld.ServiceCollection; | ||
|
||
import java.io.File; | ||
|
||
@ELDBungee( | ||
registry = SQLAddonRegistry.class, | ||
lifeCycle = SQLAddonLifecycle.class | ||
) | ||
public class SQLAddon extends ELDBungeePlugin { | ||
|
||
@Override | ||
public void bindServices(ServiceCollection serviceCollection) { | ||
ServiceCollectionBinder.bind(serviceCollection, this); | ||
} | ||
|
||
@Override | ||
protected void manageProvider(BungeeManageProvider bungeeManageProvider) { | ||
File file = new File(getDataFolder(), "hibernate.properties"); | ||
if (!file.exists()) saveResource("hibernate.properties"); | ||
} | ||
|
||
|
||
} |
16 changes: 16 additions & 0 deletions
16
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/bungee/SQLAddonLifecycle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package chu77.eldependenci.sql.bungee; | ||
|
||
import com.ericlam.mc.eld.bungee.ELDLifeCycle; | ||
import net.md_5.bungee.api.plugin.Plugin; | ||
|
||
public class SQLAddonLifecycle implements ELDLifeCycle { | ||
@Override | ||
public void onEnable(Plugin plugin) { | ||
|
||
} | ||
|
||
@Override | ||
public void onDisable(Plugin plugin) { | ||
|
||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
eldependenci-sql-plugin/src/main/java/chu77/eldependenci/sql/bungee/SQLAddonRegistry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package chu77.eldependenci.sql.bungee; | ||
|
||
import com.ericlam.mc.eld.bungee.CommandNode; | ||
import com.ericlam.mc.eld.bungee.ComponentsRegistry; | ||
import com.ericlam.mc.eld.registration.CommandRegistry; | ||
import com.ericlam.mc.eld.registration.ListenerRegistry; | ||
import net.md_5.bungee.api.plugin.Listener; | ||
|
||
public class SQLAddonRegistry implements ComponentsRegistry { | ||
|
||
|
||
@Override | ||
public void registerCommand(CommandRegistry<CommandNode> commandRegistry) { | ||
|
||
} | ||
|
||
@Override | ||
public void registerListeners(ListenerRegistry<Listener> listenerRegistry) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.