explosioncontrol

This commit is contained in:
jslightham
2020-04-30 22:50:17 -04:00
parent 1fab4fe748
commit 021994b831
22 changed files with 7693 additions and 2034 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +1,12 @@
INDEX VERSION 1.131+C:\Users\jmsdesk\Documents\Minecraft Plugins\MC-Plugins\.metadata\.plugins\org.eclipse.jdt.core
232622027.index
1258155337.index
3601782180.index
913808514.index
2842528100.index
3886406357.index
1093470671.index
1159594091.index
1258155337.index
2775965492.index
913808514.index
651048273.index
2842528100.index
1093470671.index
477189670.index
3886406357.index
1159594091.index
232622027.index

View File

@@ -1,44 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qualifiedTypeNameHistroy>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.FeedCommand"/>
<fullyQualifiedTypeName name="org.bukkit.Location"/>
<fullyQualifiedTypeName name="org.bukkit.World"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.SetSpawnCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.SpawnCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.DayCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.NightCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.BroadcastCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.utils.Utils"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.MsgCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.InvseeCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.Main"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.HomeCommand"/>
<fullyQualifiedTypeName name="com.jslightham.essentialslight.commands.SethomeCommand"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.Main"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.utils.Utils"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.commands.InvseeCommand"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.commands.EnderchestCommand"/>
<fullyQualifiedTypeName name="org.bukkit.event.player.PlayerLoginEvent"/>
<fullyQualifiedTypeName name="com.jslightham.easybans.utils.Utils"/>
<fullyQualifiedTypeName name="java.util.Arrays"/>
<fullyQualifiedTypeName name="com.jslightham.easybans.utils.NameFetcher"/>
<fullyQualifiedTypeName name="org.apache.commons.io.IOUtils"/>
<fullyQualifiedTypeName name="org.json.simple.JSONArray"/>
<fullyQualifiedTypeName name="java.net.URL"/>
<fullyQualifiedTypeName name="org.json.simple.JSONValue"/>
<fullyQualifiedTypeName name="org.json.simple.JSONObject"/>
<fullyQualifiedTypeName name="java.io.IOException"/>
<fullyQualifiedTypeName name="java.text.ParseException"/>
<fullyQualifiedTypeName name="net.md_5.bungee.api.ChatColor"/>
<fullyQualifiedTypeName name="net.minecraft.server.v1_13_R2.ItemStack"/>
<fullyQualifiedTypeName name="org.bukkit.Material"/>
<fullyQualifiedTypeName name="org.bukkit.inventory.meta.ItemMeta"/>
<fullyQualifiedTypeName name="org.bukkit.inventory.Inventory"/>
<fullyQualifiedTypeName name="com.jslightham.guireport.utils.Utils"/>
<fullyQualifiedTypeName name="org.bukkit.inventory.ItemStack"/>
<fullyQualifiedTypeName name="io.netty.handler.codec.http2.Http2Connection.Listener"/>
<fullyQualifiedTypeName name="org.bukkit.event.Listener"/>
<fullyQualifiedTypeName name="org.bukkit.event.EventHandler"/>
<fullyQualifiedTypeName name="org.bukkit.event.inventory.InventoryClickEvent"/>
<fullyQualifiedTypeName name="com.jslightham.guireport.listeners.InventoryClickListener"/>
<fullyQualifiedTypeName name="com.jslightham.guireport.Main"/>
@@ -46,18 +13,51 @@
<fullyQualifiedTypeName name="com.jslightham.guireport.commands.TestCommand"/>
<fullyQualifiedTypeName name="java.time.LocalTime"/>
<fullyQualifiedTypeName name="java.time.LocalDate"/>
<fullyQualifiedTypeName name="java.util.ArrayList"/>
<fullyQualifiedTypeName name="com.jslightham.simpleTPA.utils.TPAreq"/>
<fullyQualifiedTypeName name="org.bukkit.plugin.java.JavaPlugin"/>
<fullyQualifiedTypeName name="jdk.internal.net.http.common.Utils"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.AddStaff"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.StaffList"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.utils.Utils"/>
<fullyQualifiedTypeName name="java.util.UUID"/>
<fullyQualifiedTypeName name="org.bukkit.Bukkit"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.Main"/>
<fullyQualifiedTypeName name="org.bukkit.command.CommandSender"/>
<fullyQualifiedTypeName name="org.bukkit.command.Command"/>
<fullyQualifiedTypeName name="java.util.Arrays"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.RemStaff"/>
<fullyQualifiedTypeName name="org.bukkit.Bukkit"/>
<fullyQualifiedTypeName name="org.bukkit.event.player.AsyncPlayerChatEvent"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.listeners.ChatListener"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.ToggleChat"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.utils.Utils"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.BroadcastCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.DayCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.FlyCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.HealCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.InvseeCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.MsgCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.commands.NightCommand"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.Main"/>
<fullyQualifiedTypeName name="org.bukkit.event.player.PlayerJoinEvent"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.listeners.JoinListener"/>
<fullyQualifiedTypeName name="org.bukkit.event.player.PlayerQuitEvent"/>
<fullyQualifiedTypeName name="com.jslightham.staffmanager.listeners.LeaveListener"/>
<fullyQualifiedTypeName name="org.bukkit.command.CommandExecutor"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.commands.FreezeCommand"/>
<fullyQualifiedTypeName name="org.bukkit.potion.PotionEffectType"/>
<fullyQualifiedTypeName name="org.bukkit.potion.PotionEffect"/>
<fullyQualifiedTypeName name="java.lang.Integer"/>
<fullyQualifiedTypeName name="java.util.ArrayList"/>
<fullyQualifiedTypeName name="org.bukkit.entity.Player"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.Main"/>
<fullyQualifiedTypeName name="org.bukkit.event.player.PlayerMoveEvent"/>
<fullyQualifiedTypeName name="com.jslightham.invsee.listeners.PlayerJumpListener"/>
<fullyQualifiedTypeName name="org.bukkit.plugin.java.JavaPlugin"/>
<fullyQualifiedTypeName name="com.jslightham.explosioncontrol.Main"/>
<fullyQualifiedTypeName name="org.bukkit.event.Listener"/>
<fullyQualifiedTypeName name="org.bukkit.event.EventHandler"/>
<fullyQualifiedTypeName name="org.bukkit.event.entity.EntityExplodeEvent"/>
<fullyQualifiedTypeName name="org.bukkit.event.entity.ExplosionPrimeEvent"/>
<fullyQualifiedTypeName name="com.jslightham.explosioncontrol.listeners.ExplosionPrime"/>
<fullyQualifiedTypeName name="org.bukkit.craftbukkit.v1_15_R1.entity.CraftTNTPrimed"/>
<fullyQualifiedTypeName name="org.bukkit.craftbukkit.v1_15_R1.entity.CraftCreeper"/>
<fullyQualifiedTypeName name="org.bukkit.craftbukkit.v1_15_R1.entity.CraftLargeFireball"/>
<fullyQualifiedTypeName name="org.bukkit.craftbukkit.v1_15_R1.entity.CraftFireball"/>
</qualifiedTypeNameHistroy>

