Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .idea/dictionaries/project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ⚙️CodeLib: super advanced Bukkit and Velocity API

![Version](https://img.shields.io/badge/Version-v3.3.1-green)![Update](https://img.shields.io/badge/Status-Stable-blue)[![Contribute](https://img.shields.io/badge/Contributions-Welcome-brightgreen)](CONTRIBUTING.md)[![Build](https://github.com/JWeinelt/codelib/actions/workflows/maven.yml/badge.svg)](https://github.com/JWeinelt/codelib/actions/workflows/maven.yml)
![Version](https://img.shields.io/badge/Version-v4.0.0--alpha1-green)![Update](https://img.shields.io/badge/Status-Stable-blue)[![Contribute](https://img.shields.io/badge/Contributions-Welcome-brightgreen)](CONTRIBUTING.md)[![Build](https://github.com/JWeinelt/codelib/actions/workflows/maven.yml/badge.svg)](https://github.com/JWeinelt/codelib/actions/workflows/maven.yml)

Welcome to the official repository of **CodeLib!**

Expand Down
18 changes: 13 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
<id>simonsators-repo</id>
<url>https://simonsator.de/repo/</url>
</repository>
<repository>
<id>unifiedvision-caesar</id>
<name>Unified Vision Repo</name>
<url>https://repo.codeblocksmc.de/caesar</url>
</repository>
</repositories>

<dependencies>
Expand All @@ -79,11 +84,6 @@
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.github.leonardosnt</groupId>
<artifactId>bungeechannelapi</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>fr.mrmicky</groupId>
<artifactId>fastboard</artifactId>
Expand All @@ -107,5 +107,13 @@
<version>1.6.2-RELEASE</version>
<scope>provided</scope>
</dependency>

<!-- Caesar -->
<dependency>
<groupId>de.julianweinelt.caesar</groupId>
<artifactId>CaesarMC</artifactId>
<version>1.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
33 changes: 0 additions & 33 deletions src/main/java/de/codeblocksmc/codelib/AdvancedTabCompleter.java

This file was deleted.

65 changes: 0 additions & 65 deletions src/main/java/de/codeblocksmc/codelib/ChatUtil.java

This file was deleted.

90 changes: 90 additions & 0 deletions src/main/java/de/codeblocksmc/codelib/CodeLib.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
package de.codeblocksmc.codelib;

import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.logging.Logger;

public class CodeLib extends JavaPlugin {
@Getter
private static final String version = "4.0.0";

@Getter
private static CodeLib instance;

@Getter
private Logger log;
private PluginManager pluginManager;

@Override
public void onLoad() {
instance = this;
}

@Override
public void onEnable() {
log.info("""
____ _ _ _ _ \s
/ ___|___ __| | ___| | (_) |__ \s
| | / _ \\ / _` |/ _ \\ | | | '_ \\\s
| |__| (_) | (_| | __/ |___| | |_) |
\\____\\___/ \\__,_|\\___|_____|_|_.__/\s
\
""");
log.info("Starting CodeLib v" + version);
checkServerVersion();
checkForCaesar();

}

@Override
public void onDisable() {

}

private void checkServerVersion() {
String version = Bukkit.getVersion().toLowerCase();

if (version.contains("paper")) {
log.info("Running on Paper v" + getServer().getMinecraftVersion());
} else if (version.contains("spigot")) {
log.info("Running on Spigot v" + getServer().getMinecraftVersion());
log.warning("WARNING: _____________________________________________");
log.warning(" | |");
log.warning(" | This server seems to be running SpigotMC! |");
log.warning(" | Some features may not work properly! |");
log.warning(" | Please use PAPER or PURPUR for the best |");
log.warning(" | Experience!!! |");
log.warning(" | ___________________________________________ |");
} else if (version.contains("purpur")) {
log.info("Running on Purpur v" + getServer().getMinecraftVersion());
} else if (version.contains("folia")) {
log.info("Running on Folia v" + getServer().getMinecraftVersion());
} else {
log.warning("""
_____ \s
/ / \\ \\ \s
/ /| |\\ \\ \s
/ / |_| \\ \\\s
/_/__(_)__\\_\\

""");
log.warning("WARNING: _____________________________________________");
log.warning(" | |");
log.warning(" | This server is running an unknown software! |");
log.warning(" | Expect broken features and bugs. |");
log.warning(" | Please use PAPER or PURPUR for the best |");
log.warning(" | Experience!!! |");
log.warning(" | ___________________________________________ |");
}
}

private void checkForCaesar() {
log.info("Checking availability of Caesar...");
if (pluginManager.getPlugin("CaesarConnector") != null) {
log.info("Caesar has been detected. Registering internal expansions...");
}
}
}
57 changes: 0 additions & 57 deletions src/main/java/de/codeblocksmc/codelib/EnchantmentWrapper.java

This file was deleted.

Loading