-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
b1dfa47
commit 5e24032
Showing
3 changed files
with
30 additions
and
2 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
14 changes: 14 additions & 0 deletions
14
src/main/java/dev/sefiraat/cultivation/implementation/utils/Utils.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,14 @@ | ||
package dev.sefiraat.cultivation.implementation.utils; | ||
|
||
import org.bukkit.Bukkit; | ||
|
||
public class Utils { | ||
|
||
private Utils() { | ||
throw new IllegalStateException("Utility class"); | ||
} | ||
|
||
public static int getMajorServerVersion() { | ||
return Integer.parseInt(Bukkit.getServer().getBukkitVersion().split("\\.")[1]); | ||
} | ||
} |