-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
696 additions
and
187 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
28 changes: 28 additions & 0 deletions
28
src/main/kotlin/me/quantiom/advancedvanish/AdvancedVanishPlugin.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,28 @@ | ||
package me.quantiom.advancedvanish; | ||
|
||
import me.quantiom.advancedvanish.util.DependencyManager; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
/** | ||
* This class is written in Java only because of the | ||
* dependency management system. After Kotlin is loaded, the | ||
* AdvancedVanish Kotlin class will take over. | ||
* | ||
* Basically, this class just acts as a "loader". | ||
*/ | ||
|
||
public class AdvancedVanishPlugin extends JavaPlugin { | ||
@Override | ||
public void onEnable() { | ||
// load dependencies | ||
DependencyManager dependencyManager = new DependencyManager(this); | ||
dependencyManager.loadDependencies(); | ||
|
||
AdvancedVanish.INSTANCE.onEnable(this); | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
AdvancedVanish.INSTANCE.onDisable(); | ||
} | ||
} |
Oops, something went wrong.