#===============================================# # Add my Facebook: https://web.facebook.com/muhammadsaid.said.54 # Version: v1.0 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # On Script Load: wait 2 second broadcast "&7[&3&lTR&7-&bSilkSpawner&7] &aThanks for using this script." if folder "plugins/TR_SilkSpawner" doesn't exists: create folder "plugins/TR_SilkSpawner" create file "plugins/TR_SilkSpawner/config.yml" wf "Chance_Of_Silk_Power_I: '35'" to "plugins/TR_SilkSpawner/config.yml" wf "Chance_Of_Silk_Power_II: '65'" to "plugins/TR_SilkSpawner/config.yml" On Break: tool of the player is enchanted with silk touch 2: player don't have permission "trsilkspawner.use": send "&7[&3&lTR&7-&bSilkSpawner&7] &cYou don't have permission." stop set {_chance.%player%} to single value "Chance_Of_Silk_Power_II" get of "plugins/TheGuild/%{guilds.%player%}%/Stats.yml" parsed as number Chance Of {_chance.%player%}%: drop a spawner at event-block based on event-block stop send "&7[&3&lTR&7-&bSilkSpawner&7] &aYou failed to get the spawner" stop tool of the player is enchanted with silk touch 1: player don't have permission "trsilkspawner.use": send "&7[&3&lTR&7-&bSilkSpawner&7] &cYou don't have permission." stop set {_chance.%player%} to single value "Chance_Of_Silk_Power_I" get of "plugins/TheGuild/%{guilds.%player%}%/Stats.yml" parsed as number Chance Of {_chance.%player%}%: drop a spawner at event-block based on event-block stop send "&7[&3&lTR&7-&bSilkSpawner&7] &aYou failed to get the spawner" stop On Place Of Monster spawner: set spawner at location of event-block to its type #Copyright