Skip to content

Commit 45c4777

Browse files
committed
Bump version to 0.1.3.4-SNAPSHOT and comment out Minecraft project checks in MCSupport
1 parent 0e5dfd3 commit 45c4777

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "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
1212
tasks.register("printVersion") {

src/main/java/fr/sandro642/github/hook/MCSupport.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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.");

0 commit comments

Comments
 (0)