View File

@@ -1,12 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="JavaSE-1.8" key="org.eclipse.jdt.ui.last.selected.execution.enviroment"/>
<item value="false" key="TypeHierarchyViewPart.qualifiednames"/>
<item value="3" key="TypeHierarchyViewPart.orientation"/>
<item value="false" key="TypeHierarchyViewPart.linkeditors"/>
<item value="C:\Users\jmsdesk\Documents\Minecraft Plugins\MC-Plugins\bukkit" key="org.eclipse.jdt.ui.lastextjar"/>
<item value="2" key="TypeHierarchyViewPart.hierarchyview"/>
<section name="RefactoringWizard.preview">
<item value="600" key="width"/>
<item value="400" key="height"/>
</section>
<section name="org.eclipse.ltk.ui.refactoring.settings">
<item value="false" key="renameSubpackages"/>
<item value="false" key="updateQualifiedNames"/>
<item value="*" key="patterns"/>
<item value="false" key="updateSimilarElements"/>
@@ -34,6 +39,8 @@
<item value="false" key="create_package_info_java"/>
</section>
<section name="quick_assist_proposal_size">
<item value="249" key="size.y"/>
<item value="355" key="size.x"/>
</section>
<section name="completion_proposal_size">
<item value="252" key="size.y"/>
@@ -59,6 +66,8 @@
<item value="false" key="JarManifestWizardPage.SAVE_MANIFEST"/>
<item value="false" key="JarPackageWizardPage.EXPORT_OUTPUT_FOLDER"/>
<list key="JarPackageWizardPage.DESTINATION_NAMES_ID">
<item value="C:\Users\jmsdesk\Documents\Minecraft Plugins\Server\plugins\Explosion Control.jar"/>
<item value="C:\Users\jmsdesk\Documents\Minecraft Plugins\Server\plugins\Invsee.jar"/>
<item value="C:\Users\jmsdesk\Documents\Minecraft Plugins\Server\plugins\Staff Manager.jar"/>
<item value="C:\Users\jmsdesk\Documents\Minecraft Plugins\Staff Manager.jar"/>
<item value="C:\Users\jmsdesk\Documents\Minecraft Plugins\GUI Report.jar"/>

View File

@@ -558,3 +558,5 @@ Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to fin
2020-04-24 12:24:06,440 [Worker-9: Loading available Gradle versions] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update.
2020-04-24 22:53:46,902 [Worker-5: Loading available Gradle versions] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.
2020-04-26 16:50:21,517 [Worker-10: Loading available Gradle versions] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update.
2020-04-27 10:08:20,280 [Worker-2: Loading available Gradle versions] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.
2020-04-28 14:26:10,671 [Worker-1: Loading available Gradle versions] INFO c.g.t.t.d.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update.

