ModernWeapons
ModernWeapons - The weapon revolution!
ModernWeapons adds weapons to your server such as guns, rocket launchers and grenades. You can fully customize the properties of each weapon in the config.yml! There are also permissions for each weapon, without that a player can't use a weapon. It's great fun to use and play around with it!
Features
- Doesn't require Spout!
- Weapon Types: Assault Rifle, Submachine Gun, Pistol, Sniper, Shotgun, Rocket Launcher, Grenade, Knife
- All weapons are fully customizable
- Weapons can play specific sound effects
- Weapons are able to play effects when firing
- You can reload your weapons manually (Shift + Right Click)
- You can scope with weapons (Left Click)
- Grenades can have potion effects
- Customizable weapon, death, headshot and other messages
- Optional headshot blood effects
- You can limit weapons for worlds
- Optional special effects when bullets hit something
- Disable weapons in non pvp areas (requires WorldGuard & WorldEdit)
- Different config files for grenades and guns which don't have to be reloaded
- You can stab other players with the knife from behind
Please note: All features are referring to the newest version, older versions may not have some of these
Tutorial
Take a look at this page for detailed informations about creating own weapons!
TODO-List
- Option for limiting weapon usage to specific worldguard regions
- Switch for fire modes
- Make sticky grenades able to stick to walls and ceilings
- Add weapon shops
- C4, Claymores and more
- Add config for own sound effects
- Make weapon display name label changable
- Let ammo/stats of the weapon being displayed on a scoreboard
- Flamethrowers
- Reload animation
- Additional potion effect on bullet hit
- Magazine objects
- More firearm actions
- Reload bullet by bullet option
- Night vision scope
- More visual effects
- Attachments: Silencer, Grenade launcher, Flamethrower, Laserpointer
- Infinite ammo option
- Sound effects fully customizable
XXX= Already worked on
Commands and Permissions
Commands + Description | Permissions |
/mw reload = Reloads the config.yml | ModernWeapons.reload |
/mw list = Shows a list of weapons | ModernWeapons.list |
/mw give <weapon> = Gets you a weapon | ModernWeapons.give |
/mw ammo <weapon> = Gets you the ammo of a weapon | ModernWeapons.ammo |
/mw info <weapon> = Shows informations about a weapon | ModernWeapons.info |
Use a specific weapon | ModernWeapons.use.WEAPON |
Use all weapons | ModernWeapons.use.all |
Bugs? Errors? Problems? New Ideas?
If you find any bug/error send me a message or post a comment, please! You can also send me any ideas you have for this plugin.
Config
Take a look at this page for more informations about the config.yml!
Changelog
Version 1.3.1:
+ Fixed explosion error
+ Added aliases "mwe", "mweapons" and "modernweapons"
Source
Click here for the source code of ModernWeapons!
An creation with this plugin in my server! What do you think?? No Mod i have an texture pack for the gun in my server. http://tinypic.com/r/285e37/6 <
---Image link! Write me what do you think if is beautiful or bad!Hey, Update:
It works only when i restart the server, which means the reload command is broken ;) I think, And i'm using 1.2.0
Works like a charm once i restart!
@BlueStar8842
Do you had Version 1.1.0 before? If yes, try deleting the config.yml and restart your server!
Not work for me ! Help me please Version : 1.2.0
@TommehRRR
Which version are you using?
@TommehRRR
I'm alread about to implement that next version ;)
Oh and i think something is a Little wrong... i can't add new weapons! They don't work for some reason!
Here is what i tried:
Even without the :2 it doesent work...
Also, how about adding a button for switching between burst and auto?
Great work!
Advanced tutorial for creating and using weapons will come this weekend! (Also a new version)
@MrCreeper1216
If you want to put items with data values in you have to use this format: ID,DATA and not ID:DATA ;)
it don't work again
@MrCreeper1216
try Version 1.1.0
With this Version i can do it.
Add a command for enable and disable the "mods" , because I can't put an repeater .
And thanks for this plugin :D
when i modify the ammo of a gun whit example P90 Ammo : 351:12 ( it don't work and the gun dont shot o reload) i know an server who have how ammo 351:12! why it don't work with me? sorry for my bad english, help me.
@skyskrap3r
You have to get the items you've defined as guns! Just take them in your hand and they'll transform into a weapon!
So I have again a question! I have the newest version, but how became i the weapons in my inventory?
aktuell new error messages :
2013-03-07 17:21:28 [SEVERE] Could not pass event PlayerItemHeldEvent to ModernWeapons v1.2.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:775) at net.minecraft.server.v1_4_R1.Packet16BlockItemSwitch.handle(SourceFile:27) at net.minecraft.server.v1_4_R1.Packet16BlockItemSwitch$$EnhancerByCGLIB$$d5329a0a.CGLIB$handle$0(<generated>) at net.minecraft.server.v1_4_R1.Packet16BlockItemSwitch$$EnhancerByCGLIB$$d5329a0a$$FastClassByCGLIB$$130442a1.invoke(<generated>) at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at com.comphenix.protocol.injector.packet.ReadPacketModifier.intercept(ReadPacketModifier.java:109) at net.minecraft.server.v1_4_R1.Packet16BlockItemSwitch$$EnhancerByCGLIB$$d5329a0a.handle(<generated>) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at com.DarkBlade12.ModernWeapons.Weapons.Gun.getShotsFromDisplay(Gun.java:147) at com.DarkBlade12.ModernWeapons.Weapons.Gun.initialize(Gun.java:251) at com.DarkBlade12.ModernWeapons.Weapons.Gun.<init>(Gun.java:69) at com.DarkBlade12.ModernWeapons.Listener.WeaponListener.onPlayerItemHeld(WeaponListener.java:247) at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more
... forgot. After /mwreload the new created weapons not inside. I have to make a restart of complete server.
@DarkBladee12
Sorry, but its opposite on my server. With the old version in can make my own weapons and can modify this also. Only with the new one with Version 1.2.0 happen this problem by me.
Now i have done dopple test and downloaded again the version 1.2.0, and still the same.