File tree Expand file tree Collapse file tree
src/main/java/fr/sandro642/github/hook Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66}
77
88group = " fr.sandro642.github"
9- version = " 0.1.3.3 -SNAPSHOT" // Version de votre projet
9+ version = " 0.1.3.4 -SNAPSHOT" // Version de votre projet
1010
1111// Ajoutez cette tâche à votre build.gradle.kts
1212tasks.register(" printVersion" ) {
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ public Plugin setPluginVariable(Plugin plugin) {
5858 throw new IllegalArgumentException ("Plugin cannot be null." );
5959 }
6060
61- if (isMCProject ()) {
61+ // if (isMCProject()) {
6262 this .pluginSingleton = plugin ;
6363 return this .pluginSingleton ;
64- } else {
65- throw new IllegalStateException ("This method can only be called in a Minecraft project." );
66- }
64+ // } else {
65+ // throw new IllegalStateException("This method can only be called in a Minecraft project.");
66+ // }
6767 }
6868
6969 /**
@@ -74,9 +74,9 @@ public Plugin setPluginVariable(Plugin plugin) {
7474 * @throws IllegalStateException Si la méthode n'est pas appelée dans un projet Minecraft ou si le plugin n'est pas initialisé.
7575 */
7676 public String getPluginPath () {
77- if (!isMCProject ()) {
78- throw new IllegalStateException ("This method can only be called in a Minecraft project." );
79- }
77+ // if (!isMCProject()) {
78+ // throw new IllegalStateException("This method can only be called in a Minecraft project.");
79+ // }
8080
8181 if (pluginSingleton == null ) {
8282 throw new IllegalStateException ("Plugin variable is not set. Please call setPluginVariable first." );
You can’t perform that action at this time.
0 commit comments