Add karambwans and wine to cooking plugin

Change "You cook the" to just "You cook" to potentially cover more food than
just karambwans. Also add test for various cooking messages.

Co-authored-by: MonsterxSync <william53142@gmail.com>
This commit is contained in:
Adam
2019-01-04 22:33:43 -05:00
parent 9c3b0e038b
commit e48b5acb07
2 changed files with 96 additions and 1 deletions

View File

@@ -109,7 +109,12 @@ public class CookingPlugin extends Plugin
final String message = event.getMessage();
if (message.startsWith("You successfully cook") || message.startsWith("You successfully bake") || message.startsWith("You manage to cook") || message.startsWith("You roast a"))
if (message.startsWith("You successfully cook")
|| message.startsWith("You successfully bake")
|| message.startsWith("You manage to cook")
|| message.startsWith("You roast a")
|| message.startsWith("You cook")
|| message.startsWith("You squeeze the grapes into the jug"))
{
if (session == null)
{