Orendigo

Connect4Config

Jun 6th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 16.26 KB | None | 0 0
  1. #
  2. #   ____                          __ _            
  3. #  / __ \ _____ ___   ____   ____/ /(_)____ _ ____
  4. # / / / // ___// _ \ / __ \ / __  // // __ `// __ \
  5. #/ /_/ // /   /  __// / / // /_/ // // /_/ // /_/ /
  6. #\____//_/    \___//_/ /_/ \__,_//_/ \__, / \____/
  7. #                                   /____/        
  8. #                                       ohhiya
  9. #                    V 3.2
  10. #
  11. #Also, I'm going to stress the importance of adding an independent CSV file Database for the script.
  12. #Here's the format I use in my config.sk located in Skript's directory:
  13. #
  14. #   Connect4:
  15. #       type: CSV
  16. #       pattern: ~connect4.*
  17. #       file: ./plugins/Skript/databases/Connect4.csv
  18. #       backup interval: 2 hours
  19. #
  20. #This is just the format I use, you can change it to fit your need; however, the 'pattern' section must be kept the same!
  21. #
  22. #Placeholders:
  23. #Varying:
  24. #   %PREFIX% = The segment of text that predicates all other text.
  25. #   %TARGET% = The target of the command, whether it be an invitation, or spectating.
  26. #   %PLAYER% = The command executer.
  27. #   %WINNER% = The winner of the game.
  28. #   %LOSER% = The Loser of the game.
  29. #   %OPPONENT% = The player's opponent.
  30. #Pausing:
  31. #   %PAUSEAMOUNT% = The amount of pauses a player has left.
  32. #Statistics:
  33. #   %STAT% = The setting statistic argument.
  34. #   %INPUT$ = The setting statistic input argument.
  35. #Most placeholders aren't used unless specified in examples below!
  36.  
  37. Connect4:
  38.   Database:
  39.     Enabled: false
  40.     #Username: If you are using a database, you must specificity these values at the beginning of the actual script!
  41.     #Password: Just open Connect4.sk in a text editor, you should see the database options near the top.
  42.     #Port: You may need to uncomment the 'database options' and a few other lines in Connect4.sk!
  43.     #Database:
  44.     #Table:
  45.   Statistics:
  46.    #Should stats be enabled? Refer to the database message at the top of this file.
  47.     Enabled: true
  48.     #Should mid-game quits be considered loses or forfeits?
  49.     Forfeits: true
  50.     #Should players receive statistical increments for playing with bots?
  51.     #I have this as an option to prevent stat farming.
  52.     StatsFromBots: false
  53.   #Should sounds be enabled?  Unfortunately I can't specify what sounds to use in the config and parse it as a sound;
  54.   #however, YOU can change the sound via a text editor! Lines 243, 421, 422, 471, and 536 control sounds!
  55.   #Just replace the sounds with something from here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
  56.   Sounds: true
  57.   #Should the name of the player's inventory change with each turn?  If you disabled this, TitleTurn and WaitingTitle
  58.   #NEED to be edited so that they both include the %TARGET% placeholder!!!
  59.   TitleTurns: true
  60.   Animations:
  61.    #Should the game tiles have a 'sliding down' animation?
  62.     Moves: true
  63.     #How many ticks should pass in-between each frame of movement during a move? Yes, you need the 'ticks' at the end.
  64.     MovesTicks: 3 ticks
  65.     #Should the winning move display an animate flicker?
  66.     Winning: true
  67.     #How many ticks should pass in-between each frame during the 'Winning Move' animation? Yes, you need the 'ticks' at the end.
  68.     WinningTicks: 10 ticks
  69.   GUI:
  70.     Game:
  71.       Title:
  72.        #The title of the game's GUI menu when it is the player's turn. Available placeholders: %PLAYER%, %TARGET%
  73.         #If you disabled TitleTurns above, TitleTurn and WaitingTitle NEED to be edited so that they both include the %TARGET% placeholder!!!
  74.         TitleTurn: "&1It's Your Turn!"
  75.         #The title of the game's GUI menu when it is the opponent's turn. Available placeholders: %PLAYER%, %TARGET%
  76.         #If you disabled TitleTurns above, TitleTurn and WaitingTitle NEED to be edited so that they both include the %TARGET% placeholder!!!
  77.         WaitingTitle: "&1Waiting on %TARGET%..."
  78.         #The title of the game's GUI menu while spectating someone. Available placeholders: %TARGET%, %OPPONENT%
  79.         SpectatorTitle: "&1%TARGET% vs %OPPONENT%"
  80.         #The title of the game's GUI menu when someone has won. Available placeholders: %WINNER%, %LOSER%
  81.         WinningTitle: "&1%WINNER% has Won!"
  82.         #The title of the game's GUI when the game ends in a draw.
  83.         DrawTitle: "&1Draw!"
  84.         #The opponent's title when the player pauses a game. %PLAYER% is the pauser.
  85.         PauseTitle: "&1%PLAYER% has paused..."
  86.       #what item should the background compose of?
  87.       BackgroundBlock: light gray stained glass pane
  88.       #What item should serve as the divider between the game and informational items in the menu?
  89.       DividerBlock: black stained glass pane
  90.       #What item should represent the slot next to Player1's head in the game GUI?
  91.       DividerBlockPlayer1: sand
  92.       #What item should represent the slot next to Player2's head in the game GUI?
  93.       DividerBlockPlayer2: gravel
  94.       #What item should represent Player1?
  95.       Player1Block: sand
  96.       #What item should represent Player2?
  97.       Player2Block: gravel
  98.       #What item should represent the winning move?
  99.       WinBlock: diamond block
  100.     Menu:
  101.      #The title of the main GUI menu. Available placeholders: none.
  102.       Title: "&1Connect&44 &1Menu"
  103.       Buttons:
  104.        #What items should represent buttons in the GUI menu?
  105.         #I felt the names that appear in the menu should appear constant, but you can change them in the actual script itself!
  106.         Invite: paper
  107.         Spectate: eye of ender
  108.         Invitations: book
  109.         Stats: book and quill
  110.         Resume: wait music disc
  111.         Help: nether star
  112.         Back: barrier block
  113.         Next: enchanted book
  114.         Previous: book
  115.         #The Exit button also appears in the game GUI, and also acts as the forfeit button!
  116.         Exit: tnt
  117.       Stats:
  118.        #What items should represent slots in the Statistics menu?
  119.         Wins: diamond
  120.         Loses: coal
  121.         Draws: stick
  122.         Forfeits: paper
  123.         GamesPlayed: nether star
  124.         Others: enchanted book
  125.   Misc:
  126.    #Connect4 Bots: $EasyC4Bot, $HardC4Bot, $ImpossibleC4Bot
  127.     Bots:
  128.      #Should C4Bots be enabled?
  129.       Enabled: true
  130.       #Player head from player to represent bots in the invitation menu.
  131.       #Just a default console head I found in FreshCoal's legacy name database.
  132.       Head: "Addelburgh"
  133.     #Messages both players after a game for a rematch.
  134.     Rematch:
  135.       Enabled: true
  136.       #Available placeholders: %TARGET% - the player's opponent.
  137.       Message: "%PREFIX% Invite &b%TARGET%&9 to a Rematch?"
  138.     #Broadcast a message upon ending a game.
  139.     Broadcast:
  140.       Enabled: true
  141.       Wins:
  142.        #Available placeholders: %WINNER%, %LOSER%
  143.         - "%PREFIX% &b%WINNER%&9 has beaten &b%LOSER%&9 at Connect4!"
  144.       Draws:
  145.        #Use %PLAYER% and %TARGET% for the draw broadcast!
  146.         - "%PREFIX% &b%PLAYER%&9 and &b%TARGET%&9 got a draw at Connect4!"
  147.         #Available placeholders: %WINNER%, %LOSER%
  148.       Forfeits:
  149.        - "%PREFIX% &b%LOSER%&9 has forfeited to &b%WINNER%&9 at Connect4!"
  150.     #Executes a list of commands upon winning a game.
  151.     Commands:
  152.       Enabled: true
  153.       Executables:
  154.      #Available placeholders: %WINNER%, %LOSER%
  155.         Wins:
  156.        #- give %WINNER% diamond 1
  157.         #- give %LOSER% coal 1
  158.         Draws:
  159.        #Use %PLAYER% and %TARGET% for the draw commands!
  160.         #- give %PLAYER% iron_ingot 1
  161.         #- give %TARGET% iron_ingot 1
  162.         Forfeits:
  163.        #- give %WINNER% diamond 1
  164.         #- give %WINNER% paper 1 name:&3Certificate_of_Forfeit lore:_&cCertificate_which_articulates|_&cthat_%LOSER%_forfeited_to|_&c%WINNER%_during_Connect4!
  165.         #- give %LOSER% coal 1
  166.       BotExecutables:
  167.      #Bots are not actual players, and cannot receive items, messages, etc!  If you try to give bots an item, it will error in console!
  168.       #Available placeholders: %PLAYERWINNER%, %PLAYERLOSER%, %BOTWINNER%, %BOTLOSER%
  169.       #The above bot placeholders should only be used for mentioning the bot's names; nothing that involving giving items, etc.
  170.         Wins:
  171.        #- give %PLAYERWINNER% diamond 1
  172.         #- give %PLAYERLOSER% coal 1
  173.         Draws:
  174.        #Use %PLAYER% and %BOT% for the draw commands!
  175.         #- give %PLAYER% iron_ingot 1
  176.         Forfeits:
  177.        #- give %PLAYERWINNER% diamond 1
  178.         #- give %PLAYERLOSER% coal 1
  179.   Invitations:
  180.    #How long should an invitation last until it times out?
  181.     Period: 60
  182.     #Should players be able to receive multiple invites at once?  For example, if false, PlayerA can't invite PlayerB if PlayerC has an invite pending to PlayerB.
  183.     Multiple: true
  184.   Pausing:
  185.    #Length of time each pause last, in SECONDS, but do not include timespan.
  186.     TimeLimit: 180
  187.     #At what point should it begin notifying the player of how many pauses they have left after each pause? Pretty much to prevent it saying "YOU HAVE 999998 PAUSES LEFT".
  188.     LimitWarning: 5
  189.     #Permission-based pausing amounts! Just in case a staff member needs extra time for fix something while in a game.
  190.     #Players do not have any of these permissions by default; if they don't have any of the below permissions, a pause will act as a forfeit!
  191.     Permissions:
  192.      - connect4.pauses.3
  193.       - connect4.pauses.999
  194.   Messages:
  195.    #The string of text that predicates all other text, if wanted.
  196.     Prefix: "&9|&3Connect4&9|"
  197.     #Message received upon running /Connect4 Help
  198.     Help: "&3--          %PREFIX%     &9Alias: &b/C4     &3--\n&9/Connect4 &b- Opens GUI menu\n&9/Connect4 invite <player> &b- Invites a player\n&9/Connect4 accept <player> &b- Accepts a player's invite\n&9/Connect4 deny <player> &b- Denies a player's invite\n&9/Connect4 spectate <player> &b- Spectates a game\n&9/Connect4 statistics <player> &b- Displays Connect4 stats\n&9/Connect4 leaderboards <statistic> &b- Displays a Top 10 leaderboard for a specific statistic"
  199.     Game:
  200.      #Message players and spectators of various endings.
  201.       Draw: "%PREFIX% &bDraw!"
  202.       #Available placeholders: %PREFIX%, %LOSER%, %WINNER%
  203.       Win: "%PREFIX% &b%WINNER% has won!"
  204.       #Available placeholders: %PREFIX%, %LOSER%, %WINNER%
  205.       Forfeit: "%PREFIX% %LOSER% forfeited the game!"
  206.       Error:
  207.         NotTurn: "%PREFIX% It is not your turn to move."
  208.     Invite:
  209.       Sent:
  210.        #JSON message which sends to the invitation target, allowing them to click the message to accept the invitation
  211.         JSONInvite:
  212.           Enabled: true
  213.           #Available placeholders: %PLAYER% - the invitation sender
  214.           Message: "%PREFIX% Use &b/Connect4 or click this message to accept!"
  215.         #Messages the player and target of a successful invitation attempt.
  216.         #Available placeholders: %PREFIX%, %TARGET%, %PERIOD% - where %PERIOD% is the amount of time before the invitation expires.
  217.         Player: "%PREFIX% You have sent an invitation to &b%TARGET%&9.\n%PREFIX% Your invite will time out in &b%PERIOD% seconds&9."
  218.         #Available placeholders: %PREFIX%, %PLAYER% - where %PLAYER% is the invitation sender.
  219.         Target: "%PREFIX% &b%PLAYER%&9 has sent an invitation to you."
  220.       Accept:
  221.        #Messages invitation acceptance to the player and his target.
  222.         Player: "%PREFIX% &b%TARGET%&9 has accepted your invitation!"
  223.         Target: "%PREFIX% You have accepted &b%PLAYER%'s&9 invitation!"
  224.       Deny:
  225.        #Messages denial to the player and his target.
  226.         #Available placeholders: %PREFIX%, %TARGET%
  227.         Player: "%PREFIX% &b%TARGET%&9 has denied your invitation!"
  228.         #Available placeholders: %PREFIX%, %PLAYER%
  229.         Target: "%PREFIX% You have denied &b%PLAYER%'s&9 invitation!"
  230.       Error:
  231.         TimedOut:
  232.          #Messages invitation timeout to the player and target.
  233.           #Available placeholders: %PREFIX%, %TARGET%
  234.           Player: "%PREFIX% Your invitation to &b%TARGET%&9 has timed out."
  235.           #Available placeholders: %PREFIX%, %PLAYER%
  236.           Target: "%PREFIX% &b%PLAYER%'s&9 invitation has timed out."
  237.         Pending:
  238.          #Messages the pending error to the player and target. Available placeholders: %PREFIX%, %TARGET%
  239.           Self: "%PREFIX% You currently have an invitation pending to &b%TARGET%&9."
  240.           Target: "%PREFIX% &b%TARGET%&9 currently has an invitation pending!"
  241.         #When a player attempts to accept a player's invitation, but no invite exist.Available placeholders: %PREFIX%, %TARGET%
  242.         NoInvite: "%PREFIX% You do not have any invitations from &b%TARGET%&9."
  243.         #When the player's invitation box is empty.
  244.         Empty: "%PREFIX% You have no current invitations"
  245.         #When a player's target is offline. Available placeholders: %PREFIX%, %TARGET%
  246.         Offline: "%PREFIX% &b%TARGET%&9 is not currently online."
  247.         #When the player's target is themselves.
  248.         Self: "%PREFIX% You can't invite yourself, silly!"
  249.         #When a player's target is in a game. Available placeholders: %PREFIX%, %TARGET%
  250.         InGame: "%PREFIX% &b%TARGET%&9 is currently in a game."
  251.         #When the player does not use specificity a target.
  252.         NoArgument: "%PREFIX% Please specificity a player or use the menus!"
  253.         #When a player attempts to invite someone while paused.
  254.         IsPaused: "%PREFIX% You are already in a paused game!"
  255.     Spectate:
  256.       Error:
  257.        #When a player attempts to spectate themselves.
  258.         Self: "%PREFIX% You can't spectate yourself, silly!"
  259.         #When a player's target is not in a game. Available placeholders: %PREFIX%, %TARGET%
  260.         NotInGame: "%PREFIX% &b%TARGET%&9 is not in a game."
  261.     Statistics:
  262.      #Success message sent to a player when they do /Connect4 setstats
  263.       #Available placeholders: %PREFIX%, %TARGET%, %STAT%, %INPUT%; where %STAT% is the statistic argument, and %INPUT% is the value they're setting.
  264.       SetStatSuccess: "%PREFIX% You have set &b%TARGET%'s %STAT% &9statistic to &b%INPUT%&9."
  265.       #The Leader Board statistic header when doing /Connect4 leaderboard <stat> . Available placeholders: %STAT%
  266.       LeaderBoardHeader: "&9------ &bTop 10 %STAT% Leaderboard &9------"
  267.       Error:
  268.        #Messages a player when they attempt to do /Connect4 setstats but don't have permissions.
  269.         NoPermission: "%PREFIX% You do not have permission to set stats!"
  270.         #When a set-stat arg is given which isn't a stat.
  271.         NotStat: "%PREFIX% Available statistics: &bWins, Loses, Forfeits, and Draws"
  272.         #Displays a How-To for setting statistics.
  273.         DisplayGuide: "%PREFIX% /Connect4 setStats <player> <statistic=\"Wins, Loses, Forfeits, Draws\"> <number>"
  274.         #When no statistics record exist for the player's target. Available placeholders: %PREFIX%, %TARGET%
  275.         NoRecord: "%PREFIX% There are no Connect4 Statistics for %TARGET%."
  276.     Pause:
  277.      #When a player resumes a game while the opponent is still paused, this message will appear for the opponent.
  278.       TargetResumeNotice: "%PREFIX% %PLAYER% has resumed the game!"
  279.       #When a player pauses, this will tell them how many pauses they have left. It will only send when the amount if at or below the LimitWarning value above.
  280.       #Available placeholders: %PREFIX%, %PAUSEAMOUNT% - where %PAUSEAMOUNT% is the amount of pauses the pauser has left.
  281.       PlayerAmountLeft: "%PREFIX% You have &b%PAUSEAMOUNT% &9pauses left!"
  282.       #When a player pauses, this will tell the opponent how many pauses they have left. It will only send when the amount if at or below the LimitWarning value above.
  283.       #Available placeholders: %PREFIX%, %PLAYER, %%PAUSEAMOUNT% - where %PAUSEAMOUNT% is the amount of pauses the pauser has left.
  284.       TargetAmountLeft: "%PREFIX% &b%PLAYER% &9has &b%PAUSEAMOUNT% &9pauses left!"
  285.       #Messages the player when they pause the game.
  286.       PlayerPause: "%PREFIX% You have paused your game with &b%TARGET%&9. Use &b/Connect4 resume &9to resume your game."
  287.       #Messages the opponent telling them the player has paused.
  288.       TargetPause: "%PREFIX% Paused by %PLAYER%."
  289.       Error:
  290.        #When a player attempts to resume when no game was paused.
  291.         NoPausedGame: "%PREFIX% You have no current game paused!"
  292.         #When a player has no more pauses left.
  293.         NoPauseLeft: "%PREFIX% You have no more pauses!\n%PREFIX% Your next game exit will be a forfeit!"
  294.         #When a player attempts to make a move when the game is paused
  295.         OpponentPausedState: "%PREFIX% The game is paused!"
Add Comment
Please, Sign In to add comment