Ir para conteúdo

TitansBattle - trave batalhas épicas! [SimpleClans/Factions]


GhostTheWolf

Posts Recomendados

 

PÁGINA OFICIAL, DE SUPORTE E DE DOWNLOAD:
 
 
First of all, this is not meant to minigame networks (maybe if you edit it).
I developed it to use in my survival server, this is a very famous plugin in Brazil. People know it as "Gladiador".

Note: the original plugin had only one game mode (GROUPS_REAL in this one). This one has 4 modes and supports Factions.

I hope you enjoy it :)
How does it work?

Before anything, if you wanna the original experience (Gladiador), change "ask-for-game-mode" to false and "default-game-mode" to "GROUPS_REAL".

You can start the games manually using commands or using the Scheduler feature (I explain a little bit about it in the config.yml below).

The four game modes:

GROUPS: Groups fight each other until only one group is alive. You must use SimpleClans or Factions.

FREEFORALL: Players fight each other until only one is standing. No need for SimpleClans or Factions in this mode.

REAL: Players must use their own items.

FUN: You set the battle kit.

For the winner group (or player) you can give money, command or item prizes.

The one who killed the most in the game gets join and quit messages (if enabled) and a cool prefix in Legendchat.

(The winners also get the prefix and the join/quit messages).

I found a bug, what do I do?

Report it in the Discussion section, please. Also paste your config files in pastebin.com.

How to install?

1. Put TitansBattle.jar in your plugins folder;

2. Set the destinations/prizes/kits for the games

3. Enjoy!

There are 4 modes, I want different messages!

OK! :)

Just go under "language" in the game file, and add the messages you want to be different from the rest.

Example:

language:

  starting_game: "&aThis message is specific for this game!"

Config

#This is a general configuration, for Game specific settings open the games folder
#Language used in plugin's message
language: en
#Send more output to the console?
debug: false
#Change the commands
commands:
    join: "join"
    exit: "exit"
    start: "start"
    cancel: "cancel"
    setdestination: "setdestination"
    setinventory: "setinventory"
    help: "help"
    reload: "reload"
    watch: "watch"
    winners: "winners"
#List here commands that the plugin will not block in battle phase
allowed_commands: ["/tb exit", "/tb winners"]
#On /tb winners, for instance, you have to insert the game mode as in: "/tb winners GROUPS_FUN", but, if you only use one of the 4 modes,
#you can set this as false and set the mode you use on "default-game-mode".
ask-for-game-mode: true
#Game modes: GROUPS_FUN | GROUPS_REAL | FREEFORALL_FUN | FREEFORALL_REAL
default-game-mode: "FREEFORALL_REAL"
#Destinations
destinations:
    general_exit:
 
#Will the game begin automatically? Which game? When?
#Game modes: GROUPS_FUN | GROUPS_REAL | FREEFORALL_FUN | FREEFORALL_REAL
#Day: 1 = Sunday
#In GROUPS, players must be part of a SimpleClans' Clan or a Factions' Faction
#There is not for that in FREEFORALL
#In REAL, players will use their own items in the game
#In FUN, the server will provide the temporary items
#Hour format: 0 to 24
#Minute format: 0 to 59
#If you want more schedulers, just follow the example below, copy them and change the number
scheduler:
  enabled: true
  schedulers:
    1:
      game: GROUPS_FUN
      day: 1
      hour: 18
      minute: 30
    2:
      game: FREEFORALL_REAL
      day: 2
      hour: 10
      minute: 30
      
#Data used by the plugin, don't edit it.
data:
    respawn: []
    clear_inv: []
A game config file

#Game announcements
announcements:
  #Before the game starts, how much messages will be sent to players and how much time between them?
  starting:
    times: 2
    interval: 30
  #Insert the interval of the message with informations of the game
  game_info:
    interval: 30
 
#Delete non participating groups
delete_groups: false#Minimum to start the game
minimum:
    players: 10
    groups: 2#The time to finish the game if no one wins (in seconds)
