StrangeWeapons
StrangeWeapons

History
When the ability to give items custom names and descriptions was added to the 1.4 snapshot, the Minecraft subreddit was flooded with various mockups of weapons from other games, such as Borderlands 2 brought into Minecraft. I saw this as an opportunity to make strange weapons from TF2.
Features
- Strange Weapons!
- Can be created out of any item or block.
- Can have custom names.
- Can have custom descriptions.
- Can track any number of statistics.
- Steve Co. Supply Crates
- Opened with Steve Co. Supply Crate Keys
- Customize crate contents
- Give a user a random item (from what you specified) when uncrated
- Strange Parts
- Craft these with strange weapons to make them track additional statistics!
- Name Tags
- Use the /tag command to pick a name, and then craft it with a strange weapon!
- Description tags
- Use the /tag command to pick a description, and then craft it with a strange weapon!
How This Plugin Works
Read this if you are confused This plugin aims to duplicate the item and drop systems that are built into TF2. This plugin has nearly all of the same items, strange weapons, name tags, description tags, crates, and keys as TF2 does. It also has a random drop system to go along with it.
What are all these items?
- Strange Weapons is a weapon that tracks a number of statistics, changes it's name based on the value of the primary (first) statistic, and can have a custom name or description.
- Name Tags can be crafted together with a strange weapon to apply the name set with the /tag command.
- Description Tags can be crafted together with a strange weapon to apply the description set with the /tag command.
- Strange Parts are items that can be crafted with a strange weapon to track additional statistics.
- Steve Co. Supply Crates are specially designated crates which contain an item. Crafting this with a Steve Co. Supply Crate Key will open the crate and reveal the item inside. The contents of all crates must be customized with items and their drop weights.
- Steve Co. Supply Crate Keys are specially designated blaze rods which are crafted with Steve Co. Supply Crates to open the crates. Initially, the crafting will only show a "Mystery Item" in the result slot, but as soon as you click on it to uncrate it will change to the real result. See this image for more details.
Suggested Uses
- Reward players for spending time playing on your server.
- Put strange weapons into crates and let crates drop for players. Then sell keys in an admin store, give them as rewards for voting for your server, or as gifts for donations.
- Competitions to see who can kill the most cows, do the most damage, etc in a set period.
The Random Drop System
- By default, players are limited to 9 item drops every week. When a player joins the server for the first time (or after any scheduled drop), the plugin will roll to determine when they should receive a drop. By default, drops happen every 30 to 70 minutes if the player has not hit the drop limit.. Just like TF2 though, if a player does not claim all of one week's drops, those drops will rollover to the next week. (This makes the limit actually 18 items every two weeks.) The items which drop can be configured with custom weight. (See the
/dropscommand.) If a player has a full inventory, they will not receive a drop, instead they will be reminded that they need to have an open space in their inventory and the drop will be rescheduled. If you have admins on your server who are frequently vanished doing secret admin stuff, you can give them the permissionstrangeweapons.drop.announceexemptand their drops will only be announced to them personally. Should you not want a player to receive drops at all, you can revoke thestrangeweapons.drop.dropitemsandstrangeweapons.drop.dropcratespermissions. Speaking of crates, the crate drop system works exactly like the item drop system, except that it runs on a seperate timer with separate limits. (Default 3 crates per week.)

-
View User Profile
-
Send Message
Posted Jan 19, 2013if i added a crate serie to the drop list is it just going to drop randomly
-
View User Profile
-
Send Message
Posted Jan 19, 2013how do i make a crate serie
-
View User Profile
-
Send Message
Posted Jan 19, 2013I'm getting this error whenever I try to do commands "An internal error occurred while attempting to perform this command"
and this in the console
"17:54:07 [WARNING] [StrangeWeapons] Task #3 for StrangeWeapons v0.5.0 generated
an exception
java.lang.NullPointerException
at to.joe.strangeweapons.StrangeWeapons$1.run(StrangeWeapons.java:140)
at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftTask.run(CraftTask.java
:53)
at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftScheduler.mainThreadHea
rtbeat(CraftScheduler.java:345
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:5
30)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:2
24)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:4
94)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java
:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:8
49)"
-
View User Profile
-
Send Message
Posted Jan 18, 2013I should have yaml support in soon. This means that you won't have to muck around with mysql.
-
View User Profile
-
Send Message
Posted Jan 15, 2013@Z3roToxin
read the other comments first ._.
-
View User Profile
-
Send Message
Posted Jan 15, 2013Hi, can you help me with this error ?
19:54:55 [SEVERE] [StrangeWeapons] Error connecting to database com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai lure
The last packet sent successfully to the server was 0 milliseconds ago. The driv er has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1 116) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2 371) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :305) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at to.joe.strangeweapons.datastorage.MySQLDataStorage.<init>(MySQLDataSt orage.java:46) at to.joe.strangeweapons.StrangeWeapons.onEnable(StrangeWeapons.java:112 ) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java :282) at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.j ava:264) at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:32 1) at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:30 0) at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:25 9) at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java :149) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java: 399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84 9) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja va:254) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292) ... 27 more
-
View User Profile
-
Send Message
Posted Jan 15, 2013Could you create a database prefix in mysql, this will make my db more clear.
Eg:
sw_droprecords
sw_dropdata
sw_parts
sw_weapons
-
View User Profile
-
Send Message
Posted Jan 14, 2013@leobizaz
It will work exactly the same. It will just use a file instead of a database.
@CeramicTitan
All of the errors were a result of not being able to connect to the database. Basically it expected that it was connected and it was in fact not.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@PlantAssassin
lol, keep looking there is more.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@PlantAssassin
Thanks, but will it have all of the features?
-
View User Profile
-
Send Message
Posted Jan 14, 2013@leobizaz
As of right now, it needs mysql to store a bunch of the data. I hope to have a version that doesn't require mysql out soon.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@PlantAssassin
I instaled MySQL , now i'm triying to configure it...
I'm confuse with that ._. i only want to use the plugin D:
-
View User Profile
-
Send Message
Posted Jan 14, 2013@CeramicTitan @leobizaz
15:52:28 [SEVERE] [StrangeWeapons] Error connecting to database
Did you setup mysql?
I will release an update though that unloads the plugin if this happens in the future though. Not exactly best practice to keep spamming console like that.
-
View User Profile
-
Send Message
Posted Jan 14, 2013@CeramicTitan
This is happening to me too :(
-
View User Profile
-
Send Message
Posted Jan 13, 2013Can You Make A Command That Only Are For Admins, The Command Would Give Him A Random Crate,Key or Strange Weapon, Much Like The DiabloDrops Plugin Doing /dd
-
View User Profile
-
Send Message
Posted Jan 13, 2013@PlantAssassin
found some: http://pastie.org/5681408
Tested with version 1.4.6R0.3 and the latest dev build.
-
View User Profile
-
Send Message
Posted Jan 13, 2013Please keep in mind that this is a beta release. There are bound to be a few issues that pop up. In that case, please file a ticket.
-
View User Profile
-
Send Message
Posted Jan 13, 2013Finally yay :D
-
View User Profile
-
Send Message
Posted Jan 13, 2013@PlantAssassin
Sweet :D
-
View User Profile
-
Send Message
Posted Jan 13, 2013Aaaaaand it's uploaded.
"35 changed files with 2,681 additions and 151 deletions"