mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-06-29 07:54:43 +02:00
Basic Bukkit plugin setup
This commit is contained in:
parent
56bc0e2ff9
commit
81aef6ad19
17
BlueMapBukkit/build.gradle
Normal file
17
BlueMapBukkit/build.gradle
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
|
||||||
|
|
||||||
|
// As of Gradle 5.1, you can limit this to only those
|
||||||
|
// dependencies you expect from it
|
||||||
|
content {
|
||||||
|
includeGroup 'org.bukkit'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
shadow "org.bukkit:bukkit:1.14.4-R0.1-SNAPSHOT"
|
||||||
|
//compile group: 'org.bstats', name: 'bstats-sponge-lite', version: '1.5'
|
||||||
|
compile project(':BlueMapCore')
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
package de.bluecolored.bluemap.bukkit;
|
||||||
|
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
public class BukkitPlugin extends JavaPlugin {
|
||||||
|
|
||||||
|
private static BukkitPlugin instance;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEnable() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDisable() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static BukkitPlugin getInstance() {
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,70 @@
|
||||||
|
/*
|
||||||
|
* This file is part of BlueMapSponge, licensed under the MIT License (MIT).
|
||||||
|
*
|
||||||
|
* Copyright (c) Blue (Lukas Rieger) <https://bluecolored.de>
|
||||||
|
* Copyright (c) contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
package de.bluecolored.bluemap.bukkit;
|
||||||
|
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import de.bluecolored.bluemap.core.logger.AbstractLogger;
|
||||||
|
|
||||||
|
public class JavaLogger extends AbstractLogger {
|
||||||
|
|
||||||
|
private Logger out;
|
||||||
|
|
||||||
|
public JavaLogger(Logger out) {
|
||||||
|
this.out = out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void logError(String message, Throwable throwable) {
|
||||||
|
out.log(Level.SEVERE, message, throwable);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void logWarning(String message) {
|
||||||
|
out.log(Level.WARNING, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void logInfo(String message) {
|
||||||
|
out.log(Level.INFO, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void logDebug(String message) {
|
||||||
|
if (out.isLoggable(Level.FINE)) out.log(Level.FINE, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void noFloodDebug(String message) {
|
||||||
|
if (out.isLoggable(Level.FINE)) super.noFloodDebug(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void noFloodDebug(String key, String message) {
|
||||||
|
if (out.isLoggable(Level.FINE)) super.noFloodDebug(key, message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
7
BlueMapBukkit/src/main/resources/plugin.yml
Normal file
7
BlueMapBukkit/src/main/resources/plugin.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
name: BlueMap
|
||||||
|
main: de.bluecolored.bluemap.bukkit.BukkitPlugin
|
||||||
|
version: 0.1.0
|
||||||
|
author: Blue (TBlueF / Lukas Rieger)
|
||||||
|
authors: [Blue (TBlueF / Lukas Rieger)]
|
||||||
|
website: "https://github.com/BlueMap-Minecraft"
|
||||||
|
commands:
|
|
@ -2,7 +2,9 @@ rootProject.name = 'BlueMap'
|
||||||
include ':BlueMapCore'
|
include ':BlueMapCore'
|
||||||
include ':BlueMapCLI'
|
include ':BlueMapCLI'
|
||||||
include ':BlueMapSponge'
|
include ':BlueMapSponge'
|
||||||
|
include ':BlueMapBukkit'
|
||||||
|
|
||||||
project(':BlueMapCore').projectDir = "$rootDir/BlueMapCore" as File
|
project(':BlueMapCore').projectDir = "$rootDir/BlueMapCore" as File
|
||||||
project(':BlueMapCLI').projectDir = "$rootDir/BlueMapCLI" as File
|
project(':BlueMapCLI').projectDir = "$rootDir/BlueMapCLI" as File
|
||||||
project(':BlueMapSponge').projectDir = "$rootDir/BlueMapSponge" as File
|
project(':BlueMapSponge').projectDir = "$rootDir/BlueMapSponge" as File
|
||||||
|
project(':BlueMapBukkit').projectDir = "$rootDir/BlueMapBukkit" as File
|
|
@ -4,7 +4,7 @@
|
||||||
"name": "BlueMap",
|
"name": "BlueMap",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "A 3d-map of your Minecraft worlds view-able in your browser using three.js (WebGL)",
|
"description": "A 3d-map of your Minecraft worlds view-able in your browser using three.js (WebGL)",
|
||||||
"url": "https://ore.spongepowered.org/Blue/BlueMap",
|
"url": "https://github.com/BlueMap-Minecraft",
|
||||||
"authorList": [
|
"authorList": [
|
||||||
"Blue (TBlueF, Lukas Rieger)"
|
"Blue (TBlueF, Lukas Rieger)"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user