SwornGuns
SwornGuns
SwornGuns adds guns to MineCraft! It allows you to take normal items and turn them into guns of any kind, whether it be a flamethrower, rocket launcher, sniper, or rifle! With SwornGuns, client-side mods are no longer required to have intense gun battles with friends. SwornGuns uses no mods and is completely spout-free.
Features
- Use normal MineCraft items to simulate guns
- Use normal MineCraft items to simulate ammo
- Use normal MineCraft items to simulate grenades/other projectiles
- Customizable projectile types
- Customizable gun sounds
- Donor gun upgrades
- Headshots
- Aiming down the sights
- Option to reload gun on drop
- All guns are fully customizable
- And more!
Development Builds
Development Builds can be found at our Continuous Integration server. These builds are not approved by the BukkitDev staff and are to be used at your own risk
https://ci.dmulloy2.net/job/SwornGuns/
Configuration
- A detailed configuration guide can be found here
- Compatible with PVPGunPlus gun configurations (legacy)
- Additionally, Minecraft's sound class documentation (used for customizable sounds with SwornGuns) can be found here. Also, there is a config option which allows for a gun to be reloaded when you tap the drop item key.
Change Effect Types
SwornGuns has an effect type option. The config format is:
- radius,time(ticks),effect
- radius,time(ticks),effect,datavalue
so for a molotov effect: play_effect_on_release=4,200,MOBSPAWNER_FLAMES
By default, SwornGuns comes with 4 grenade types (Grenade/flashbang/molotov/smokegrenade). Smoke grenade and Molotov (in their configurations) show examples of how to use the effect configuration. List of effects can be found here.
Commands
Command | Description | Permission | ||
/swornguns help | Displays SwornGuns help | |||
/swornguns list | Displays all available weapons | |||
/swornguns reload | Allows the reloading of the plugin | swornguns.reload | ||
/swornguns toggle | Toggles individual firing |
Permissions
This plugin should work with most major permissions plugins. If a gun NEEDS permission, the node for that gun is:
- swornguns.fire.[gunname lowercased]
Example:
- MAchiNeGUN = "swornguns.fire.machinegun"
- shotgun = "swornguns.fire.shotgun"
Donations!
If SwornGuns has made a significant impact on your server and you feel like donating, click the button below! (Please do not donate more than you can afford!)
Bug Reporting
If you happen to find a bug, create a ticket following this template:
- Provide a DETAILED description of your problem and how it came about, as well as all (if any) steps taken to remedy the problem.
- Provide any RELEVANT stack traces or error logs (use pastebin or I will delete your ticket)
- Provide what version of SwornGuns and Bukkit/Spigot you are using (Please provide the full version string, found with /ua version and /version)
- Provide any other relevant information.
Before Reporting
- Check the Development Builds, often times your problems are already solved!
- Make sure you are running the latest Bukkit/Spigot build
Notes
- Support will not be given for any of the following: Offline Servers and Servers running ancient versions of either Bukkit/Spigot or Java.
- SwornGuns has been fully tested (as well as built with) with the latest builds of both Java and Bukkit.
An edit: Now whenever I reload the plugin, the guns work, but the empty ammo message always says: "You need ink sac" not what I set it to. Did I install the guns wrong? Here is what it says when I reload the plugin:
swornguns reload
[17:09:56 INFO]: [SwornGuns] Reloading SwornGuns... [17:09:56 INFO]: [SwornGuns] Failed to load gun .DS_Store: null material! [17:09:56 WARN]: [SwornGuns] Could not load gun: .DS_Store [17:09:56 INFO]: [SwornGuns] Loaded 12 guns! [17:09:56 INFO]: [SwornGuns] Failed to load gun .DS_Store: null material! [17:09:56 WARN]: [SwornGuns] Could not load projectile: .DS_Store [17:09:56 INFO]: [SwornGuns] Loaded 3 projectiles! [17:09:56 INFO]: [SwornGuns] Reload Complete! Took 10 ms!
Ok thanks!
@elimusgrove9
Make sure you're using the latest version, that bug was fixed a while ago.
Hey!
The plugin works great. Except, every time I re-start the server, the guns don't work until I delete the Swornguns folder, and re-paste in the 3 files config.yml, guns, and projectiles that I have setup before. Error log below. Also, if you are looking for a resource pack, here is a perfect one http://www.minecraftdl.com/wasted-real-gun-texture-pack/
java.lang.IllegalArgumentException: The permission swornguns.fire..ds_store is already defined! at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:599) [spigot.jar:git-Spigot-1453] at net.dmulloy2.swornguns.SwornGuns.setupPermissions(SwornGuns.java:308) [?:?] at net.dmulloy2.swornguns.SwornGuns.onEnable(SwornGuns.java:123) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [spigot.jar:git-Spigot-1453] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot.jar:git-Spigot-1453] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1453] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:467) [spigot.jar:git-Spigot-1453] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:385) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:359) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:333) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:289) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:193) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:450) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1453] [20:35:32 INFO]: [WorldEdit] Enabling WorldEdit v5.6.2 [20:35:32 INFO]: WEPIF: Using the Bukkit Permissions API. [20:35:32 INFO]: [SpawnTP] Enabling SpawnTP v1.6 [20:35:32 INFO]: [Shopkeepers] Enabling Shopkeepers v1.37 [20:35:32 ERROR]: Error occurred while enabling Shopkeepers v1.37 (Is it up to date?) java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()Ljava/util/Collection; at com.nisovin.shopkeepers.ShopkeepersPlugin.onEnable(ShopkeepersPlugin.java:304) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [spigot.jar:git-Spigot-1453] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot.jar:git-Spigot-1453] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1453] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:467) [spigot.jar:git-Spigot-1453] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:385) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:359) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:333) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:289) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:193) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:450) [spigot.jar:git-Spigot-1453] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1453] [20:35:32 INFO]: [Essentials] Enabling Essentials v2.13.1 [20:35:32 INFO]: Bukkit version format changed. Version not checked. [20:35:32 INFO]: git-Spigot-1453 (MC: 1.7.9) [20:35:32 INFO]: 1.7.9-R0.1-SNAPSHOT [20:35:33 INFO]: Essentials: Using config file enhanced permissions. [20:35:33 INFO]: Permissions listed in as player-commands will be given to all users.
@SparkyCraftHub
It. works. just. fine. on. 1.7.2.
I don't understand why you people think every damn plugin has to be updated just because the version number changed. The API did not change at all with 1.7.2, so there's no need, whatsoever, to update. The plugin works just fine. I can bump the version number if that makes you feel any better.
@oGTemp0
Already possible, just change some of the config variables ;)
@SmiteMC
Whether or not the gun sound should be local to the player.
Please Update To 1.7.2
Hey bro love this plugin any chance of adding a left click zoom function would be pretty epic and thanks :D
What is localgunsound for?
@dmulloy2
Alright, well, im using build #58, heres the pastebin link: http://pastebin.com/XN9u1C9N
@OnyxMC
Can you provide the version of SwornGuns you are using, as well as the full stack trace preferably using pastie or pastebin?
@SmiteMC
Make sure configuration settings regarding reloading and reloading on drop are correct.
Hey I'm getting a weird error in console that im pretty sure has something to do with my previous comment, also, could you respond to my previous comment? Thanks! This is the error, it continues down the console:
at java.util.AbstractList.hashCode(AbstractList.java:541) at net.dmulloy2.swornguns.types.GunPlayer.hashCode(GunPlayer.java) at net.dmulloy2.swornguns.types.Gun.hashCode(Gun.java) at java.util.AbstractList.hashCode(AbstractList.java:541) at net.dmulloy2.swornguns.types.GunPlayer.hashCode(GunPlayer.java) at net.dmulloy2.swornguns.types.Gun.hashCode(Gun.java) at java.util.AbstractList.hashCode(AbstractList.java:541) at net.dmulloy2.swornguns.types.GunPlayer.hashCode(GunPlayer.java) Continues on down
Hello, I'm having a problem/glitch here. I have uninstalled per-world plugins now, but whenever i make ANY of my guns shoot something other than snowballs, they just shoot snowballs. Also, can you make updating names of guns of DisabledWorlds not change from the item's name to the gun's name? (Example: Stone Hoe -> SPAS-12). I want that name change to happen in non-disabled worlds but can you make it so it doesn't automatically change the item names in disabled worlds?
@dmulloy2
Whenever I press q the item drops.. How do you change the chat message when your out of ammo?
@SmiteMC
Err... What?
@dmulloy2 It didnt worked
@SmiteMC
Reloading occurs automatically, but you can manually reload by pressing q.
Added as of build #55.
YES! I do! Thanks man your the best! Thanks for all your help :)
How do u reload the gun? And can you add bullet like wither?
@E1i0te
Bullets shot doesn't take into account any sort of permissions. Do you have any sort of Anti-Cheat plugin?
@dmulloy2
I know, it's the bulletsPerClick= I set it to 6 and when I'm op it works, but when I'm not op it does not work. I know others with this same problem also. This is my config:
gunName=&eSpas-12 (IV)
-gunType=278 ammoType=295 ammoAmtNeeded=1 bulletDelayTime=41 reloadType=PUMP-roundsPerBurst=1 bulletsPerClick=6 gunDamage=4 armorPenetration=2 maxDistance=7 bulletSpeed=3 accuracy=0.2 recoil=0.2 knockback=0.5-canAim=true explodeRadius=0 explosionDamage=0 fireRadius=0 canHeadshot=true canClickLeft=true canClickRight=true-- outOfAmmoMessage=&6This gun needs &cSEEDS needsPermission=false permissionMessage=&cYou do not have permission to fire this gun!-- bulletType=SNOWBALL gunSound=ghast_fireball hasSmokeTrail=false-- hasClip=true maxClipSize=8 reloadGunOnDrop=true reloadTime=58-- localGunSound=false