generated from ELDependenci/Template-For-ELDependenci-Addon
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #17 from ELDEpendenci/develop
- Loading branch information
Showing
53 changed files
with
1,594 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: build plugin | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build_plugin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '18' | ||
distribution: 'adopt' | ||
- name: Build with Maven | ||
run: mvn --batch-mode clean package | ||
- name: upload artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: plugin | ||
path: ./ELDependenci-MVC-plugin/target |
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
3 changes: 1 addition & 2 deletions
3
ELDependenci-MVC-plugin/src/main/java/com/ericlam/mc/eldgui/ELDGLifeCycle.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
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
16 changes: 9 additions & 7 deletions
16
ELDependenci-MVC-plugin/src/main/java/com/ericlam/mc/eldgui/ELDGRegistry.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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
package com.ericlam.mc.eldgui; | ||
|
||
import com.ericlam.mc.eld.registrations.CommandRegistry; | ||
import com.ericlam.mc.eld.registrations.ComponentsRegistry; | ||
import com.ericlam.mc.eld.registrations.ListenerRegistry; | ||
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 com.ericlam.mc.eldgui.command.ELDGCommand; | ||
import com.ericlam.mc.eldgui.command.ELDGDemoCommand; | ||
import org.bukkit.event.Listener; | ||
|
||
public final class ELDGRegistry implements ComponentsRegistry { | ||
|
||
|
||
@Override | ||
public void registerCommand(CommandRegistry commandRegistry) { | ||
public void registerCommand(CommandRegistry<CommandNode> commandRegistry) { | ||
commandRegistry.command(ELDGCommand.class, c -> { | ||
c.command(ELDGDemoCommand.class); | ||
}); | ||
} | ||
|
||
@Override | ||
public void registerListeners(ListenerRegistry listenerRegistry) { | ||
// no listeners | ||
} | ||
public void registerListeners(ListenerRegistry<Listener> listenerRegistry) { | ||
|
||
} | ||
} |
Oops, something went wrong.