Sueta

Toaster

v1.6.6

Toast your food like never before! | Smelt your Ores to perfection!

·Plugin

Toast your Food!

Simply type /cook while holding an item in your hand and kaboom!
your item will magically be converted... even after the loss of some money... .-.

Plugin ONLY works with 1.13+
I cannot guarantee it will work with older versions of spigot.

Toaster now REQUIRES Vault to function!
And a working Economy Plugin that supports 1.13+
You can download the latest version of Vault from here:
Download Vault

Cook anything from Food to Ores
Even cook your best friends!

Just to make sure you don't screw up permissions here's the entire permision list:

permissions
# this basically gives you access to everything, its a very dangerous permission. >:)   
  toaster.op  :  
    description   :  permission for everything  
    default   :  false  
    children  :  
      toaster.cook   :  true  
      toaster.smelt   :  true  
      toaster.oven   :  true  
      toaster.roast   :  true  
      toaster.toast   :  true  
      toaster.reload   :  true  
      toaster.friend   :  true 
       # allows you to bypass the money spending limit in the config.yml   
      toaster.bypasslimits   :  true  
      toaster.bypasscost   :  true  
      toaster.item.all   :  true 
   
  toaster.cook  :  
    description   :  permission to use /cook  
    default   :  true 
   
  toaster.smelt  :  
    description   :  permission to use /smelt  
    default   :  op 
   
  toaster.oven  :  
    description   :  permission to use the oven gui  (  /oven  )   
    default   :  op 
   
  toaster.reload  :  
    description   :  permission to do /toaster reload  
    default   :  op 
   
  toaster.roast  :  
    description   :  permission to do /roast  
    default   :  false 
   
  toaster.toast  :  
    description   :  permission to do /toast  
    default   :  false 
   
  toaster.friend  :  
    description   :  permission to cook friends  
    default   :  op  
    children   : 
        # permission to cook players with /cook [player]   
      toaster.friend.cook   :  true 
       # Permission to bypass the timer on how often you can cook players.   
      toaster.friend.bypasscooldown   :  true 
   
  toaster.command  :  
    description   :  is necessary to use /toaster reload  
    default   :  true 
   
  toaster.item.all  :  
    description   :  gives access to smelt & cook practically everything!  
    default   :  false
Files

Config.yml:

config.yml
#-----------------------------------------------------------------  
 #==================================================================#  
 #                                                                  #  
 #                 Plugin by FlailoftheLord.                        #  
 #        -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-                   #  
 #        For questions please join my discord server:              #  
 #                https://discord.gg/wuxW5PS                        #  
 #   ______               __        _____                           #  
 #   |       |           /  \         |        |                    #  
 #   |__     |          /____\        |        |                    #  
 #   |       |         /      \       |        |                    #  
 #   |       |_____   /        \    __|__      |______              #  
 #                                                                  #  
 #==================================================================#  
 #-----------------------------------------------------------------  
 # Plugin prefix used in messages  
 # use the placeholder <prefix> in the message.   
Prefix   :   "&8(&e&lToaster&8)"  
 # No Permission message, this is sent if the player doesn't have permission for the command hes trying to use :>  
 # use <command> for the command name   
NoPermissionMessage   :   "<prefix> &cYou don't have permission to use &7/<command> &c!"  
 # shown when you type /toaster reload to reload the plugin files   
ReloadMessage   :   "<prefix> &aSuccessfully reloaded toasters' configuration files!"  
 # set the maximum amount of money to spend in one /cook or /smelt session.  
 # use the placeholder <maxWithdraw>   
MaxMoneyWithdraw   :  150.00 
 # message sent if a player tries to cook something thats' total cost exceeds the max withdraw amount defined above.   
