BurkenXmas 1.0

Run a command each day for christmas on player request

  1. vajje
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Languages Supported:
    Swedish, French, English Pirate, English Lolcat
    This plugin allows your players to run a command each day during the month of december. This can be used for example if you are giving out keys for and advent calendar during christmas. This is what we use it for on our server.

    Basically you can setup which command that will run once the player executes the command /jul (in swedish) or /xmas (in english). The server will then run the configured command to perhaps give the user a key.

    There are two variables that you can use in the command configuration. {PLAYER} and {DAY} which will represent the player name and the current day number from 1 to 31.

    The plugin uses a MySQL database for storage to keep track of which players have run the command each day. Since they can only run it once a day.

    There are also several language configuration files for different locales.
    These will display text in the players local if setup, defaulting to english if the player don't have any of the used locales that the plugin supports.

    You can add more locales by copying the messages_en_us.yml file to a new locale and translating the text inside it. Don't forget to add this locale in config.yml as well.

    Installation instructions:

    1. Put the plugin jar in your plugins directory.
    2. Restart the server or load the plugin with your plugin manager.
    3. Change the settings in config.yml to your liking.
    4. Remember to setup a MySQL-database in the config.yml or the plugin will not work.
    5. Create the database and import the schema below for it to work, the plugin will not do this for you.
    6. Restart the server or reload the plugin with your plugin manager.
    Permissions:

    There is only one permission: burken.xmas
    This is also a default permission for everyone.
    This gives players access to the two commands /jul and /xmas.

    SQL-schema used:

    CREATE TABLE `xmascal` (
    `id` bigint(20) NOT NULL AUTO_INCREMENT,
    `playername` varchar(100) NOT NULL,
    `lastopen` datetime NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `playername` (`playername`),
    KEY `id` (`id`),
    KEY `playername_2` (`playername`)
    );