Plugin category: MISC Suggested name: GasMask What I want: When you talk into particle cloud (The particle) you get poison for 20mins, but if you wear a chainmail helmet you will be safe and it acts as a gas mask. Optional: 5mins in the smoke the helmet is half broken, 10mins in the smoke the helmet is broken. Ideas for commands: /gasmask - &6> &fGasMask Version 1.0 Ideas for permissions: No Permissions When I'd like it by: 24 hours
@Kyleyocats And where would those clouds come from? Because I don't think that we can check for such clouds that easily.
look at the picture from the post before, thats the particle cloud and a command block is being told a command to particle cloud that location, but thats not the point, i need the particle to poison the player but if the player has a chainmail helmet on, the player will not be affected. @timtower @CTRL
@Kyleyocats As far as I know, there isn't really a way to get particles that are near a player. There would need to be some other method of getting them such as a defined location that those particles would spawn at.
Ah thanks!, Maybe can you give poison on slime block touch? But if wear gas mask you don't get poison?
@Kyleyocats Sure. Would the poision be re-added if you walked back onto the slimeblock, or would it just continue with the current time left on the poison?
@Kyleyocats Ok done, sorry it took a bit, got sidetracked with math lol checks if player is moving and is on a slime block and is not wearing a chain helmet and if so adds the poison for 20 minutes, otherwise (they do have a chain helmet) it returns and does not apply the effect
Thanks Man Cheers! @StarRocket I get this console error: and plugin does not work.. Minecraft 1.9 too Code: 08.03 00:21:27 [Server] INFO ... 6 more 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.lang.Class.forName0(Native Method) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_80] 08.03 00:21:27 [Server] INFO Caused by: java.lang.UnsupportedClassVersionError: me/star/poisontouch/Main : Unsupported major.minor version 52.0 08.03 00:21:27 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.7.0_80] 08.03 00:21:27 [Server] INFO at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:201) [Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugins(CraftServer.java:296) [Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[Spigot19.jar:git-Spigot-3104eb1-bf43ca6] 08.03 00:21:27 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/star/poisontouch/Main : Unsupported major.minor version 52.0 08.03 00:21:27 [Server] ERROR Could not load 'plugins/PoisonTouch.jar' in folder 'plugins' EDIT by Moderator: merged posts, please use the edit button instead of double posting.
If you know the locations of gas clouds then there's no problem to store it and poison players in its radius
@Kyleyocats Likely an error because I used bukkit 1.8. I'll rewrite in 1.9 soon. Worked fine on my test server although I use 1.8. Edit: Redone with 1.9 bukkit. Worked fine on 1.9 test server, so hopefully no errors.
What would code be like to poison players in a radius of 5x5x5 at 20,20,20? Thanks get me it when you can! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@timtower Oh oops, I'll recompile with 7 soon, silly mistakes ;/ I need to sleep Edit @Kyleyocats recompiled with 1.7. hopefully no errors although there could be because I am pretty new to using intellij instead of eclipse so hopefully it's compiled correctly