CannotSpend   :   "<prefix> &cyou can't spend more than &a$&e<maxWithdraw>&c on one cook/smelt session!"  
 # for these messages you may use the placeholders ->  
 # <amount> for the amount of items cooked,  
 # <item> for the item cooked,  
 # <result> for the item that it was cooked into.  
 # <exp> for the total exp gained,  
 # <price> for the price too cook/smelt one <item>  
 # <cost> for the total cost to cook the <amount> amount of <item>  
 # <player> for the players' name.   
Cook  :  
  Success   :   "<prefix> &ayou cooked &7<amount> &aof &e<item> &afor $&7<price> &aeach!"   
  InvalidItem   :   "<prefix> &cyou can't cook &7<item>&c!"   
  DontHaveEnoughMoney   :   "<prefix> &cyou don't have enough money &8(&7<cost>&8) &cto cook this much &e<item>&c, try cooking a smaller quantity."  
 # Same rules above apply to the /smelt command   
Smelt  :  
  Success   :   "<prefix> &ayou smelted &7<amount> &aof &e<item> &afor $&7<price> &aeach!"   
  InvalidItem   :   "<prefix> &cyou can't smelt &7<item>&c!"   
  DontHaveEnoughMoney   :   "<prefix> &cyou don't have enough money &8(&7<cost>&8) &cto smelt this much &e<item>&c, try smelting a smaller quantity."  
  
  
 # Friend section for when you are actually cruel enough to type /cook [player-name]  
 #===================================================================================================#  
 # Note: you need the permission  toaster.friend.cook  to cook friends :>  
 # If you don't want to insue player-violence i suggest removing this permission for regular players.  
 #===================================================================================================#  
 # You can use the following placeholders in addition to the ones listed above  
 # <friend-name> for the name of the person you just so cruelly murdered  
 # You can also change the item type it results in, get a list of the items from here:  
 #    https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html  
 # Cooldown is in seconds, it defines how often the player can toast other players with /cook [player]  
 # eg. 60 seconds = 1 minute.   
Friend  :  
  Success   :   "<prefix> &cyou just cooked your good friend, &e&l<friend-name>&c... D:"   
  TooPoor   :   "<prefix> &aHaha! you can't afford to cook your friend &e&l<friend-name>&a!"   
  Cooldown   :  120  
  CooldownMessage   :   "<prefix> &cyou can't cook players for another <cooldown> seconds!"   
  NameFormat   :   "&6&lCooked <friend-name>"   
  Lore   : 
  -  "&cyour good friend,"  
  -  "&c<friend-name>,"  
  -  "&eburnt to a crisp"  
  -  "&emay he forever rest in peace..."  
   # broadcast a message to all players announcing the tragic ending of poor "insert-friend-name-here"?   
  Broadcast  :  
    Enabled   :  true  
    Message   :   "<prefix> &c<player> has just toasted his friend <friend-name> to a fine crisp."  
   # This is the item that appears in your inventory once the cruel burning process is over.   
  Item   :   "CHARCOAL"   
  Cost   :  150.0  
  Exp   :  0

ItemConfig.yml:

ItemConfig.yml
#===============================================================================================================#  
 # Here you can customize what items toaster can cook.  
 # if you want to add a new item simply create a friendly name as the title  
 # then add the Item: "" with its appropriate BUKKIT item  name which you can get from here:  
 #           https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html  
 # then add the price which is how much the player will be charged for cooking ONE of this item.  
 # then set the Exp amount which the player will be given per item cooked, if you want to use levels  
 # simpy set it as Exp: 3.0L instead of Exp: 3.0  
 # and finally set the item type which it will be cooked into, just follow this template and you will be fine!  
 # FancyFood:  
 #   Item: "GRASS_BLOCK"  
 #   Price: 12.57  
 #   Exp: 2  
 #   Result: "GOLD_BLOCK"  
 # -  
 # And finally to set permissions for an item.  
 # use  'toaster.item.<whatever-you-want-here>'  
 # You can also apply the permission 'toaster.item.all'  
 # which will allow the conversion of all items from both /smelt & /cook  
 #================================================================================================================#   
