Spigot Zoom++ for CrackShot/Plus 1.0.5 (final)

Add a way stronger Zoom to your CrackShot weapons with this Plugin!

  1. PixelEddy submitted a new resource:

    Zoom++ for CrackShot - Add a way stronger Zoom to your CrackShot weapons with this Plugin!

    Read more about this resource...
     
  2. can you hook to crackshotplus function: second zoom
    can i apply this zoom level to crackshotplus second zoom
     
    • Agree Agree x 1
  3. Sure, but you have to contact the developer of CrackShotPlus first and ask him to add "isZoomIn()" into his API on his second zoom, else i cant implement it into the CrackShotPlus second zoom.
     
  4. I also want this to work with CrackShotPlus, but instead with an attachment to disable/enable that on certain guns.
     
    • Agree Agree x 1
  5. There is already a "SCOPE" Attachment in CrackShotPlus, anyway i dont know if that actually is this second zoom (?) I start working on a version supporting the second zoom soon, if you provide me more informations about this attachment i can also support the attachment i guess.
     
  6. So CrackShotPlus has a system that allows you to put attachments on weapons that you make, One of them is a "Scope" attachment, If you put it on a weapon, the weapon gets updated with new things.

    These are all the scope attachment options:
    Scope:
    Pumpkin_On_Zoom: <Boolean>
    Scope_Skin: <Boolean>
    Delayed_Scope_Skin: <String>-<Integer>,<etc.>
    Custom_Scope_Sound: <String>-<Double>-<Double>,<etc.>
    Fog: <Boolean>
    Second_Zoom:
    Amount: <Integer>
    Fog: <Boolean>
    Night_Vision: <Boolean>

    I think I got an idea on how to make it work.
    Simply what you did with CrackShot weapons, list the Weapon Titles, but instead, it's the Attachment Title.

    Like this is one of mine:
    PF_Scope_AK-12:
    Scope:
    Increase_Zoom: 7
    Night_Vision: true
    Weight:
    Decrease_Weapon_Weight: -0.0025
    Attachments_Which_Denies: PF_Sight_AK-12
    Item:
    Item_Type: "378"
    Item_Name: "&3Scope&7"
    Item_Lore:
    - "&7Stats:"
    - " &8(&b+&8) &7Increases zooming by 7!"
    - " &8(&b+&8) &7Night Vision when zooming!"
    - " &8(&c-&8) &7Increased weight!"
    - ""
    - "&7Hold the gun and type &b/attachment"
    - "&7to add the attachment!"
    - "&cType &4/detach_attachment &cto take"
    - "&cattachments off!"

    Once you put PF_Scope_AK-12 on a weapon, your Zoom++'s zoom enables for that weapon.
     
  7. I take a look at it.
     
  8. Okay, I have put Zoom++ in my supported plugins signature too.
     
    • Creative Creative x 1
  9. PixelEddy updated Zoom++ for CrackShot with a new update entry:

    Recoded and changes

    Read the rest of this update entry...
     
    • Like Like x 1
  10. Its implemented now, i used a different way since i guess he's not going to add it to the API.
     
    • Like Like x 1
  11. Feature added, check out the last (two) updates.
     
  12. it's doesn't work
    my spigot version is Paper-1090
    CrackShot version is V.098.5

    here is log:

    Code (Text):
    [18:39:43] [Server thread/ERROR]: Error occurred while enabling ZoomPlusPlus v1.0.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: me/DeeCaaD/CrackShotPlus/CSPAPI
        at me.pxl.Utils.<init>(Utils.java:27) ~[?:?]
        at me.pxl.ZoomPlusPlus.onEnable(ZoomPlusPlus.java:23) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271) ~[patched_1.11.2.jar:git-Paper-1090]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) [patched_1.11.2.jar:git-Paper-1090]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched_1.11.2.jar:git-Paper-1090]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin(CraftServer.java:378) [patched_1.11.2.jar:git-Paper-1090]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer.java:328) [patched_1.11.2.jar:git-Paper-1090]
        at net.minecraft.server.v1_11_R1.MinecraftServer.t(MinecraftServer.java:437) [patched_1.11.2.jar:git-Paper-1090]
        at net.minecraft.server.v1_11_R1.MinecraftServer.l(MinecraftServer.java:398) [patched_1.11.2.jar:git-Paper-1090]
        at net.minecraft.server.v1_11_R1.MinecraftServer.a(MinecraftServer.java:336) [patched_1.11.2.jar:git-Paper-1090]
        at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:276) [patched_1.11.2.jar:git-Paper-1090]
        at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:603) [patched_1.11.2.jar:git-Paper-1090]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
    Caused by: java.lang.ClassNotFoundException: me.DeeCaaD.CrackShotPlus.CSPAPI
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_131]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:102) ~[patched_1.11.2.jar:git-Paper-1090]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:87) ~[patched_1.11.2.jar:git-Paper-1090]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_131]
        ... 13 more
     
  13. You don't have CrackShotPlus on your Server, it seems like i accidently made it as a requirement when i added support for it, i take a look at it later & remove this requirement.
     
  14. Works flawless! Amazing!
    [​IMG]

    I just have a small error everytime I reload the config. (It reloads the config, but it emits this error upon doing so)
    Code (Text):
    [08:48:35 INFO]: SairentoLuX issued server command: /zpp reload
    [08:48:35 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'zpp' in plugin ZoomPlusPlus v1.0.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:645) ~[craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1385) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1220) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]
    at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [craftbukkit.jar:git-Spigot-7228328-6659ddf]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
    Caused by: java.lang.NullPointerException
    at me.pxl.me.pxl.commands.ZPPCommand.onCommand(ZPPCommand.java:29) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-7228328-6659ddf]
    ... 15 more
     
  15. Going to take a look at it, the problem should be easy to find and fix. Will probably release the update on weekend or earlier.
     
  16. [23:52:06 INFO]: Darkman_Bree issued server command: /zpp reload [23:52:06 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'zpp' in plugin ZoomPlusPlus v1.0.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:647) ~[spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1386) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1221) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.1.jar:git-Spigot-65e8124-357b573] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] Caused by: java.lang.NullPointerException at me.pxl.me.pxl.commands.ZPPCommand.onCommand(ZPPCommand.java:29) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.12.1.jar:git-Spigot-65e8124-357b573] ... 15 more

    Plugin doesn't work, I put on Advanced Scope on M200 Intervention, They used to work, now they don't anymore, My server is in 1.12.1,
    The error above is the log if I reload this plugin, cause it doesn't work.

    EDIT: After reloading /csp reload, Zoom++ attachments work again.
     
    #19 Darkman_Bree, Aug 17, 2017
    Last edited: Aug 17, 2017
  17. Hey, thats basicly the same error as above, going to take a look at it this weekend.