expiration_time: 3600#The time for the players to gegt ready
preparation_time: 30#If join/quit messages are on and the player is both killer and winner, choose wich one will be used
join_or_quit_message_priority: KILLER #Available option: KILLER | WINNER#Should join/quit messages be sent when a winner/killer joins the server?
winner-quit-message: truewinner-join-message: truekiller-quit-message: truekiller-join-message: true#Prizes for the winners
prizes:
    #If player's inventory is full, this is the frequency in seconds to ask to clear the inventory
    items_give_interval: 30
    #If true, leaders will receive the same prizes as defined for members
    treat_leaders_as_members: false
    leaders:
        items:
            enabled: false
            item_list:
        commands:
            enabled: false
            some_number:
                value: 100.0
                divide: true
            command_list: ["give %player% diamond_sword %some_number%", "eco give %player% %some_number%"]
        money:
            enabled: false
            divide: false
            amount: 10000.0
    members:
        items:
            enabled: false
            item_list:
        commands:
            enabled: false
            some_number:
                value: 10
                divide: true
            command_list: ["give %player% diamond_sword %some_number%", "eco give %player% %some_number%"]
        money:
            enabled: false
            divide: false
            amount: 10000.0
        
#Destinations used by the plugin
destinations:
    exit:
    lobby:
    watchroom:
    arena:  
 
#Hooks configuration
hooks:
  #If you use Legendchat, add {tb_groupsreal_killer} and {tb_groupsreal_winner} in its chat format settings
  legendchat:
      killer:
          prefix: "[Killer] "
      winner:
          prefix: "[Winner] "
    
#Data used by the plugin, don't edit it.
data:
    killer:
    winners: []
    winner_group: ""#Use this to set a specific message for this game mode.
language:
Permissions

- titansbattle.admin - allow the use of all commands

- titansbattle.player - allows the use of player commands

- titansbattle.<commandname>- allow the use of /tb <commandname>

Commands

- /tb help - shows this help

- /tb join - joins the game

- /tb exit - leaves the lobby/arena

- /tb winners <GAME MODE> - shows the winners list

- /tb watch - teleports to the watcher's room

- /tb start <GAME MODE> - starts the game

- /tb cancel - cancels the game

- /tb reload - reloads the config and language

- /tb setdestination <EXIT | ARENA | LOBBY | WATCHROOM> <GAME MODE> - sets your current location to a game destination

- /tb setinventory kit <GROUPS_FUN | FREEFORALL_FUN> - sets your inventory as the game kit

- /tb setinventory prize <LEADERS | MEMBERS> <GAME MODE> - sets your inventory as the game prize

Dependencies

- Factions or SimpleClans (optional, required for group based games)

- Vault and Economy plugin (optional, required for money prizes)

- Legendchat (optional)

To-do

- Add the tab complete feature

- Store data using MySQL or SQLite

- Add bar boss messages

- Send clickable messages

- Add title messages

- Disable Faction's "You are in truce" message

- Add spectator mode

- Document plugin's methods

 

Muito bom o pl, estava procurando um desse faz tempo!

Link para o comentário
Compartilhar em outros sites

Atualizado:

 

- Added support for MySQL and SQLite

- Ranking command added

- Winners command improved

- Help command improved

 

Atualizado para a versão 3.0.1:

Fixed "you have left" message being sent even on error
Fixed NPE when a player dies by himself
Fixed inventory has items check
Fixed "invalid destination" message showing on GeneralExit
Fixed error on loading warriors when group is null
Editado por GhostTheWolf
Link para o comentário
Compartilhar em outros sites

ANÁLISE DE INATIVIDADE
 

Este tópico foi automaticamente arquivado devido à inatividade. Para manter a organização e fluidez das discussões na comunidade, tópicos que permanecem sem novas interações por um período prolongado são fechados automaticamente.
 

Se houver interesse em retomar o conteúdo, sinta-se à vontade para criar um novo tópico ou entre em contato com a equipe da comunidade para reabrir este tópico.


Equipe de Moderação
Gamer's Board
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...