[RandomBonus] Bonus for the casual player on the server

Discussion in 'Plugin Requests' started by Roix, May 31, 2016.

Thread Status:
Not open for further replies.
  1. Offline


    Welcome everyone! I have a proposal for creating a new plugin. So, I'll start.

    Plugin category: FUN.
    Suggested name: RandomBonus.
    What I want: I need a plugin that will give a bonus random online player on the server. In the plugin configuration specifies the time interval (e.g. 30 minutes). Every 30 minutes are all players who are currently online, among them is selected at random, who receives a bonus from the server.

    Implementation and configuration:
    1. The ability to customize the automatic issuing of bonus. For example, interval: 30 (and 30 is minute).
    2. The ability to customize the results of the bonus only if the server has more than N players online (if the server <N people online, nothing happens).
    As well as a number of bonuses that will be implemented among the players, depending on number of players online. For example, >10 players – 1 casual player and the granting of bonus; >20 players – 2 random player and the issuance of bonus etc.
    3. Support for selecting a random bonus from the list (for example, money, blocks, enchanted things, any command execution on behalf of the server).
    4. Alert all players about who receives a bonus from the server.
    5. Support color codes, NBT-data.

    An example of a possible configuration:

    min-players: 10 //The minimum number of playersonlineto work
    prefix: ‘&gray[&greenRandomBonus&gray]’ //Change the prefix that will be displayed in messages from the plugin.
    bonus: //The list of bonuses
           min-players: 10
           max-players: 19
           count-players: 1 //The number of players who will get a bonus this time
           rewards: //Possible rewards. Choose one of them.
            - ‘reward: (/eco give {RandomOnlinePlayer} 100), bcast: (‘&greenPlayer &yellow{RandomOnlinePlayer} &greengets a bonus 100 coins’)’
            - ‘reward: (/give {RandomOnlinePlayer} stone 16), bcast: (‘&greenPlayer &yellow{RandomOnlinePlayer} &greengets a bonus Stone х16’)’
            - ‘other_reward..’
           min-players: 20
           max-players: 39
           count-players: 2 //The number of players who will get a bonus this time
           rewards: //Possible rewards. Choose one of them.
            - ‘reward: (/eco give {RadnomOnlinePlayer} 1000), bcast: (‘&greenPlayer &yellow{RandomOnlinePlayer} &greengets a bonus 1000 coins’)’
            - ‘reward: (/give {RandomOnlinePlayer} sword sharpness:5 Name:&yellowSword_оf_&blueGOD), bcast: (‘&greenPlayer &yellow{RandomOnlinePlayer} &greengets a bonus &yellowSword of &blueGOD’)’
       other_example: //Other options bonuses
    Ideas for commands:
    /randombonus or /rb - key commands plugin
    help - the available commands
    reload - the reloading configuration
    info - information about available bonuses
    time - the time remaining until the next bonus
    now - forced the results of a random bonus to the player (players)

    Ideas for permissions:
    randombonus.help, randombonus.reload, randombonus.info, randombonus.time, randombonus.now - Each permission is responsible for a specific command.

    When I'd like it by: By the end of July.
    In my opinion, the implementation of the plugin for more experienced developers will be very easy.

    If you have any questions, leave them below. I'm willing to go for further dialog because I really need this plugin.

    P.S. If you are interested in my idea and want to develop it further, then please let me know.
    P.S.S. If the text has mistakes in terms of grammar, please understand and forgive.
    Last edited: Jun 26, 2016
  2. Offline

    I Al Istannen

    "Support color codes, NBT-data."
    Yet you only execute a command as reward. What do you want now? Directly giving the item or just executing a command. The latter would be easier to implement, as you don't need to bother about anything at all, just executing the command.

    "info - information about available bonuses"
    How would that work or look like? How should the plugin know what a command you entered does?

    ", bcast" at your rewards. What does this do? Could you explain the structure a bit further?
  3. Offline


    @I Al Istannen
    Well, simply run the command.

    The plugin must call this command to show a list with the names of the bonuses, minimum and maximum number of players for their work, as well as the number of players who will receive the award in each case.

    "bcast" contains the text that will be displayed to all players in chat on behalf of the plugin upon issuance of the bonus.
    For example, [RandomBonus] Player Roix gets a bonus 100 coins.
  4. Offline

    I Al Istannen

    No problem
    What? How should that work. I would guess it is pretty much impossible.

    Any other things like this?

    And just to clarify it, I am not making this plugin. Just asking questions others wanting to do it might need.
  5. Offline


    @I Al Istannen
    Screenshot with sample output inside (open)


    If I understand correctly your question, the answer is under the spoiler
    Click me! (open)

    P.S. Chat messages, which are presented on the screenshots made using the plugin VariableTriggers. Unfortunately, his technical means are not enough in order to write a script that will satisfy my needs. That's why I asked for Bukkit.org with a request to develop a separate plugin.
  6. Offline


    The topic up. The theme is still relevant, the plugin is not yet developed.
Thread Status:
Not open for further replies.

Share This Page