commit a3bf5da562cf489a62165adf06a69f2df313e330 Author: Simon Date: Fri Sep 20 07:33:37 2019 +0200 Initial commit diff --git a/.classpath b/.classpath new file mode 100755 index 0000000..7ba1006 --- /dev/null +++ b/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..5c98b42 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/BungeeCliffbreakCore.iml b/.idea/BungeeCliffbreakCore.iml new file mode 100644 index 0000000..f08f19e --- /dev/null +++ b/.idea/BungeeCliffbreakCore.iml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..5f1d5bf --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dictionaries/simon.xml b/.idea/dictionaries/simon.xml new file mode 100644 index 0000000..e8a0378 --- /dev/null +++ b/.idea/dictionaries/simon.xml @@ -0,0 +1,7 @@ + + + + cliffbreak + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..b26911b --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml b/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml new file mode 100644 index 0000000..6e5d5b7 --- /dev/null +++ b/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__com_google_guava_guava_20_0.xml b/.idea/libraries/Maven__com_google_guava_guava_20_0.xml new file mode 100644 index 0000000..c5bd322 --- /dev/null +++ b/.idea/libraries/Maven__com_google_guava_guava_20_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_netty_netty_buffer_4_1_34_Final.xml b/.idea/libraries/Maven__io_netty_netty_buffer_4_1_34_Final.xml new file mode 100644 index 0000000..c53264a --- /dev/null +++ b/.idea/libraries/Maven__io_netty_netty_buffer_4_1_34_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_netty_netty_codec_4_1_34_Final.xml b/.idea/libraries/Maven__io_netty_netty_codec_4_1_34_Final.xml new file mode 100644 index 0000000..04f6eca --- /dev/null +++ b/.idea/libraries/Maven__io_netty_netty_codec_4_1_34_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_netty_netty_common_4_1_34_Final.xml b/.idea/libraries/Maven__io_netty_netty_common_4_1_34_Final.xml new file mode 100644 index 0000000..8a29fe2 --- /dev/null +++ b/.idea/libraries/Maven__io_netty_netty_common_4_1_34_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_netty_netty_resolver_4_1_34_Final.xml b/.idea/libraries/Maven__io_netty_netty_resolver_4_1_34_Final.xml new file mode 100644 index 0000000..1daf256 --- /dev/null +++ b/.idea/libraries/Maven__io_netty_netty_resolver_4_1_34_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__io_netty_netty_transport_4_1_34_Final.xml b/.idea/libraries/Maven__io_netty_netty_transport_4_1_34_Final.xml new file mode 100644 index 0000000..1b5acc1 --- /dev/null +++ b/.idea/libraries/Maven__io_netty_netty_transport_4_1_34_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_brigadier_1_0_16_SNAPSHOT.xml b/.idea/libraries/Maven__net_md_5_brigadier_1_0_16_SNAPSHOT.xml new file mode 100644 index 0000000..844cdda --- /dev/null +++ b/.idea/libraries/Maven__net_md_5_brigadier_1_0_16_SNAPSHOT.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_api_1_14_SNAPSHOT.xml b/.idea/libraries/Maven__net_md_5_bungeecord_api_1_14_SNAPSHOT.xml new file mode 100644 index 0000000..2de11e7 --- /dev/null +++ b/.idea/libraries/Maven__net_md_5_bungeecord_api_1_14_SNAPSHOT.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_14_SNAPSHOT.xml b/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_14_SNAPSHOT.xml new file mode 100644 index 0000000..67697a4 --- /dev/null +++ b/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_14_SNAPSHOT.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_config_1_14_SNAPSHOT.xml b/.idea/libraries/Maven__net_md_5_bungeecord_config_1_14_SNAPSHOT.xml new file mode 100644 index 0000000..b007b50 --- /dev/null +++ b/.idea/libraries/Maven__net_md_5_bungeecord_config_1_14_SNAPSHOT.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_event_1_14_SNAPSHOT.xml b/.idea/libraries/Maven__net_md_5_bungeecord_event_1_14_SNAPSHOT.xml new file mode 100644 index 0000000..d50299b --- /dev/null +++ b/.idea/libraries/Maven__net_md_5_bungeecord_event_1_14_SNAPSHOT.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_md_5_bungeecord_protocol_1_14_SNAPSHOT.xml b/.idea/libraries/Maven__net_md_5_bungeecord_protocol_1_14_SNAPSHOT.xml new file mode 100644 index 0000000..af1d52d --- /dev/null +++ b/.idea/libraries/Maven__net_md_5_bungeecord_protocol_1_14_SNAPSHOT.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__net_sf_trove4j_core_3_1_0.xml b/.idea/libraries/Maven__net_sf_trove4j_core_3_1_0.xml new file mode 100644 index 0000000..9460109 --- /dev/null +++ b/.idea/libraries/Maven__net_sf_trove4j_core_3_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml b/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml new file mode 100644 index 0000000..7e63769 --- /dev/null +++ b/.idea/libraries/Maven__org_yaml_snakeyaml_1_23.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9896aeb --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..59a52cd --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.project b/.project new file mode 100755 index 0000000..c7050c5 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + BungeeCliffbreakCore + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/BungeeCliffbreakCore.iml b/BungeeCliffbreakCore.iml new file mode 100644 index 0000000..78b2cc5 --- /dev/null +++ b/BungeeCliffbreakCore.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b584372 --- /dev/null +++ b/pom.xml @@ -0,0 +1,52 @@ + + + 4.0.0 + + de.cliffbreak.bungeecore + BungeeCliffbreakCore + 1.0-SNAPSHOT + + + + bungeecord-repo + https://oss.sonatype.org/content/repositories/snapshots + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.6.1 + + 1.8 + 1.8 + + + + + + + UTF-8 + + + + + net.md-5 + bungeecord-api + 1.14-SNAPSHOT + jar + provided + + + net.md-5 + bungeecord-api + 1.14-SNAPSHOT + javadoc + provided + + + \ No newline at end of file diff --git a/src/main/java/de/cliffbreak/bungeecore/BungeeCliffbreakCore.java b/src/main/java/de/cliffbreak/bungeecore/BungeeCliffbreakCore.java new file mode 100644 index 0000000..c652709 --- /dev/null +++ b/src/main/java/de/cliffbreak/bungeecore/BungeeCliffbreakCore.java @@ -0,0 +1,27 @@ +package de.cliffbreak.bungeecore; + +import net.md_5.bungee.api.ServerPing; +import net.md_5.bungee.api.event.ProxyPingEvent; +import net.md_5.bungee.api.event.ServerKickEvent; +import net.md_5.bungee.api.plugin.Listener; +import net.md_5.bungee.api.plugin.Plugin; +import net.md_5.bungee.event.EventHandler; + +public class BungeeCliffbreakCore extends Plugin implements Listener { + public void onEnable() { + getProxy().getPluginManager().registerListener(this, this); + } + + @EventHandler + public void onKick(ServerKickEvent e) { + e.setCancelled(true); + e.getPlayer().sendMessage(" " + e.getKickReason()); + } + + @EventHandler + public void onProxyPing(ProxyPingEvent e) { + ServerPing sp = e.getResponse(); + sp.setDescription(" §b§lCliffbreak.de §r§bNetwork §r§e[1.14]\n§r§7§o Hier koennte Ihre Werbung stehen..."); + //sp.setVersion(new ServerPing.Protocol("§b§k||§r§4OFFLINE§b§k||| ", 4)); + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..aa763b3 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,3 @@ +name: BungeeCliffbreakCore +main: de.cliffbreak.bungeecore.BungeeCliffbreakCore +version: 0.1 \ No newline at end of file diff --git a/src/plugin.yml b/src/plugin.yml new file mode 100755 index 0000000..b81f818 --- /dev/null +++ b/src/plugin.yml @@ -0,0 +1,4 @@ +name: Cliffbreak Core +main: net.aragurlp.bccore.BCCore +version: 1.0 +author: AragurLP \ No newline at end of file