Hey! I'm looking for a plugin that has a character that responds to various prompts. It would be like a ChatBot or a HelperBot or a GameBot. It would respond to various prompts by either executing a command or saying something in chat. You can name the Bot as well, and they chat like an ingame player. For example, if I said "Where can I buy VIP?" it would say "Go to <link> to buy VIP!". If would also detect similar messages that contain most of the words that are in the prompt and would respond the same way. Another possible prompt/response would involve commands. For example, if someone said: Teleport me to <player>, it would do /tp <prompt issuer> <the player>... All definable through the config file. Another possible feature could be ranks. For example, there'd be various permissions, and the Bot would respond to prompts if a player has the appropriate permission. For example, and Owner would have bot.owner, and a Member would have bot.member. The player with the Owner permission could say "Bot, Stop the server." and it would stop the server. But, if a Member said that, it would directly message the player saying they don't have permission for that prompt, as it requires a higher rank. If anyone thinks a plugin like this would be useful, let me know! If a plugin like this already exists, also let me know! Thanks!
ebear The commands part is extremely difficult. I do have something to answer questions, not perfect though. https://www.dropbox.com/s/291qe3egmjyride/AnswerLikeMe.jar
timtower Not sure if you know about this but here is the function to make players execute a command http://jd.bukkit.org/beta/apidocs/org/bukkit/entity/Player.html#performCommand(java.lang.String) If you already knew then I am sorry for thinking you didn't.
I believe you can have a user run a command by making them send a message, which would be the command. ex: Code:java player.sendMessage("/spawn"); I bet there are easier ways, this is just off the top of my head and simple.
Sending them the message of a command would not execute the command because it is sending a string to the player which is not making that player perform the command. Code:java public void example(Player p){ getServer().dispatchCommand(p, "commandHere"); //Or p.performCommand("commandHere"); }
It would just take a prompt and execute a command via the console... Nothing more xD Similar to the Referrals plugin.
Hmm, just create some keywords and a response if they match.. I could look into this if you are still looking for it.
Did that for messages, commands are different though with getting the arguments. But good luck if you are gonna make this.
timtower The command part would be impossible, as plugins add commands, and you cannot create stuff for each command. Maybe if in a config the plugin would listen for a string set by a user, and would execute a command based on that.?