From bf1b7dadfa119f37a48d9aeefc2b02e2559e69d3 Mon Sep 17 00:00:00 2001 From: AquaCobell Date: Thu, 19 Oct 2023 22:22:44 +0200 Subject: [PATCH] inital commit --- .vscode/settings.json | 7 + hardcore/pom.xml | 93 +++++++++++++ .../src/main/java/com/nico/hardcore/App.java | 55 ++++++++ .../com/nico/hardcore/Commands/Death.java | 126 ++++++++++++++++++ .../com/nico/hardcore/Events/OnDeath.java | 47 +++++++ .../src/main/java/com/nico/hardcore/Test.java | 17 +++ hardcore/src/main/resources/plugin.yml | 17 +++ hardcore/src/test/java/com/nico/AppTest.java | 20 +++ .../classes/com/nico/hardcore/App.class | Bin 0 -> 2176 bytes .../com/nico/hardcore/Commands/Death$1.class | Bin 0 -> 3036 bytes .../com/nico/hardcore/Commands/Death.class | Bin 0 -> 3208 bytes .../com/nico/hardcore/Events/OnDeath.class | Bin 0 -> 1997 bytes .../classes/com/nico/hardcore/Test.class | Bin 0 -> 794 bytes hardcore/target/classes/plugin.yml | 17 +++ hardcore/target/hardcore-1.0-SNAPSHOT.jar | Bin 0 -> 9256 bytes hardcore/target/maven-archiver/pom.properties | 4 + .../compile/default-compile/createdFiles.lst | 0 .../compile/default-compile/inputFiles.lst | 4 + .../default-testCompile/createdFiles.lst | 1 + .../default-testCompile/inputFiles.lst | 1 + .../TEST-com.nico.AppTest.xml | 61 +++++++++ .../surefire-reports/com.nico.AppTest.txt | 4 + .../test-classes/com/nico/AppTest.class | Bin 0 -> 463 bytes project.json | 1 + 24 files changed, 475 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 hardcore/pom.xml create mode 100644 hardcore/src/main/java/com/nico/hardcore/App.java create mode 100644 hardcore/src/main/java/com/nico/hardcore/Commands/Death.java create mode 100644 hardcore/src/main/java/com/nico/hardcore/Events/OnDeath.java create mode 100644 hardcore/src/main/java/com/nico/hardcore/Test.java create mode 100644 hardcore/src/main/resources/plugin.yml create mode 100644 hardcore/src/test/java/com/nico/AppTest.java create mode 100644 hardcore/target/classes/com/nico/hardcore/App.class create mode 100644 hardcore/target/classes/com/nico/hardcore/Commands/Death$1.class create mode 100644 hardcore/target/classes/com/nico/hardcore/Commands/Death.class create mode 100644 hardcore/target/classes/com/nico/hardcore/Events/OnDeath.class create mode 100644 hardcore/target/classes/com/nico/hardcore/Test.class create mode 100644 hardcore/target/classes/plugin.yml create mode 100644 hardcore/target/hardcore-1.0-SNAPSHOT.jar create mode 100644 hardcore/target/maven-archiver/pom.properties create mode 100644 hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst create mode 100644 hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst create mode 100644 hardcore/target/surefire-reports/TEST-com.nico.AppTest.xml create mode 100644 hardcore/target/surefire-reports/com.nico.AppTest.txt create mode 100644 hardcore/target/test-classes/com/nico/AppTest.class create mode 100644 project.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f87ebea --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "files.autoGuessEncoding": true, + "files.encoding": "utf8", + "java.jdt.ls.vmargs": "-Dfile.encoding=UTF-8", + "javac-linter.javac": "javac -Dfile.encoding=UTF-8", + "java.compile.nullAnalysis.mode": "automatic" +} \ No newline at end of file diff --git a/hardcore/pom.xml b/hardcore/pom.xml new file mode 100644 index 0000000..5257508 --- /dev/null +++ b/hardcore/pom.xml @@ -0,0 +1,93 @@ + + + + 4.0.0 + + com.nico + hardcore + 1.0-SNAPSHOT + + hardcore + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + + + + + org.spigotmc + spigot-api + 1.20.1-R0.1-SNAPSHOT + provided + + + + + + junit + junit + 4.11 + test + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/hardcore/src/main/java/com/nico/hardcore/App.java b/hardcore/src/main/java/com/nico/hardcore/App.java new file mode 100644 index 0000000..4fcf39b --- /dev/null +++ b/hardcore/src/main/java/com/nico/hardcore/App.java @@ -0,0 +1,55 @@ +package com.nico.hardcore; + +import org.bukkit.plugin.java.JavaPlugin; +import com.nico.hardcore.Commands.Death; +import com.nico.hardcore.Events.OnDeath; + +/** + * Hello world! + * + */ +public class App extends JavaPlugin +{ + + public static String currentWorldname = "world"; + private static App instance; + + + @Override + public void onEnable() + { + getLogger().info("[Hardcore-Multiplayer] Plugin enabled!"); + instance = this; + + this.getCommand("death").setExecutor(new Death()); + getServer().getPluginManager().registerEvents(new OnDeath(), this); + + this.getConfig().getString("current World"); + } + @Override + public void onDisable() + { + getLogger().info("[Hardcore-Multiplayer] Plugin disabled!"); + } + + public static App getInstance() { + return instance; + } + + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + + + } + + + public static String getCurrentWorldname() { + return currentWorldname; + } + + public static void setCurrentWorldname(String currentWorldname) { + App.currentWorldname = currentWorldname; + } + +} diff --git a/hardcore/src/main/java/com/nico/hardcore/Commands/Death.java b/hardcore/src/main/java/com/nico/hardcore/Commands/Death.java new file mode 100644 index 0000000..52125bb --- /dev/null +++ b/hardcore/src/main/java/com/nico/hardcore/Commands/Death.java @@ -0,0 +1,126 @@ +package com.nico.hardcore.Commands; + +import java.text.SimpleDateFormat; +import java.util.Date; +import org.bukkit.Bukkit; +import org.bukkit.Sound; +import org.bukkit.World; +import org.bukkit.WorldCreator; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; +import org.bukkit.scheduler.BukkitRunnable; +import com.nico.hardcore.App; + +public class Death implements CommandExecutor +{ + + static boolean deathsentence = false; + + + @Override + public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + // TODO Auto-generated method stub + + sender.sendMessage("OK"); + death((Player) sender); + return true; + } + + public static void death(Player player) + { + + if(deathsentence == false) + { + deathsentence = true; + + final World currentworld = player.getWorld(); + + for (Player players : Bukkit.getOnlinePlayers()) { + players.sendTitle("§4" + player.getName() + "§f ist gestorben.", "§a Welt wird neu generiert", 1, 400, 100); + players.playSound(player.getLocation(), Sound.ENTITY_WITHER_SPAWN, 0.5f, 0f); + PotionEffect blindnessEffect = new PotionEffect(PotionEffectType.BLINDNESS, 500, 1); + players.getInventory().clear(); + players.setExp(0); + players.setHealth(players.getMaxHealth()); + players.addPotionEffect(blindnessEffect); + + } + + Bukkit.getScheduler().runTaskLater(App.getInstance(), new Runnable() + { + + @Override + public void run() + { + + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); + + + Date date = new Date(); + String formatiertesDatum = dateFormat.format(date); + + Bukkit.createWorld(WorldCreator.name(formatiertesDatum)); + + World world = Bukkit.getWorld(formatiertesDatum); + + + //Eventuell break + App.getInstance().getConfig().set("current World", formatiertesDatum); + App.setCurrentWorldname(formatiertesDatum); + for (Player players : Bukkit.getOnlinePlayers()) + { + //players.setHealth(players.getMaxHealth()); + //players.getInventory().clear(); + //players.setExp(0); + + players.setBedSpawnLocation(world.getSpawnLocation(), true); + players.teleport(world.getSpawnLocation()); + players.getInventory().clear(); + players.setFoodLevel(50); + players.setHealth(players.getMaxHealth()); + if(players.hasPotionEffect(PotionEffectType.BLINDNESS)) + { + players.removePotionEffect(PotionEffectType.BLINDNESS); + } + players.setFireTicks(0); + + } + + + Bukkit.getServer().unloadWorld(currentworld, true); + deathsentence = false; + + + + + } + }, 100L); + + + + } + + + + + + + /* Bukkit.createWorld(WorldCreator.name("world2")); + Bukkit.broadcastMessage("Finished Creating World"); + + for (Player onlinePlayer : Bukkit.getOnlinePlayers()) + { + onlinePlayer.teleport(Bukkit.getWorld("world2").getSpawnLocation()); + } + Bukkit.broadcastMessage("Teleport finished"); + */ + + + } + + +} diff --git a/hardcore/src/main/java/com/nico/hardcore/Events/OnDeath.java b/hardcore/src/main/java/com/nico/hardcore/Events/OnDeath.java new file mode 100644 index 0000000..7ff7403 --- /dev/null +++ b/hardcore/src/main/java/com/nico/hardcore/Events/OnDeath.java @@ -0,0 +1,47 @@ +package com.nico.hardcore.Events; + +import java.net.http.WebSocket.Listener; +import org.bukkit.Bukkit; +import org.bukkit.World; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.entity.PlayerDeathEvent; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; +import com.nico.hardcore.App; +import com.nico.hardcore.Commands.Death; + +public class OnDeath implements Listener, org.bukkit.event.Listener +{ + @EventHandler + public void onPlayerDeath(PlayerDeathEvent event) + { + Player died = event.getEntity(); + Death.death(died); + } + + + //Eventuell Break + @EventHandler + public void onPlayerJoin(PlayerJoinEvent event) + { + if(event.getPlayer().getWorld().getName() != App.currentWorldname) + { + World currentWorld = Bukkit.getWorld(App.currentWorldname); + if(currentWorld != null) + { + event.getPlayer().getInventory().clear(); + event.getPlayer().setExp(0); + event.getPlayer().setHealth( event.getPlayer().getMaxHealth()); + event.getPlayer().teleport(currentWorld.getSpawnLocation()); + + } + + } + } + + + + +} diff --git a/hardcore/src/main/java/com/nico/hardcore/Test.java b/hardcore/src/main/java/com/nico/hardcore/Test.java new file mode 100644 index 0000000..1d3b320 --- /dev/null +++ b/hardcore/src/main/java/com/nico/hardcore/Test.java @@ -0,0 +1,17 @@ +package com.nico.hardcore; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; + +public class Test implements CommandExecutor +{ + + @Override + public boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) { + // TODO Auto-generated method stub + throw new UnsupportedOperationException("Unimplemented method 'onCommand'"); + } + + +} diff --git a/hardcore/src/main/resources/plugin.yml b/hardcore/src/main/resources/plugin.yml new file mode 100644 index 0000000..84e23fa --- /dev/null +++ b/hardcore/src/main/resources/plugin.yml @@ -0,0 +1,17 @@ +name: 'Hardcore-Multiplayer' +version: '1.0.0' +main: com.nico.hardcore.App +api-version: '1.20' + + +# Replace "kit" with the name of your command. +commands: + death: + description: Deletes the map and creates a new one. + usage: /death + + +# Set the starter world name. +setting: + current World: world + \ No newline at end of file diff --git a/hardcore/src/test/java/com/nico/AppTest.java b/hardcore/src/test/java/com/nico/AppTest.java new file mode 100644 index 0000000..f6658ec --- /dev/null +++ b/hardcore/src/test/java/com/nico/AppTest.java @@ -0,0 +1,20 @@ +package com.nico; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/hardcore/target/classes/com/nico/hardcore/App.class b/hardcore/target/classes/com/nico/hardcore/App.class new file mode 100644 index 0000000000000000000000000000000000000000..d01144a197d9eae2de8d2ac8f86059b5ed93681e GIT binary patch literal 2176 zcma)73v<&(5dJQ4B3n@cI0?^CY?6X)9-=jmv<{{;2@TYNw4q69N?S#~C`aUzN0!qv z(;wBsj2X&Ie?Wg!r+bn}WUPVOGdgQ;_uJiXAO7dxzy1bLh14*_Fl~D+QwrNNcP+nZ zdph3#SFuRt(BOxE2~{M5N+3b&i$u_h@Aot z;hRMrAEBV(9JvXpNx?Hv#CZx$$Q_T0QX1s2yrHt6GoT@x#Ra0I$*o{l1z$2yMukDA z;1|7C%aToon`s!0L`kU%O4E#jjqPe0E;AGcD-_>%%%#ZdB~0ls@rj0Or2ipU1D~SG zFxKJ0@^9Sk1|IQyv6L20?C7mpt-PU9ykX!bZbkK3=l;H`&otF1;W!f4#_$;^i_aO3 z4O|*nz-?+;;wj2{)sj|N>)C#+cGT{DN(6c*m73*!8i0=ZNXFFEF*SxSv7}*<;ann! zG*ko2xW_Qzb4PRn?nht@^L^xS<-%+z4axmlGVMOln5`89_wgWNYtfTC!eOZPXK07w zu5Sgxlje?axp|Ksk#;PmCT}o|$0J?{XI#fatZ8_}U?wvAKWGNN!MAY*!?i&3liH&x z>m%pMCDBpCn#Fh2Iq#plW~ACIQpZuL?;ot5Q^dhwYtz1?<&$YyLNXjLZKcoN7M^PO zk(wtF-gBx)%fL_gnKqW!4X7t0W8s-=wD|(sf81&jj~0Wm!d=&kSfrI;gKMBUoec5% z4Giq4ZJ@OkhD%XpEZ?D(HJK6{N!8d7tl=rjH4*CDMLbC(IH;_zdtKk=ssm^-5+PTW zDT*|C!}Mn{gq&Ks^h;Okht4d0bM!_G(_4j3^%>0@FEQ~a{Tjkidg^on6J&b?$3iJc zla_F7XVR%GM=Gx{d1y8o3dcedBT~S0=$7hpVEj9Uri|;A9!})X^l-NF60?>3$30wp zgG*0d;Ytrz>GJw(%rm?}okU+$UgPdCNcvU&>mF7&551la6P%{Bj$<4rahCoOsyKt& zm`OxZKZs=gAd-1XQ$?bOkvyhI4pAct3WQorpy)A54jb4cTSekrhyi3?VD=Ask0^|| zm^+{^hwt$uwzw7h&Aq@6`Coe2e%Ec8NV}YHn}dU0g3dwU*`V8rcimn~xZT6~*rG~j XRJD|1Uq=Qv5-vyL#$j;7oLc_@F#82- literal 0 HcmV?d00001 diff --git a/hardcore/target/classes/com/nico/hardcore/Commands/Death$1.class b/hardcore/target/classes/com/nico/hardcore/Commands/Death$1.class new file mode 100644 index 0000000000000000000000000000000000000000..1168fa6711ea14a350279110626d11140b1e67e0 GIT binary patch literal 3036 zcmbVO`EwIh9RIu~?b7g&Qnj`yii+5P5Cudfh}smS+7=|(+N$U_d2N?&cH?GKsP}!} zH+b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pcQjSNCj1pc8yY(rJK`1G${bc;$8hXefoi~DM`Hz! zKm|-&M`O#H3W5gBL-M31->oHn#QhaK+JJpnP(3`UnPL?@%Wv9xL16#U=ce(>iUW|e z^F|DVv7hjc#vlfb!44DeM&fl1akv)k=pw4!SkA4t20d7h8?X)Av5PyYK<+7IIaJto zxEb$o!+geJ^&NRC}$I4%GH literal 0 HcmV?d00001 diff --git a/hardcore/target/classes/com/nico/hardcore/Commands/Death.class b/hardcore/target/classes/com/nico/hardcore/Commands/Death.class new file mode 100644 index 0000000000000000000000000000000000000000..4ce975b44624be78e16848376b6a14d103c097a5 GIT binary patch literal 3208 zcmai0`EwIx7=FGs>9*-Aq#%NFltXDsA)t5$4|*VhG(}QdTMyhOU(==AP26mtcq`r) zcq@vEqt*j25ZcI$P|Mbb5^;i*ikgT-vbu498U8Wn$enPfZB5XwtC|A*ymm%mRH&Tq&@a zKts+h2P-h#l9)f7l(aL_iCu;xmY9Jk!&Fy8SuF$_OlOiB#J2sId@k!d4A83xq2WY4_??$1S*(bxjpLHfvG(2+`_Ns`7j) zx~9c)wk(#rnX_Y!xE*(DxP#W_I@b}yHacax(lNZsUs9zhUZzve-MCl7Jq&(E&-AH| z?Pwal}8b$()N2p!m|T4JSwY?qGRNH9N) zH))KqeiUMt>L6krNb2ap9wy$%=b3tejdNAnEZMUCSUvVKu=5kc&1S)E&dLIz7?SoT zrMg$g1ImkfH|INDkA8vc&rcZ5{nB!q51LM<*_K6$+0rqk<0{_=bPVDlHmj<{Uei^> zpmh$PX1NrL$K#PcrQ#7Ck76HNh~cX-qVh=$tBYp(Al3i_X$?axkBYiU<%)JjM+P*% zs4LkU?;Y6JAMf4SwRc}?&-VVLH=$FB!L%g}N9Eu-9na$hZ=|_h<9T*j3xQQ9FY0&+FZ-T#8{<2r zVYwsTZt7IWuj+UWuX`2fPM-x@I(^wUb-abQxv`8)rZO1Ih|Cl%HHt4mtT25N^=I2fPUh-k9MkX#*Tw8@xILfO z@hLv@+ahikT*F(?%b1TjxjA`0XKBqo>!`XgtlJX8aeS#t zuyqpQOGTPI5#49NA}l5&>jF#oRQ5(`K-EKdL({b-EUUqWzp!cws{wbx!fgV{2|Tm0gu4XjQg_=qbPP0gP2xVX#RblyyXk&D&LY*+7YK`^3o|7= zScf(qKP+$xk2MW9mXHnN97YFDVJs~E2~47JXP~Ww0|F&H!6iVBXKT<#(qTn@&vr~9)3Ll-r@qrDK_+l}>D&gxO`W4c(UUJ%*3^1@dLJ(r`VTQe) zA@?w70~LwGQ|edpDeKLsy}+CVG_2C7NaHlazj)#Tho&Hn95wjed!8X&@CxQQ-~9a# DYAs#; literal 0 HcmV?d00001 diff --git a/hardcore/target/classes/com/nico/hardcore/Events/OnDeath.class b/hardcore/target/classes/com/nico/hardcore/Events/OnDeath.class new file mode 100644 index 0000000000000000000000000000000000000000..352471939db15f92b87255d8e031bc4d30bdcdb5 GIT binary patch literal 1997 zcma)7Yf~Fl7=BJdSP0ufE3~B)p@=r2fmK_rnzl;02sHt0YOwLT*&LH4$!=z|)bfM; z0s28pKj=3<_?Mh+?SEdGpsluYLz`2XzB6fqBPoTAu6pR?QA7 zjvq*CRV5SRxJ!$*1jwke5WqM z#hlv?r6&UeBLdTYP_@d3^|~8cQn|KzVu9iNuIGji1>&i6QDA7zugE0gxL{%wNrCa4 z>&czNW?2SL?Q%m3T+aE9-6-0DtIplap|Iw*1r~Du1tu$S!T0tW_K^%UI)UX>ZXiJ> z>4ryEpPsHsR^>STGh*``Tc>PRf*ZgLaskAMP-NZa@3M49uW`WsgAtGKC z@PsB$U?~z@6M9~~$Y{lt6@lv!n}}-xv&YC|-}MAC(L8j3mS(I=h*InEkwhA|4J--V z8mQ>mMkX@7f_C^F!wTLuUzz9j$_k#ujO-4D;x7jh=#rp={<9q4z zq-7@V;R6AK9(L>|`&cM%!#tD#6=VP_>wP(hCSI(YF*jhMajfh_?i_ZszS^D(Noh!J!XNcQDi*< zfvn(L6W`%`Hbf{JvgHRMdneMhC)(+fK%}Dj5m{%qCV4mesnyf&ba-~i-~=m#wo}jB zt?u+o7W~7&k(;iXk7jpluc+qYaogh@UTfIxwrm@4iR+x9O*Fl^jGJKn5JLh6|0?1< zaT@bG#*@WWa7`@z2J>fbVz|ifu)Z9}IQM2p0TZ~y6H(wbYE5>vrno9cdz8evCU5_W zEBVYz+&J}iQA;M7z!XDY(O%~}+Fh@-!vfx*j|6{(71I*q(5k>B9#~^b&O?! zW84w=1t0!|Eq-6(<9y~%Jm`qmm3T`)oyLxlkLg`U_PLUM5!W}FV?0yGZ(`V2na6b< z7BIs7EYZ$kh68qvSuQird(3g0Sw6#3ADYq$niBPFBACHLl;IFXg?Ab39NIjWCTqorP!HwT2%GI>#_oEjO}`V0t`oLWn+u~;D+bbKsdY-6sF9Cwm#}AD zU-Zh$OYH^A0#;1%M^`E>y>*1@q0JOwJ<&#eDD$3jC$cx>NF%YS9G*$1gFg*c{XmZh z+sVykJA~T576@P3$^Wm=RVGuevp~_A@A~t6X#W#8Azl9^H@pBgEjQ7=BJ3>CavOp8 zIy}PM!%uPtgpC_6Lx{V!bg6o;!yDGZU%Uti?BX`h6ps=QSXg z#_0{VAq^gadu;0y0XDJ49^pQ=*@naCs4xnMe<1qUs9odMFZPx&Bdm=HZzifKf%SNR chhu7tN7&&LA@&$gm=|_W(L|N=yJOnkU&wmI4*&oF literal 0 HcmV?d00001 diff --git a/hardcore/target/classes/plugin.yml b/hardcore/target/classes/plugin.yml new file mode 100644 index 0000000..84e23fa --- /dev/null +++ b/hardcore/target/classes/plugin.yml @@ -0,0 +1,17 @@ +name: 'Hardcore-Multiplayer' +version: '1.0.0' +main: com.nico.hardcore.App +api-version: '1.20' + + +# Replace "kit" with the name of your command. +commands: + death: + description: Deletes the map and creates a new one. + usage: /death + + +# Set the starter world name. +setting: + current World: world + \ No newline at end of file diff --git a/hardcore/target/hardcore-1.0-SNAPSHOT.jar b/hardcore/target/hardcore-1.0-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..4d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rROJK%eVj9zP9&XNyv48nmru6Fq_+KK27icw#ZU zy6orXH>jJgIb_$U?z8ruVG?k_6qfK4rSe`ZIsH8OeD#NLzV{XCugQIP3g1p{-J8j6 z@gSGn@McmQ+}!N{>*NMIJAy5oU2QB}p1J?lmY>QMsNW|oE3o&lv+gUE0S5-hdwZ1z zHrEwcn7Wk|mDnDjTG9e?X*UUT51kWo0R&bXo6{sa#9N3Lf{5_mXCeE}5B?=R-*r$` z@c}G89R7dR#Bcon*OlY{>+4URx}%W)X1K}c|3$w3jmL)BlX!iX;V$exIr|pYaMS#y zhTKKmCvV>(mi~?Sx6=FT34i-{pWJ;5L%OL;|CC+sc6*=veT(P67cX@yhTl4JpB#Qm z1iqK(k2roy^LOp~mppz;lYc|=Cu08*%l|w0mt1}e9{VTwPg%MOUkfze0`* z`wtiXu>2`*zv+IzgZIhl|6$DWm%pL=XN3NU>vxIn)6{N>B5%%2|4AhEpHTfpVf#Dl z-OcW=GuQuIIsUCT<^2E0`g>h_m-D`D@-3%1-hG_+ZJO_L-nY)a<%AI4$9cQz{tMGR z3%6S)@Xh}?ZkKU)arZ5AZgE~D|HFIn??umD*8B47Evpv!|HyiqZB-Q!Ze9f#7~Go= N%#HktOY!U1{{wXhRS^IH literal 0 HcmV?d00001 diff --git a/hardcore/target/maven-archiver/pom.properties b/hardcore/target/maven-archiver/pom.properties new file mode 100644 index 0000000..a7d2197 --- /dev/null +++ b/hardcore/target/maven-archiver/pom.properties @@ -0,0 +1,4 @@ +#Created by Apache Maven 3.6.3 +groupId=com.nico +artifactId=hardcore +version=1.0-SNAPSHOT diff --git a/hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..84dea49 --- /dev/null +++ b/hardcore/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,4 @@ +c:\Users\Nico\Desktop\Minecraft Hardcore Plugin\hardcore\hardcore\src\main\java\com\nico\hardcore\Events\OnDeath.java +c:\Users\Nico\Desktop\Minecraft Hardcore Plugin\hardcore\hardcore\src\main\java\com\nico\hardcore\App.java +c:\Users\Nico\Desktop\Minecraft Hardcore Plugin\hardcore\hardcore\src\main\java\com\nico\hardcore\Test.java +c:\Users\Nico\Desktop\Minecraft Hardcore Plugin\hardcore\hardcore\src\main\java\com\nico\hardcore\Commands\Death.java diff --git a/hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..66b5da3 --- /dev/null +++ b/hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +com\nico\AppTest.class diff --git a/hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..dcc3ef3 --- /dev/null +++ b/hardcore/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +c:\Users\Nico\Desktop\Minecraft Hardcore Plugin\hardcore\hardcore\src\test\java\com\nico\AppTest.java diff --git a/hardcore/target/surefire-reports/TEST-com.nico.AppTest.xml b/hardcore/target/surefire-reports/TEST-com.nico.AppTest.xml new file mode 100644 index 0000000..01b2675 --- /dev/null +++ b/hardcore/target/surefire-reports/TEST-com.nico.AppTest.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hardcore/target/surefire-reports/com.nico.AppTest.txt b/hardcore/target/surefire-reports/com.nico.AppTest.txt new file mode 100644 index 0000000..78be435 --- /dev/null +++ b/hardcore/target/surefire-reports/com.nico.AppTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: com.nico.AppTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 s - in com.nico.AppTest diff --git a/hardcore/target/test-classes/com/nico/AppTest.class b/hardcore/target/test-classes/com/nico/AppTest.class new file mode 100644 index 0000000000000000000000000000000000000000..31e4a78dff4ddb53d02defa7d6f88001c8d8887e GIT binary patch literal 463 zcmZutO-}+b6r3&#tLrKV_`%T|dawtM7?X{OC!&cGOuUt)fs&;q-LC#FPZ|&Y0DqM6 z6-Y>omp7d^FVi>g`{(luKo6Y=0Yf7*3$9gWc)DB;W#J-()SZhL!E>Rf{C+%_nPaG3 zDXrW!L#2B@VhC@{M8>FKH$fFOhWbEhc~>sR(hkKqmkiB;$wWR9R(ZZ@hHj<`ul@bE z&(JPrrpza)E?%X5Qf@Z1CHZt7O6}A_j#Qz@DAn3H;gr$j(-;^#<@1tO<9_>oj3(L< zS|n|iv?!!?365~g5Q`OCdxza;pC*1ZrOo86@_Q$nOI-RR;0zR*4h97DqNr3OVw{i> zRxjSM^R|*>s$K?S>`_hD1BCm;7!F7cP~S{72)$8{l$BBVfy1p)OrxMMAzJ^Mosb&f F^cQwtTnPXG literal 0 HcmV?d00001 diff --git a/project.json b/project.json new file mode 100644 index 0000000..d488f80 --- /dev/null +++ b/project.json @@ -0,0 +1 @@ +{"minecraftVersion":"1.0-SNAPSHOT","groupId":"com.example","artiFactId":"test","pack":"com.example.test","version":"1.0-SNAPSHOT"} \ No newline at end of file