How would you obtain it? p.s; already made something like this, so i can modify it to the way you'd like it. I'll begin and think about it.
Desle You obtain shipments from other shop plugins i have. If you give a player the required item id with the required name and lore, it instantly is a shipment when placed. THANK YOU.
I didin't make colorcodes possible, sorry... rest is working though. EDIT: Back.. went to the store to get some junk, sorry Is it a big problem if i do like.. "/shipment Bow Delivery" to obtain the shipments? And with that i mean that the command is the only way. Edit: because i'm not too sure how that other plugin of yours works, if it adds &r or anything, to make the text not look italic, etc. Again: Color codes not supported. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Desle It would be better without the commands, and yes text is not italic. Also, would you please add color codes support?
I can't add colorsupport, too nooby : D, although it works, come on my test server if you'd like to take a look?
You can still use the same methods, just strip the colors of the lores / names: ChatColor.stripColor(<colored string here>)
[quote uid=87695 name="timtower" post=2140597]You can still use the same methods, just strip the colors of the lores / names: ChatColor.stripColor(<colored string here>)[/quote] Yea, he can just use colors in the lores and names, although it ignores them.. you don't need to have the colors. Since i know you're trying to make a darkRP server, i could make it so you can have a screen popup and you can select certain shipments? or i can implement a command like /shipment <name>, so you can use a plugin that will have like a gui where you can click on items, which triggers that command? I'll leave the command thing out for now.. tell me if you want something changed.. here it is; <Edit by Moderator: Redacted mediafire url> Config works like this: Code: Shipments: Bow Shipment: #This has to be the name of the item, in this case "Bow Shipment", color codes do not affect it. itemid: 41 #The Item's ID, Example: Gold block = 41. lore: Ships 5 bows #The first lore needs to match this in order for it to work. Color codes do not affect it. count: 5 #The number it ships, in this case 5. shipsitemid: 261 #The Item's ID it ships, Example: bow = 261. EDIT: Here's the version with the command /giveshipment <shipment> this is only ment for testing if you need it, you need to be op or have the permission "shipments.give". If you have a shipment that has a space in it's name, just use _ instead of that space in the command, and it'll replace it. <Edit by Moderator: Redacted mediafire url> P.S: THE NAMES AND LORES ARE CASE SENSITIVE! IN THE COMMAND, EVERYWHERE! <3 SCND EDIT:" This is the version with the command, but i made it so players can't break the shipment block & fixed something else. Just use this one, even if you don't want the command, since it asks for permissions/op. <Edit by Moderator: Redacted mediafire url> EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Desle I use BossShop for the GUI so i am fine. Oh and color codes would be really good. I will take a look at your plugin's SCND EDIT. EDIT: Dude... this plugin is EXACTLY what i was looking for!!!!!! Thank you so much, +1 to you! This is even better than i imagined! I love how the block turns into the piston on all sides. One more thing - Add CrackShot support so shipments can include Crackshot weapons This is very essential for me. CrackShot - http://dev.bukkit.org/bukkit-plugins/crackshot/ Hooking Into CrackShot - https://github.com/Shampaggon/CrackShot/wiki/Hooking-into-CrackShot Also, add one more thing in config: Make it so the name and lore of the item in the shipment can be edited too. This is really needed too.
Darn color codes.. =S Can't get it to work.. EDIT: Lores and names all done, now i'll implement the crackshot stuff.
Desle Thank you so much! For the color codes, maybe ask a smart person here like timtower to help you?
dw, already got it to work Just need to fix the error it gives me when trying to generate a gun.... =S The rest is finished. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
So sad .. It just doesn't want to work, the guns.. Here's the new configuration file so far: Code: Shipments: Bow Shipment: //NO COLORS HERE. block-id: 41 required-lore: Ships 5 bows //NO COLORS HERE. ships-item-amount: 5 ships-item-id: 261 ships-item-lore: '&6&lBow of the legends' //COLORS ALLOWED HERE. INCLUDE THE '' ships-item-name: '&4Godly Bow' //COLORS ALLOWED HERE. INCLUDE THE '' Gun Shipment: block-id: 41 required-lore: Ships 5 Guns ships-gun-amount: 5 ships-gun: Carbine
Desle You gotta get the guns working somehow! There should be colors, too. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Well, don't add colors there in the config, but in the name of the item there can be colors, it doesn't affect anything, it's just that you can't have the colors NEEDED.
Desle We had a conversation running already, post me the errors there and I will try to help you with it
Thanks a bunch ERROR: Code: [14:02:09 WARN]: [Shipments] Task #13 for Shipments v0.101 generated an exceptio n java.lang.NullPointerException at me.Desle.Shipments.Main$2.run(Main.java:135) ~[?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java :53) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHea rtbeat(CraftScheduler.java:345) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks ] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:5 87) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 50) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 45) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] What i've done in my code: & ofcourse i've put the plugin into my libraries. Code: import com.shampaggon.crackshot.CSUtility; //ofcourse stuf between eyre. public CSUtility cs; //And eyre. l.getWorld().dropItem(new Location(l.getWorld(), l.getX() + 0.5, l.getY() + 1.5, l.getZ() + 0.5) , cs.generateWeapon(gun)); I know i forgot something, just don't know how to fix it. EDIT: Ye.. about that.. posting in the conversation.. i guess i did it here.
Ok, almost done. Download: <Edit by Moderator: Redacted mediafire url> Without Crackshot it'll crash. Commands: /giveshipment <shipment> permission: shipments.give if there's a space in your shipment's name, just replace it with "_". Here's some stuff so you can make your own shipments in the configuration file: Code: Shipments: Bow Shipment: block-id: 138 required-lore: Ships 5 bows ships-item-id: 261 ships-item-amount: 5 ships-item-lore: '&6Bow of the legends' ships-item-name: '&4&lGodly Bow' ticks-between-delivery: 20 Arrow Shipment: block-id: 138 required-lore: Ships 32 Arrows ships-item-id: 262 ships-item-amount: 32 ticks-between-delivery: 10 Carbine Shipment: block-id: 138 required-lore: Ships 4 Carbines ships-gun-amount: 4 ships-gun: Carbine ticks-between-delivery: 20 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Desle Oh, you got it working? That's wonderful! I will check this plugin out! Desle When i put the Shipments.jar in my plugins it generates a Shipments folder that has config.yml which is empty for some reason. I'll just copy-paste the text from your code tags. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yep, i know, because if i auto-generated it, it wouldn't allow you to delete/remove default shipments you don't want. Can i join your server?
Desle I made modifications to the config and it just reset it to only have the bow shipment.. Do i have to use the ' ' around &6Gun Shipment in the shipment name though? PS: I haven't gotten a host yet so you can't join, sorry.
Arrr, erm, you're doing it wrong i think. Try without color codes once, and see what it does. dw, color codes do work. EDIT: Actually, post the config of yours.
PotatoTears Instead of...? =D Oh, didint see it because of the color.. Erm, wait.. where do you have that pasted? send me the config file. + how did you obtain the shipment? If possible, add me on skype.