-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: CasieBarie <[email protected]>
- Loading branch information
1 parent
5f3f042
commit 48f1920
Showing
6 changed files
with
165 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
# KeesLib | ||
<p><a href="https://github.com/CasieBarieDev/KeesLib/releases/latest"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/CasieBarieDev/KeesLib?label=Release&logo=github"></a> <img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/CasieBarieDev/KeesLib?color=red&label=Size&logo=Github"> <a href="https://github.com/CasieBarieDev/KeesLib/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/CasieBarieDev/KeesLib?label=License&logo=Github"></a> <a href="https://jitpack.io/#dev.casiebarie/keeslib"><img alt="JitPack" src="https://img.shields.io/jitpack/version/dev.casiebarie/keeslib?color=lime&label=JitPack&logo=azurepipelines"></a></p> | ||
<p><a href="https://www.casiebarie.dev/Plugins/KeesLib"><img alt="Website" src="https://img.shields.io/static/v1?label=Website&message=KeesLib&color=yellow&logo=dev.to"></a> <a href="https://github.com/CasieBarieDev/KeesLib/releases/latest"><img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/CasieBarieDev/KeesLib?label=Release&logo=github"></a> <img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/CasieBarieDev/KeesLib?color=red&label=Size&logo=Github"> <a href="https://github.com/CasieBarieDev/KeesLib/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/CasieBarieDev/KeesLib?label=License&logo=Github"></a> <a href="https://jitpack.io/#dev.casiebarie/keeslib"><img alt="JitPack" src="https://img.shields.io/jitpack/version/dev.casiebarie/keeslib?color=lime&label=JitPack&logo=azurepipelines"></a></p> | ||
<br/> | ||
|
||
A simple library for my plugins! | ||
More info soon on my [website](https://www.casiebarie.dev/404). | ||
|
||
<br/> | ||
|
||
## Patch Notes: | ||
### [v1.1.0](https://github.com/CasieBarieDev/KeesLib/releases/tag/1.0.3) | ||
- **Added** | A new builder for the UpdateChecker. | ||
- **Added** | `createLogger()` - Changes the prefix of the plugin logger to the value 'Prefix:' in the plugin.yml with ChatColor support. | ||
- **Changed** | `isLegacy(Double lowestVerion, Double highestVersion)` - This will no longer use the BukkitVersions enum and no longer shuts down the plugin when the version is too high. | ||
- **Removed** | `BukkitVersions` enum. | ||
|
||
### [v1.0.2](https://github.com/CasieBarieDev/KeesLib/releases/tag/1.0.2) | ||
- **Added** | Javadocs | ||
|
||
### [v1.0.1](https://github.com/CasieBarieDev/KeesLib/releases/tag/1.0.1) | ||
- **Fix** | Build on Jitpack | ||
|
||
### [v1.0.0](https://github.com/CasieBarieDev/KeesLib/releases/tag/1.0.0) _(Initial release)_ | ||
- **Added** | `hasPlaceholerAPI()` | Returns true if [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245) is installed. | ||
- **Added** | `isLegacy(BukkitVersions lowestVersion, BukkitVersions highestVersion)` | Checks if the server is legacy and disables the plugin if the version is not supported. | ||
- **Added** | `hasVault(Boolean economy, Boolean permissions, Boolean chat)` | Checks if [Vault](https://www.spigotmc.org/resources/vault.34315/) and the servicemanagers are enabled on the server. | ||
- **Added** | `updateChecker(Integer recourceID, ChatColor borderColor, ChatColor textColor, String character, String permission, Double frequencyHours)` | A fancy update checker! | ||
- **Added** | `hex(String msg)` | Translates all the #HEX codes in the message to ChatColor codes. |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dev.casiebarie.keeslib; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
import java.util.logging.Level; | ||
import java.util.logging.LogRecord; | ||
import java.util.logging.Logger; | ||
|
||
public class Log extends Logger { | ||
final String prefix; | ||
public Log(JavaPlugin plugin) { | ||
super(plugin.getName(), null); | ||
prefix = plugin.getDescription().getPrefix(); | ||
setParent(plugin.getServer().getLogger()); | ||
setLevel(Level.ALL); | ||
} | ||
|
||
@Override | ||
public void log(LogRecord record) { | ||
if(!record.getLevel().equals(Level.INFO)) {super.log(record); return;} | ||
Bukkit.getConsoleSender().sendMessage(prefix + "§r " + record.getMessage()); | ||
} | ||
} |
Oops, something went wrong.