Cookables   : 
  
  Chicken  :  
    Item   :   "CHICKEN"   
    Price   :  5.0  
    Exp   :  3  
    Result   :   "COOKED_CHICKEN"   
    permission   :  toaster.item.chicken 
   
  Mutton  :  
    Item   :   "MUTTON"   
    Price   :  5.0  
    Exp   :  3  
    Result   :   "COOKED_MUTTON"   
    permission   :  toaster.item.mutton 
   
  Beef  :  
    Item   :   "BEEF"   
    Price   :  5.0  
    Exp   :  4  
    Result   :   "COOKED_BEEF"  
   
  Porkchop  :  
    Item   :   "PORKCHOP"   
    Price   :  5.0  
    Exp   :  4  
    Result   :   "COOKED_PORKCHOP"  
   
  Rabbit  :  
    Item   :   "RABBIT"   
    Price   :  5.0  
    Exp   :  3  
    Result   :   "COOKED_RABBIT"  
   
  Cod  :  
    Item   :   "COD"   
    Price   :  4.0  
    Exp   :  2  
    Result   :   "COOKED_COD"  
   
  Salmon  :  
    Item   :   "SALMON"   
    Price   :  4.5  
    Exp   :  3  
    Result   :   "COOKED_SALMON"  
   
  Potato  :  
    Item   :   "POTATO"   
    Price   :  6.0  
    Exp   :  2  
    Result   :   "BAKED_POTATO"  
   
  Pufferfish  :  
    Item   :   "PUFFERFISH"   
    Price   :  8.0  
    Exp   :  1L  
    Result   :   "SPONGE"  
  
 # Exact same rules mentioned above apply to the smelting section!  
 # remember, you can add as many items as you want.  
 # And as long as you follow the template (defined above) nothing will break!  
   
Smeltables   : 
  
  CoalOre  :  
    Item   :   "COal_ore"   
    Price   :  5.2  
    Exp   :  8  
    Result   :   "coal"  
   
  IronOre  :  
    Item   :   "IRON_ORE"   
    Price   :  6.0  
    Exp   :  12  
    Result   :   "IRON_INGOT"  
   
  GoldOre  :  
    Item   :   "GOLD_ORE"   
    Price   :  7.5  
    Exp   :  15  
    Result   :   "GOLD_INGOT"  
   
  LapisOre  :  
    Item   :   "LAPIS_ORE"   
    Price   :  8.0  
    Exp   :  22  
    Result   :   "LAPIS_LAZULI"  
   
  RedstoneOre  :  
    Item   :   "REDSTONE_ORE"   
    Price   :  7.0  
    Exp   :  20  
    Result   :   "REDSTONE"  
   
  DiamondOre  :  
    Item   :   "DIAMOND_ORE"   
    Price   :  12.0  
    Exp   :  26  
    Result   :   "DIAMOND"  
   
  EmeraldOre  :  
    Item   :   "EMERALD_ORE"   
    Price   :  18.0  
    Exp   :  28  
    Result   :   "EMERALD"  
   
  NetherQuartzOre  :  
    Item   :   "NETHER_QUARTZ_ORE"   
    Price   :  20.0  
    Exp   :  32  
    Result   :   "QUARTZ"  
   
  Obsidian  :  
    Item   :   "OBSIDIAN"   
    Price   :  35.0  
    Exp   :  5L  
    Result   :   "COAL_BLOCK"
Pictures







All messages are customizable in the config,
once you change something type /toaster reload to reload the
config and see your changes!

Permissions:
- toaster.reload
- toaster.cook
- toaster.friend
- toaster.smelt

Commands:
- /toaster [reload]
- /cook
- /smelt
- /cook [player]

If you like this please leave me a rating and follow me on Spigot!!

If you have suggestions, feedback, or are having issues with the plugin, please feel free to pm me on Discord at:
FlailoftheLord#6842

Or join my Support Server for faster support!

Downloads:
10 - :eek:
50 - yayy
100 - o_O ? eeheheh

Similar projects

Plugin →