View File

@@ -12,6 +12,8 @@
<list key="textArray">
</list>
</section>
<section name="NewWizardAction">
</section>
<section name="ImportExportAction">
<item value="org.eclipse.jdt.internal.ui.jarpackager.JarPackageWizard" key="ImportExportPage.STORE_SELECTED_EXPORT_WIZARD_ID"/>
<list key="ImportExportPage.STORE_EXPANDED_EXPORT_CATEGORIES">

View File

@@ -1,3 +1,3 @@
#Sun Apr 26 16:50:10 EDT 2020
#Tue Apr 28 14:26:01 EDT 2020
org.eclipse.core.runtime=2
org.eclipse.platform=4.8.0.v20180611-0500

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="C:/Users/jmsdesk/Documents/Minecraft Plugins/MC-Plugins/bukkit/spigot-1.15.2.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

1
ExplosionControl/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/bin/

17
ExplosionControl/.project Normal file
View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ExplosionControl</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,13 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8

View File

@@ -0,0 +1,13 @@
package com.jslightham.explosioncontrol;
import org.bukkit.plugin.java.JavaPlugin;
import com.jslightham.explosioncontrol.listeners.ExplosionPrime;
public class Main extends JavaPlugin{
public void onEnable() {
saveDefaultConfig();
new ExplosionPrime(this);
}
}

View File

@@ -0,0 +1,77 @@
package com.jslightham.explosioncontrol.listeners;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.v1_15_R1.entity.CraftCreeper;
import org.bukkit.craftbukkit.v1_15_R1.entity.CraftLargeFireball;
import org.bukkit.craftbukkit.v1_15_R1.entity.CraftTNTPrimed;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.ExplosionPrimeEvent;
import com.jslightham.explosioncontrol.Main;
public class ExplosionPrime implements Listener{
private Main plugin;
public ExplosionPrime(Main plugin) {
this.plugin = plugin;
Bukkit.getPluginManager().registerEvents(this, plugin);
}
@EventHandler
public void onPrime(ExplosionPrimeEvent event) {
if(event.getEntity() instanceof CraftTNTPrimed) {
String temp = plugin.getConfig().getString("tntFire");
boolean a = Boolean.parseBoolean(temp);
event.setFire(a);
temp = plugin.getConfig().getString("tntRadius");
int b = Integer.parseInt(temp);
event.setRadius(b);
temp = plugin.getConfig().getString("tntCancelled");
boolean c = Boolean.parseBoolean(temp);
event.setCancelled(c);
}else if(event.getEntity() instanceof CraftCreeper) {
String temp = plugin.getConfig().getString("creeperFire");
boolean a = Boolean.parseBoolean(temp);
event.setFire(a);
temp = plugin.getConfig().getString("creeperRadius");
int b = Integer.parseInt(temp);
event.setRadius(b);
temp = plugin.getConfig().getString("creeperCancelled");
boolean c = Boolean.parseBoolean(temp);
event.setCancelled(c);
}else if(event.getEntity() instanceof CraftLargeFireball){
String temp = plugin.getConfig().getString("fireballFire");
boolean a = Boolean.parseBoolean(temp);
event.setFire(a);
temp = plugin.getConfig().getString("fireballRadius");
int b = Integer.parseInt(temp);
event.setRadius(b);
temp = plugin.getConfig().getString("fireballCancelled");
boolean c = Boolean.parseBoolean(temp);
event.setCancelled(c);
}else {
String temp = plugin.getConfig().getString("otherFire");
boolean a = Boolean.parseBoolean(temp);
event.setFire(a);
temp = plugin.getConfig().getString("otherRadius");
int b = Integer.parseInt(temp);
event.setRadius(b);
temp = plugin.getConfig().getString("otherCancelled");
boolean c = Boolean.parseBoolean(temp);
event.setCancelled(c);
}
}
}

View File

@@ -0,0 +1,35 @@
# Fire on tnt explode (true/false)
tntFire: 'false'
# Radius of tnt explosion (integer value)
tntRadius: 4
# Cancel TNT explosion events (true/false)
tntCancelled: 'false'
# Fire on creeper explode (true/false)
creeperFire: 'false'
# Radius of creeper explosion (integer value)
creeperRadius: 4
# Cancel creeper explosion events (true/false)
creeperCancelled: 'false'
# Fire on large fireball explode (true/false)
fireballFire: 'false'
# Radius of large fireball explosion (integer value)
fireballRadius: 4
# Cancel large fireball explosion events (true/false)
fireballCancelled: 'false'
# Fire on other explode (true/false)
otherFire: 'false'
# Radius of other explosion (integer value)
otherRadius: 4
# Cancel other explosion events (true/false)
otherCancelled: 'false'

View File

@@ -0,0 +1,7 @@
name: ExplosionControl
version: 1.0.0
author: jslightham
main: com.jslightham.explosioncontrol.Main
description: A plugin to manage explosions.
commands: