GasMask

Discussion in 'Plugin Requests' started by icedmoca, Mar 6, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    icedmoca

    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
     
  2. Offline

    timtower Moderator Moderator

    @Kyleyocats What particle? What area's? How do you define those?
     
    StarRocket likes this.
  3. Offline

    icedmoca

    The particle: cloud: @timtower
    [​IMG]

    Also it's when you walk into the particle there is no area
     
  4. Offline

    timtower Moderator Moderator

    @Kyleyocats And where would those clouds come from? Because I don't think that we can check for such clouds that easily.
     
  5. Offline

    CTRL

    Using WorldGuard to create 'gas regions' sounds reasonably
     
    Last edited: Mar 7, 2016
  6. Offline

    icedmoca

    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
     
  7. Offline

    StarRocket

    @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.
     
  8. Offline

    icedmoca

    Ah thanks!, Maybe can you give poison on slime block touch? But if wear gas mask you don't get poison?
     
  9. Offline

    StarRocket

  10. Offline

    icedmoca

    Do you think you can do it really quick? @StarRocket
     
  11. Offline

    StarRocket

    @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?
     
  12. Offline

    icedmoca

  13. Offline

    StarRocket

    @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
     
  14. Offline

    icedmoca

    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.
     
    Last edited by a moderator: Mar 7, 2016
  15. Offline

    CTRL

    If you know the locations of gas clouds then there's no problem to store it and poison players in its radius
     
  16. Offline

    StarRocket

    @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.
     
    Last edited: Mar 7, 2016
  17. Offline

    icedmoca

    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.
     
  18. Offline

    CTRL

    Location.distance for a circle or checking x and y
     
  19. Offline

    timtower Moderator Moderator

    @StarRocket That was an error due to you compiling with java 8 instead of java 7
     
  20. Offline

    icedmoca

    I just noticed that too. xD
     
  21. Offline

    StarRocket

    @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
     
    Last edited: Mar 8, 2016
    icedmoca and timtower like this.
Thread Status:
Not open for further replies.

Share This Page