-
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.
- Loading branch information
magiclu550
committed
Jan 26, 2020
1 parent
36cc51e
commit 892cf5b
Showing
11 changed files
with
303 additions
and
122 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
.idea/libraries/Maven__org_codehaus_groovy_groovy_all_2_3_11.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...Maven__org_hamcrest_hamcrest_core_1_3.xml → ...Maven__org_hamcrest_hamcrest_core_1_2.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
.idea/libraries/Maven__org_spockframework_spock_core_0_6_groovy_1_8.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,4 +1,64 @@ | ||
package cn.michel.plugin; | ||
|
||
public interface Plugin { | ||
|
||
|
||
import cn.michel.Server; | ||
import cn.michel.utils.config.Config; | ||
import cn.michel.utils.log.PluginLogger; | ||
|
||
import java.io.File; | ||
import java.io.InputStream; | ||
|
||
|
||
public interface Plugin { | ||
|
||
void onLoad(); | ||
|
||
|
||
void onEnable(); | ||
|
||
|
||
boolean isEnabled(); | ||
|
||
|
||
void onDisable(); | ||
|
||
|
||
boolean isDisabled(); | ||
|
||
|
||
File getDataFolder(); | ||
|
||
PluginDescription getDescription(); | ||
|
||
InputStream getResource(String filename); | ||
|
||
boolean saveResource(String filename); | ||
|
||
boolean saveResource(String filename, boolean replace); | ||
|
||
boolean saveResource(String filename, String outputName, boolean replace); | ||
|
||
|
||
Config getConfig(); | ||
|
||
|
||
void saveConfig(); | ||
|
||
|
||
void saveDefaultConfig(); | ||
|
||
|
||
void reloadConfig(); | ||
|
||
|
||
Server getServer(); | ||
|
||
String getName(); | ||
|
||
|
||
PluginLogger getLogger(); | ||
|
||
PluginLoader getPluginLoader(); | ||
|
||
} |
Oops, something went wrong.