Skip to content

Commit

Permalink
Update Links and Names
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 committed Dec 1, 2022
1 parent c37eb2b commit 421513a
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 46 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Stacker](https://github.com/SanCraftDev/Stacker)
# [Stacker](https://github.com/ZoeyVid/Stacker)

A plugin to stack player above player! <br/>
This plugin works with the Minecraft versions 1.11-1.19
Expand All @@ -15,18 +15,18 @@ This plugin works with the Minecraft versions 1.11-1.19

## Translate the Plugin

[Read more here](https://github.com/SanCraftDev/Stacker/tree/main/languages/README.md)
[Read more here](https://github.com/ZoeyVid/Stacker/tree/main/languages/README.md)

## The project is also on:

[GitHub](https://github.com/SanCraftDev/Stacker) <br/>
[GitHub](https://github.com/ZoeyVid/Stacker) <br/>
[SpigotMC](https://www.spigotmc.org/resources/stacker.94586) <br/>
[Curseforge](https://www.curseforge.com/minecraft/bukkit-plugins/playerstackerplugin) <br/>
[(dev.bukkit.org)](https://dev.bukkit.org/projects/playerstackerplugin) <br/>
[Jenkins (Ci)](https://ci.sancraft.dev/job/Stacker) <br>
[Jenkins (Ci) - Dev-Version](https://ci.sancraft.dev/job/Stacker-Dev) <br>
[Instant download](https://ci.sancraft.dev/job/Stacker/lastSuccessfulBuild/artifact/target/stacker.jar) <br>
[Instant download Dev-Version](https://ci.sancraft.dev/job/Stacker-Dev/lastSuccessfulBuild/artifact/target/stacker.jar) <br>
[Jenkins (Ci)](https://ci.zvcdn.de/job/Stacker) <br>
[Jenkins (Ci) - Dev-Version](https://ci.zvcdn.de/job/Stacker-Dev) <br>
[Instant download](https://ci.zvcdn.de/job/Stacker/lastSuccessfulBuild/artifact/target/stacker.jar) <br>
[Instant download Dev-Version](https://ci.zvcdn.de/job/Stacker-Dev/lastSuccessfulBuild/artifact/target/stacker.jar) <br>

# Security Policy

Expand All @@ -46,10 +46,10 @@ Bugs and feature ideas can be submitted in the issues!

## Contact us

[Discord](https://sancraft.de/dc) (Main Language: German) (DavidCraft#2905) <br/>
[Twitter](https://twitter.com/SanCraftDev) <br/>
[GitHub](https://github.com/SanCraftDev) <br/>
[Mastodon](https://social.zoeyvid.de/@ZoeyVid) <br/>
[Twitter](https://twitter.com/ZoeyVid) <br/>
[GitHub](https://github.com/ZoeyVid) <br/>

## License

Mozilla Public License 2.0 Copyright © 2022 SanCraft
Mozilla Public License 2.0 Copyright © 2022 ZoeyVid
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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>dev.sancraft</groupId>
<groupId>de.zoeyvid</groupId>
<artifactId>stacker</artifactId>
<version>0.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package dev.sancraft.stacker.Listener;
package de.zoeyvid.stacker.Listener;

import dev.sancraft.stacker.loadConfig;
import dev.sancraft.stacker.loadLanguage;
import dev.sancraft.stacker.main;
import de.zoeyvid.stacker.loadConfig;
import de.zoeyvid.stacker.loadLanguage;
import de.zoeyvid.stacker.main;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.sancraft.stacker.Listener;
package de.zoeyvid.stacker.Listener;

import dev.sancraft.stacker.loadConfig;
import dev.sancraft.stacker.main;
import de.zoeyvid.stacker.loadConfig;
import de.zoeyvid.stacker.main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.sancraft.stacker.Listener;
package de.zoeyvid.stacker.Listener;

import dev.sancraft.stacker.loadConfig;
import dev.sancraft.stacker.main;
import de.zoeyvid.stacker.loadConfig;
import de.zoeyvid.stacker.main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.sancraft.stacker.Listener;
package de.zoeyvid.stacker.Listener;

import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.sancraft.stacker;
package de.zoeyvid.stacker;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.sancraft.stacker;
package de.zoeyvid.stacker;

import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.sancraft.stacker;
package de.zoeyvid.stacker;

import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dev.sancraft.stacker;
package de.zoeyvid.stacker;

import dev.sancraft.stacker.Listener.EntityInteractListener;
import dev.sancraft.stacker.Listener.JoinListener;
import dev.sancraft.stacker.Listener.QuitListener;
import dev.sancraft.stacker.Listener.ShiftListener;
import de.zoeyvid.stacker.Listener.EntityInteractListener;
import de.zoeyvid.stacker.Listener.JoinListener;
import de.zoeyvid.stacker.Listener.QuitListener;
import de.zoeyvid.stacker.Listener.ShiftListener;
import org.apache.commons.io.FileUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
Expand Down Expand Up @@ -86,13 +86,13 @@ private void loadLanguages() {
Bukkit.getConsoleSender().sendMessage(main.getPrefix() + ChatColor.WHITE + "Language file loaded! (" + loadConfig.language() + ")");
} else {
try {
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/SanCraftDev/Stacker/" + loadConfig.updateChannel() + "/languages/" + loadConfig.language() + ".yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/ZoeyVid/Stacker/" + loadConfig.updateChannel() + "/languages/" + loadConfig.language() + ".yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
} catch (Exception e) {
try {
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/SanCraftDev/Stacker/" + loadConfig.updateChannel() + "/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/ZoeyVid/Stacker/" + loadConfig.updateChannel() + "/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
} catch (Exception e1) {
try {
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/SanCraftDev/Stacker/Stable/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/ZoeyVid/Stacker/Stable/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
} catch (Exception e2) {
Bukkit.getConsoleSender().sendMessage(main.getPrefix() + ChatColor.RED + "Error while downloading language file!");
Bukkit.getServer().getPluginManager().disablePlugin(this);
Expand All @@ -109,11 +109,11 @@ private void updatePlugin() {
if (loadConfig.updateChannel().equalsIgnoreCase("dev")) {
File oldFile = new File("plugins/stacker.jar");
if(oldFile.exists()) FileUtils.delete(oldFile);
FileUtils.copyURLToFile(new URL("https://ci.sancraft.dev/job/Stacker-Dev/lastSuccessfulBuild/artifact/target/stacker.jar"), new File("plugins/stacker.jar"));
FileUtils.copyURLToFile(new URL("https://ci.zvcdn.de/job/Stacker-Dev/lastSuccessfulBuild/artifact/target/stacker.jar"), new File("plugins/stacker.jar"));
} else {
File oldFile = new File("plugins/stacker.jar");
if(oldFile.exists()) FileUtils.delete(oldFile);
FileUtils.copyURLToFile(new URL("https://ci.sancraft.dev/job/Stacker/lastSuccessfulBuild/artifact/target/stacker.jar"), new File("plugins/stacker.jar"));
FileUtils.copyURLToFile(new URL("https://ci.zvcdn.de/job/Stacker/lastSuccessfulBuild/artifact/target/stacker.jar"), new File("plugins/stacker.jar"));
}
} catch (Exception e) {
Bukkit.getConsoleSender().sendMessage(main.getPrefix() + ChatColor.RED + "Error while updating the plugin!");
Expand All @@ -124,13 +124,13 @@ private void updatePlugin() {
private void updateLanguage() {
if (loadConfig.autoUpdateLanguage() && loadLanguage.getVersion() != langVersion) {
try {
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/SanCraftDev/Stacker/" + loadConfig.updateChannel() + "/languages/" + loadConfig.language() + ".yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/ZoeyVid/Stacker/" + loadConfig.updateChannel() + "/languages/" + loadConfig.language() + ".yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
} catch (Exception e) {
try {
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/SanCraftDev/Stacker/" + loadConfig.updateChannel() + "/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/ZoeyVid/Stacker/" + loadConfig.updateChannel() + "/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
} catch (Exception e1) {
try {
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/SanCraftDev/Stacker/Stable/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
FileUtils.copyURLToFile(new URL("https://raw.githubusercontent.com/ZoeyVid/Stacker/Stable/languages/en.yml"), new File("plugins/Stacker/language/" + loadConfig.language() + ".yml"));
} catch (Exception e2) {
Bukkit.getConsoleSender().sendMessage(main.getPrefix() + ChatColor.RED + "Error while downloading language file!");
Bukkit.getServer().getPluginManager().disablePlugin(this);
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Stacker
# A Plugin to Stack Player on the top of another Player
# by DavidCraftDev for SanCraft
# GitHub: https://github.com/SanCraftDev
# Twitter: https://twitter.com/SanCraftDev
# Discord: https://discord.gg/y8DhYhv427
# by DavidCraftDev for ZoeyVid
# GitHub: https://github.com/ZoeyVid
# Mastodon: https://social.zoeyvid.de/@ZoeyVid
# Twitter: https://twitter.com/ZoeyVid
#
# Should the stackmode enabled default on join?
defaultOn: false
Expand All @@ -20,13 +20,13 @@ saveState: true
# Should a Player be on join default immune?
defaultImmune: false
#
# Language (Available Languages: https://github.com/SanCraftDev/Stacker/tree/master/languages)
# Language (Available Languages: https://github.com/ZoeyVid/Stacker/tree/master/languages)
languageFile: "en"
#
# Should the plugin automatically update?
autoUpdate: true
#
# Update Channel (Available Channels: stable & dev) - Downloaded from our ci (https://ci.sancraft.dev)
# Update Channel (Available Channels: stable & dev) - Downloaded from our ci (https://ci.zvcdn.de)
updateChannel: "dev"
#
# Should the plugin automatically update the Language File? (This will delete your custom changes)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Stacker
version: ${project.version}
main: dev.sancraft.stacker.main
main: de.zoeyvid.stacker.main
authors: [ DavidCraft ]
description: A Plugin to Stack Player on the top of a other Player

Expand Down

0 comments on commit 421513a

Please sign in to comment.