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!
@TanveerGT5
Umm you mean that you can't hurt someone who is in the same faction as you?
@RCEKH
Did you mention the data of the items? Like "Item: 35,1" is the item 35:1 and not just item 35!
@RCEKH
Thanks for reporting this, I've fixed it so this won't occur in the next version!
@ritipinheiro
I'll make a page with more weapon examples that you can copy into your guns.yml!
Thanks for this is working all fine,
Can you make more weapons in next version i suck making weapons
error :
2013-03-11 08:25:42 [SEVERE] Could not pass event PlayerItemHeldEvent to ModernWeapons v1.3.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.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:159) at com.DarkBlade12.ModernWeapons.Weapons.Gun.initialize(Gun.java:312) at com.DarkBlade12.ModernWeapons.Weapons.Gun.<init>(Gun.java:81) at com.DarkBlade12.ModernWeapons.Listener.WeaponListener.onPlayerItemHeld(WeaponListener.java:267) at sun.reflect.GeneratedMethodAccessor170.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) ... 14 more
new idea, perhaps to add with the weapon a option of cost. So if a player choice a weapon or ammon with /mw give weapon, so automatically some money was taken from his money-account.
.... additional i want to use this weapons inside a arena of the plugin BattleArena, but there the same problems. The items just standard items and no weapons.
if i take a weapon and Ammo with (mw give and /mw ammo, then it´s working. If we use the item normal from the inventory they do not working.
Fine would be also if the admin (whatever) can use the give to a other player. /mw give PlayerA P90
The function /mw help doesn´t working.
is this factions compatible?
@ritipinheiro
If you're using the latest version, this won't happen! I tested it by myself on my testserver.
@ritipinheiro
You have to enable them in the config.yml first!
@jerky404
I'll add some aliases like "/mdw" or "/modernweapons" ;)
I already have a plugin that uses /mw booooo
And when i explode tnt is giving error whit moderweapons entitydamageevent to modernweapons
and when i dont have ammo the message dont appear
@lst96
You are using Java 6, so you have to update your server to Java 7!
cant load it
http://pastebin.com/hm510yJb
@TommehRRR
I'll add this for sure! ;)
Can you add a feature to ignore or "break" certain blocks by a weapon?
Like shooting glass breaks the block. Also i have a whole land full of tall grass, which seems to stop the bullets short! Making it a hastle to shoot something from somewhere!
And how about having a feature where a gun cannot operate in a certain block? Like when someone is inside water - Guns will clog!
:)