-
-
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.
- Loading branch information
0 parents
commit 464f4b3
Showing
9 changed files
with
497 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 @@ | ||
name: Java Build with Maven | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: | | ||
target/*.jar | ||
!target/original-*.jar |
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,113 @@ | ||
# User-specific stuff | ||
.idea/ | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# Windows thumbnail cache files | ||
Thumbs.db | ||
Thumbs.db:encryptable | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
target/ | ||
|
||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
|
||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
.mvn/wrapper/maven-wrapper.jar | ||
.flattened-pom.xml | ||
|
||
# Common working directory | ||
run/ |
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,43 @@ | ||
# BlueMap New Map | ||
|
||
[![GitHub Total Downloads](https://img.shields.io/github/downloads/TechnicJelle/BlueMapNewMap/total?label=Downloads&color=success "Click here to download the plugin")](https://github.com/TechnicJelle/BlueMapNewMap/releases/latest) | ||
[![Servers using this plugin](https://img.shields.io/bstats/servers/23860?label=Servers)](https://bstats.org/plugin/bukkit/BlueMap%20New%20Map/23860) | ||
|
||
This is a tiny addon for BlueMap, with which you can more easily create new maps. | ||
|
||
It has just a single command: | ||
``` | ||
/bm-newmap <world> <map-name> | ||
``` | ||
|
||
This will create a new BlueMap map with the given name as both the name and the ID. | ||
The server will automatically detect the dimension and world path from the world name. | ||
|
||
This command can only be used by OP players, or players with the permission `bm-newmap`. | ||
|
||
This is a [Paper](https://papermc.io/) plugin. It supports Minecraft 1.13 and newer. | ||
|
||
## [Click here to download!](../../releases/latest) | ||
|
||
## Support | ||
|
||
To get support with this plugin, join the [BlueMap Discord server](https://bluecolo.red/map-discord) and ask your | ||
questions in [#3rd-party-support](https://discord.com/channels/665868367416131594/863844716047106068). You're welcome to | ||
ping me, @TechnicJelle. | ||
|
||
## Demo | ||
|
||
![](.github/readme_assets/dupe_map.gif) | ||
|
||
I create a map called `Overworld` of the world `world`.\ | ||
This is the second map of the same world, because this is a thing you can do.\ | ||
Just like in real life, many different maps exist of our one beautiful planet Earth. | ||
|
||
--- | ||
|
||
![](.github/readme_assets/new_maps.gif) | ||
|
||
Here, the server has three worlds: `world`, `world_nether`, and `world_the_end`, | ||
but only the (over)world has a map.\ | ||
So, I create a map called `nether` of the world `world_nether` | ||
and a map called `the_end` of the world `world_the_end`. |
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,124 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.technicjelle</groupId> | ||
<artifactId>BlueMapNewMap</artifactId> | ||
<version>1.0</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>BlueMapNewMap</name> | ||
<url>https://github.com/TechnicJelle/BlueMapNewMap</url> | ||
<description>A command to easily add new BlueMap Maps</description> | ||
|
||
<properties> | ||
<java.version>21</java.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<build> | ||
<defaultGoal>clean package</defaultGoal> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.13.0</version> | ||
<configuration> | ||
<release>${java.version}</release> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>3.6.0</version> | ||
<configuration> | ||
<relocations> | ||
<relocation> | ||
<pattern>com.technicjelle.UpdateChecker</pattern> | ||
<shadedPattern>${project.groupId}.${project.artifactId}.shadow.UpdateChecker</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.bstats</pattern> | ||
<shadedPattern>${project.groupId}.${project.artifactId}.shadow.bstats</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<createDependencyReducedPom>false</createDependencyReducedPom> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
<resources> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>true</filtering> | ||
<includes> | ||
<include>**/*.yml</include> | ||
</includes> | ||
</resource> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<filtering>false</filtering> | ||
</resource> | ||
</resources> | ||
</build> | ||
|
||
<repositories> | ||
<repository> | ||
<id>papermc-repo</id> | ||
<url>https://repo.papermc.io/repository/maven-public/</url> | ||
</repository> | ||
<repository> | ||
<id>sonatype</id> | ||
<url>https://oss.sonatype.org/content/groups/public/</url> | ||
</repository> | ||
<repository> | ||
<id>bluecolored-releases</id> | ||
<name>BlueColored Repository</name> | ||
<url>https://repo.bluecolored.de/releases</url> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.destroystokyo.paper</groupId> | ||
<artifactId>paper-api</artifactId> | ||
<version>1.13-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>de.bluecolored.bluemap</groupId> | ||
<artifactId>BlueMapAPI</artifactId> | ||
<version>2.7.2</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>de.bluecolored</groupId> | ||
<artifactId>bluemap-common</artifactId> | ||
<version>5.4</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.technicjelle</groupId> | ||
<artifactId>UpdateChecker</artifactId> | ||
<version>2.5.1</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.bstats</groupId> | ||
<artifactId>bstats-bukkit</artifactId> | ||
<version>3.1.0</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
30 changes: 30 additions & 0 deletions
30
src/main/java/com/technicjelle/BlueMapNewMap/BlueMapNewMap.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,30 @@ | ||
package com.technicjelle.BlueMapNewMap; | ||
|
||
import com.technicjelle.BlueMapNewMap.commands.BMNewMap; | ||
import com.technicjelle.UpdateChecker; | ||
import de.bluecolored.bluemap.api.BlueMapAPI; | ||
import org.bstats.bukkit.Metrics; | ||
import org.bukkit.command.PluginCommand; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
|
||
public final class BlueMapNewMap extends JavaPlugin { | ||
|
||
@Override | ||
public void onEnable() { | ||
new Metrics(this, 23860); | ||
|
||
UpdateChecker updateChecker = new UpdateChecker("TechnicJelle", "BlueMapNewMap", getDescription().getVersion()); | ||
updateChecker.checkAsync(); | ||
BlueMapAPI.onEnable(api -> updateChecker.logUpdateMessage(getLogger())); | ||
|
||
PluginCommand bmNewMap = getCommand("bm-newmap"); | ||
BMNewMap executor = new BMNewMap(this); | ||
if (bmNewMap != null) { | ||
bmNewMap.setExecutor(executor); | ||
bmNewMap.setTabCompleter(executor); | ||
} else { | ||
getLogger().warning("bm-newmap is null. This is not good"); | ||
} | ||
} | ||
} |
Oops, something went wrong.