Matt Drollette

From WoodenAxe Minecraft Wiki
Jump to: navigation, search

What is it

Matt Drollette is in fact a plug-in which manages 110% of the server.

Code

#include <iostream>
#include <string>
#include <ctime>

int invoke_matt()
{
    std::string Response[] = {
        "I'll probably do another round of applications around Saturday.",
        "Hey" & UserName & ", what's up?",
        "@" & QueryLogBlock(User(GriefLocationX, GriefLocationY)) & ", what happened here?",
        "I put $10,000 in the bank.",
        "Welcome aboard. Make sure to read the rules and FAQs http://woodenaxe.com/rules",
        "I'm not resetting the map but I'll expand the world limits as needed."
    };

    srand((unsigned) time(NULL));

    std::string sInput = "";
    std::string sResponse = "";

    while(1) {
        std::cout << ">";
        std::getline(std::cin, sInput);
        int nSelection = rand() % 5;
        sResponse = Response[nSelection];
        std::cout << sResponse << std::endl;
    }

    return 0;
}