SlimeScrap
Did you ever wish, that you could deconstruct your useless machines and put those components in something useful? If you do, then this plugin is for you! Simple craft a Salvager and Right-Click it on any placed machine, it will magically disappear and drop the ingredients used to make it.
CS-CoreLib and Slimefun must be installed for this plugin to work!
Example Config
options: auto-update: true //Enable this if you want the plugin to be auto-updated. items: ENHANCED_FURNACE: true //Disable this if you do not want this item to be salvageable. CARBONADO_EDGED_CAPACITOR: true SOLAR_GENERATOR: true SOLAR_GENERATOR_2: true SOLAR_GENERATOR_3: true SOLAR_GENERATOR_4: true CHARGING_BENCH: true ELECTRIC_FURNACE: true
Permissions
This plugin uses a very simple permission system. For example, say you want a player to be able to salvage a Solar Generator. Put in his permission node (or group) salvage.SOLAR_GENERATOR. If you want your players to be able to be able to salvage all the machines, simply put salvage.*
Auto-Updater and Metrics
All my Plugins are using an Auto-Updater to make sure, you're always using the latest and hopefully the most bug-free version of my Plugin. If you don't want this Plugin to be auto-updated, you can turn it off in the config file at "options -> auto-update: true/false"
They also use a Metrics-System which collects the following Information:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Credits for the idea go to Jabberwockie666
Hello, I have some issue on the newest Spigot version, 1.12.2. Can you fix it please?
[21:59:49] [Server thread/WARN]: [SlimeScrap] Task #133 for SlimeScrap v1.2.2 generated an exception java.lang.NullPointerException: null at me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config.getKeys(Config.java:474) ~[?:?] at me.john000708.SlimeScrap.SlimeScrap$2.run(SlimeScrap.java:85) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[server.jar:git-Spigot-7754231-9a1f5ee] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [server.jar:git-Spigot-7754231-9a1f5ee] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739) [server.jar:git-Spigot-7754231-9a1f5ee] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [server.jar:git-Spigot-7754231-9a1f5ee] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [server.jar:git-Spigot-7754231-9a1f5ee] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [server.jar:git-Spigot-7754231-9a1f5ee] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
@umarku
Sorry about that, I just posted a new version which fixes the recipe, and a couple other stuff.
It seem like the recipe for crafting the scrapping tool does not work, i and many of my players have tried it with no luck. I have tried it in a normal crafting table and even the enhanced crafting table just to see, with nothing showing up. Hope you can fix this issue as my players love the concept of it, and are looking forward to using it.
O/ Hi Ok, new test and I got individual permissions for salvage.MACHINE_NAME_# to work VERY nicely with 1.2.1 but it still ignores salvage.* This has been an issue for some plugins and Group Manager for eons. Sometimes .* type permissions are ignored by Group Manager. Guess what I'm using ey. :))) Well it works now. The job for mechanic should also work perfectly now also. Also the pick is no longer white name italic "&salvager" and may have been some glitchty twitchy thing on my server yet undiscovered causing it. Seems fixed with latest.
Brilliant, John. Very much appreciated, thank you! Sorry for dragging you into the salvager idea :) I'm sure folks will love the option. Good job, sir.
<<reply 2878085>>
I will check it immediately. 1.2.1 trying now.
I use a remapped group manager for essentialsX
It dont appear to have any problems applying permissions.
Somewhat allergic to any permissions manager accept GroupManager :D
I will give PermissionsX or something a trial though sooner or later.
It might be a good idea to keep it for OP for now anyway. Even if 1.2.1 does apply
the stated salvage.* permission. Dynmap is getting busy with it ATM and I will wait untill it's finished before a restart to install 1.2.1. Thanks for the updates :)
That map's chunk immage tearing >.> fear and tremble before it's uglyness!
Only chance of happening if restart/massive load while doing a Dynmap render.
@Jabberwockie666
Not having that permissions problem, just as a test, could you maybe try a different permissions manager, and tell me if it is still happening? Also, the Salvager nametag has been fixed in the latest version. I also added a new option, which allows you to disable the permission system.
@Jabberwockie666
I really appreciate your kind words :) Any suggestions are welcome, even small ones!
Cool! Thank you =)
I am very ready to wipe miles of code for spells
for a John SF addon any day of the week. NP GG!!!
You are the man, John. The man.
**Awesome!**
For now, using jobs to unlock ALL the valid salvages.
http://pastebin.com/DJkrxu7T
The above job is huge. Might just make it they
need level 30+ for the salvage.* type permission.
Remove my custom smelts.
List of perms for actually salvageable stuff
that is not food. (remove fuel bucket /doh)
http://pastebin.com/aLbTt6HS
ONLY WORKS FOR OP FOR US AT THE MOMENT. PERMISSIONS? Y U NO?!
SlimeScrap 1.0 - (Color tag for SlimeScrap 1.1 pick broke after update.
Has a & missing color tag white name prefix for us. I will check it more closely later.
I have no idea what's causing it but I doubt it's the addon. If you also get this, let me know please :D
with SlimeScrap 1.1 SF guide/cheat gives and shows a White italic name "&Salvager"
We use 17th Sept. CSCorelib/Slimefun release.
Individual machines or salvage.* permissions do NOT work for us.
GroupManager version 2.1.31 (Phoenix/Remapped)
EssentialsX, latest. Paper 1.10.2 v 887, Latest CSCoreLib/Slimefun 17th Spet.
/sf research playername all
groups:
Visitor:
default: true
permissions:
- salvage.*
Visitors get. "You do not have permission to scrap"
users:
UUU-UUU-IIII-DDDD:
lastname: PLAYERNAME
group: Visitor
subgroups: []
permissions:
- salvage.*
Individual players get. "You do not have permission to scrap"
Jobs. (reborn)
The Artificer is lvl 6.
Artificer:
fullname: Artificer
shortname: ●
description: '§eSpells §a+ §eExp §a+ §eMad SF skills.'
ChatColour: AQUA
chat-display: none
leveling-progression-equation: 100*((1.10+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((1.02)^(joblevel-1))
experience-progression-equation: baseexperience*((1.04)^(joblevel-1))
permissions:
magicspells.grant.ScrapperPick
value: true
level: 1
salvage.CHEESE
value: true
level: 1
salvage.BUTTER
value: true
level: 1
Artificers get "You do not have permission to scrap BUTTER.. etc"
19.10 11:38:30 [Server] INFO Opped playername
They can now instantly salvage any item.
Jobs happily grants them the spells and other perms though.
So it's not just group manager failing to apply salvage. permissions?
There are no console errors during failed salvage events or issues initialising
any of Slimefun and addons during server startup. I'm guessing I broke it somehow.
No.. I did not poke about in the jar xD haha. Truly though. No idea why perms fail.
After refresh upload the groups / users / jobs config /jobs reload /manload /mansave
a restart and check the configs have not reverted, same. No permissions applied.
/plugins/SlimeScrap/config.yml all is set to : true
This ONLY works for OP atm on my test behemoth server.
Absolutely no idea why. >.> Is still an awesome
thing to do for players at request as an OP. I cannot shift this
over to my mrs' main until permissions work though. >.>
As for why it dont respect permissions on my test server?
I just.. dunno! /shrug If you have the same issue
please do say. For now, OP use only means bye bye Artificer job xD
Np, I made jobs grant crazy wild amounts of interesting stuff already.
Take care. ♥