Restructure for redevelopment
(cherry picked from commit 37b9b14)
This commit is contained in:
		
							
								
								
									
										82
									
								
								src/test/resources/arena.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										82
									
								
								src/test/resources/arena.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,82 @@
 | 
			
		||||
TestArena:
 | 
			
		||||
  ==: BlockHuntArena
 | 
			
		||||
  maxPlayers: 40
 | 
			
		||||
  hidersWinCommands: []
 | 
			
		||||
  timeInLobbyUntilStart: 30
 | 
			
		||||
  minPlayers: 5
 | 
			
		||||
  timeUntilHidersSword: 0
 | 
			
		||||
  spawnWarp:
 | 
			
		||||
    ==: BlockHuntLocation
 | 
			
		||||
    p: 4.200027
 | 
			
		||||
    a: 41.700073
 | 
			
		||||
    w: games
 | 
			
		||||
    x: -178.5
 | 
			
		||||
    y: 33.0
 | 
			
		||||
    z: -130.5
 | 
			
		||||
  allowedCommands: []
 | 
			
		||||
  arenaName: TestArena
 | 
			
		||||
  amountSeekersOnStart: 3
 | 
			
		||||
  pos1:
 | 
			
		||||
    ==: BlockHuntLocation
 | 
			
		||||
    w: games
 | 
			
		||||
    x: 576.0
 | 
			
		||||
    y: 2.0
 | 
			
		||||
    z: 503.0
 | 
			
		||||
  pos2:
 | 
			
		||||
    ==: BlockHuntLocation
 | 
			
		||||
    w: games
 | 
			
		||||
    x: 428.0
 | 
			
		||||
    y: 66.0
 | 
			
		||||
    z: 342.0
 | 
			
		||||
  waitingTimeSeeker: 20
 | 
			
		||||
  seekersTokenWin: 0
 | 
			
		||||
  lobbyWarp:
 | 
			
		||||
    ==: BlockHuntLocation
 | 
			
		||||
    p: 4.19999
 | 
			
		||||
    a: -182.09694
 | 
			
		||||
    w: games
 | 
			
		||||
    x: 500.66289894368725
 | 
			
		||||
    y: 4.0
 | 
			
		||||
    z: 497.83982348350094
 | 
			
		||||
  seekersWinCommands: []
 | 
			
		||||
  killTokens: 0
 | 
			
		||||
  gameTime: 660
 | 
			
		||||
  disguiseBlocks:
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: BOOKSHELF
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: GLOWSTONE
 | 
			
		||||
    meta:
 | 
			
		||||
      ==: ItemMeta
 | 
			
		||||
      meta-type: UNSPECIFIC
 | 
			
		||||
      enchants:
 | 
			
		||||
        DURABILITY: 10
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: EMERALD_BLOCK
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: WOOL
 | 
			
		||||
    damage: 5
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: ICE
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: MYCEL
 | 
			
		||||
  - ==: org.bukkit.inventory.ItemStack
 | 
			
		||||
    type: SAND
 | 
			
		||||
  hidersWarp:
 | 
			
		||||
    ==: BlockHuntLocation
 | 
			
		||||
    p: -1.9500121
 | 
			
		||||
    a: 179.85266
 | 
			
		||||
    w: games
 | 
			
		||||
    x: 500.52591580497256
 | 
			
		||||
    y: 4.0
 | 
			
		||||
    z: 482.31326505008246
 | 
			
		||||
  blockAnnouncerTime: 45
 | 
			
		||||
  seekersWarp:
 | 
			
		||||
    ==: BlockHuntLocation
 | 
			
		||||
    p: 17.69996
 | 
			
		||||
    a: 90.15417
 | 
			
		||||
    w: games
 | 
			
		||||
    x: 519.6272528902401
 | 
			
		||||
    y: 42.0
 | 
			
		||||
    z: 453.4140380016035
 | 
			
		||||
  hidersTokenWin: 0
 | 
			
		||||
							
								
								
									
										87
									
								
								src/test/resources/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										87
									
								
								src/test/resources/config.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,87 @@
 | 
			
		||||
chat:
 | 
			
		||||
  tag: '[BlockHunt] '
 | 
			
		||||
  normal: '&b'
 | 
			
		||||
  warning: '&c'
 | 
			
		||||
  error: '&c'
 | 
			
		||||
  arg: '&e'
 | 
			
		||||
  header: '&9'
 | 
			
		||||
  headerhigh: '%H_______.[ %A%header%%H ]._______'
 | 
			
		||||
commandEnabled:
 | 
			
		||||
  info: true
 | 
			
		||||
  help: true
 | 
			
		||||
  reload: true
 | 
			
		||||
  join: true
 | 
			
		||||
  leave: true
 | 
			
		||||
  list: true
 | 
			
		||||
  shop: true
 | 
			
		||||
  start: true
 | 
			
		||||
  wand: true
 | 
			
		||||
  create: true
 | 
			
		||||
  set: true
 | 
			
		||||
  setwarp: true
 | 
			
		||||
  remove: true
 | 
			
		||||
  tokens: true
 | 
			
		||||
autoUpdateCheck: false
 | 
			
		||||
autoDownloadUpdate: false
 | 
			
		||||
wandIDname: STICK
 | 
			
		||||
wandName: '%A&lBlockHunt%N''s selection wand'
 | 
			
		||||
wandDescription:
 | 
			
		||||
- '%NUse this item to select an arena for your arena.'
 | 
			
		||||
- '%ALeft-Click%N to select point #1.'
 | 
			
		||||
- '%ARight-Click%N to select point #2.'
 | 
			
		||||
- '%NUse the create command to define your arena.'
 | 
			
		||||
- '%A/BlockHunt <help|h>'
 | 
			
		||||
shop:
 | 
			
		||||
  title: '%H&lBlockHunt %NShop'
 | 
			
		||||
  price: '%NPrice: %A%amount% %Ntokens.'
 | 
			
		||||
  blockChooserv1Enabled: true
 | 
			
		||||
  blockChooserv1IDname: BOOK
 | 
			
		||||
  blockChooserv1Price: 3000
 | 
			
		||||
  blockChooserv1Name: '%H&lBlockHunt Chooser'
 | 
			
		||||
  blockChooserv1Description:
 | 
			
		||||
  - '%NUse this item before the arena starts.'
 | 
			
		||||
  - '%ARight-Click%N in the lobby and choose'
 | 
			
		||||
  - '%Nthe block you want to be!'
 | 
			
		||||
  - '&6Unlimited uses.'
 | 
			
		||||
  BlockHuntPassv2Enabled: true
 | 
			
		||||
  BlockHuntPassv2IDName: NAME_TAG
 | 
			
		||||
  BlockHuntPassv2Price: 150
 | 
			
		||||
  BlockHuntPassv2Name: '%H&lBlockHunt Pass'
 | 
			
		||||
  BlockHuntPassv2Description:
 | 
			
		||||
  - '%NUse this item before the arena starts.'
 | 
			
		||||
  - '%ARight-Click%N in the lobby and choose'
 | 
			
		||||
  - '%Nif you want to be a Hider or a Seeker!'
 | 
			
		||||
  - '&61 time use.'
 | 
			
		||||
sign:
 | 
			
		||||
  LEAVE:
 | 
			
		||||
  - '%H[BlockHunt%H]'
 | 
			
		||||
  - '&4LEAVE'
 | 
			
		||||
  - '&8Right-Click'
 | 
			
		||||
  - '&8To leave.'
 | 
			
		||||
  SHOP:
 | 
			
		||||
  - '%H[BlockHunt%H]'
 | 
			
		||||
  - '&4SHOP'
 | 
			
		||||
  - '&8Right-Click'
 | 
			
		||||
  - '&8To shop.'
 | 
			
		||||
  WAITING:
 | 
			
		||||
  - '%H[BlockHunt%H]'
 | 
			
		||||
  - '&5%arenaname%'
 | 
			
		||||
  - '&5%players%&6/&5%maxplayers%'
 | 
			
		||||
  - '&8Waiting...'
 | 
			
		||||
  STARTING:
 | 
			
		||||
  - '%H[BlockHunt%H]'
 | 
			
		||||
  - '&5%arenaname%'
 | 
			
		||||
  - '&5%players%&6/&5%maxplayers%'
 | 
			
		||||
  - '&2Start: %A%timeleft%'
 | 
			
		||||
  INGAME:
 | 
			
		||||
  - '%H[BlockHunt%H]'
 | 
			
		||||
  - '&5%arenaname%'
 | 
			
		||||
  - '&5%players%&6/&5%maxplayers%'
 | 
			
		||||
  - '%EIngame: %A%timeleft%'
 | 
			
		||||
scoreboard:
 | 
			
		||||
  enabled: true
 | 
			
		||||
  title: '%H[BlockHunt]'
 | 
			
		||||
  timeleft: '%ATime left:'
 | 
			
		||||
  seekers: '%NSeekers:'
 | 
			
		||||
  hiders: '%NHiders:'
 | 
			
		||||
requireInventoryClearOnJoin: false
 | 
			
		||||
							
								
								
									
										99
									
								
								src/test/resources/messages.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										99
									
								
								src/test/resources/messages.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,99 @@
 | 
			
		||||
log:
 | 
			
		||||
  enabledPlugin: '%TAG%N%name%&a&k + %N%version% is now Enabled. Made by %A%autors%%N.'
 | 
			
		||||
  disabledPlugin: '%TAG%N%name%&c&k - %N%version% is now Disabled. Made by %A%autors%%N.'
 | 
			
		||||
help:
 | 
			
		||||
  info: '%NDisplays the plugin''s info.'
 | 
			
		||||
  help: '%NShows a list of commands.'
 | 
			
		||||
  reload: '%NReloads all configs.'
 | 
			
		||||
  join: '%NJoins a BlockHunt game.'
 | 
			
		||||
  leave: '%NLeave a BlockHunt game.'
 | 
			
		||||
  list: '%NShows a list of available arenas.'
 | 
			
		||||
  shop: '%NOpens the BlockHunt shop.'
 | 
			
		||||
  start: '%NForces an arena to start.'
 | 
			
		||||
  wand: '%NGives you the wand selection tool.'
 | 
			
		||||
  create: '%NCreates an arena from your selection.'
 | 
			
		||||
  set: '%NOpens a panel to set settings.'
 | 
			
		||||
  setwarp: '%NSets warps for your arena.'
 | 
			
		||||
  remove: '%NDeletes an Arena.'
 | 
			
		||||
  tokens: '%NChange someones tokens.'
 | 
			
		||||
button:
 | 
			
		||||
  add: '%NAdd %A%1%%N to %A%2%%N'
 | 
			
		||||
  add2: Add
 | 
			
		||||
  setting: '%NSetting %A%1%%N is now: %A%2%%N.'
 | 
			
		||||
  remove: '%NRemove %A%1%%N from %A%2%%N'
 | 
			
		||||
  remove2: Remove
 | 
			
		||||
normal:
 | 
			
		||||
  reloadedConfigs: '%TAG&aReloaded all configs!'
 | 
			
		||||
  joinJoinedArena: '%TAG%A%playername%%N joined your arena. (%A%1%%N/%A%2%%N)'
 | 
			
		||||
  leaveYouLeft: '%TAG%NYou left the arena! Thanks for playing!'
 | 
			
		||||
  leaveLeftArena: '%TAG%A%playername%%N left your arena. (%A%1%%N/%A%2%%N)'
 | 
			
		||||
  startForced: '%TAG%NYou forced to start arena ''%A%arenaname%%N''!'
 | 
			
		||||
  wandGaveWand: '%TAG%NHere you go! &o(Use the %A&o%type%%N&o!)'
 | 
			
		||||
  wandSetPosition: '%TAG%NSet position %A#%number%%N to location: (%A%x%%N, %A%y%%N,
 | 
			
		||||
    %A%z%%N).'
 | 
			
		||||
  createCreatedArena: '%TAG%NCreated an arena with the name ''%A%name%%N''.'
 | 
			
		||||
  lobbyArenaIsStarting: '%TAG%NThe arena will start in %A%1%%N second(s)!'
 | 
			
		||||
  lobbyArenaStarted: '%TAG%NThe arena has been started! The seeker is coming to find
 | 
			
		||||
    you in %A%secs%%N seconds!'
 | 
			
		||||
  ingameSeekerChoosen: '%TAG%NPlayer %A%seeker%%N has been choosen as seeker!'
 | 
			
		||||
  ingameBlock: '%TAG%NYou''re disguised as a(n) ''%A%block%%N'' block.'
 | 
			
		||||
  ingameArenaEnd: '%TAG%NThe arena will end in %A%1%%N second(s)!'
 | 
			
		||||
  ingameSeekerSpawned: '%TAG%A%playername%%N has spawned as a seeker!'
 | 
			
		||||
  ingameGivenSword: '%TAG%NYou were given a sword!'
 | 
			
		||||
  ingameHiderDied: '%TAG%NHider %A%playername%%N was killed by %A%killer%%N!'
 | 
			
		||||
  ingameHidersLeft: '%NHider(s) left: %A%left%%N'
 | 
			
		||||
  ingameSeekerDied: '%TAG%NSeeker %A%playername%%N died and will respawn in %A%secs%%N
 | 
			
		||||
    seconds!'
 | 
			
		||||
  winSeekers: '%TAG%NThe %ASEEKERS%N have won!'
 | 
			
		||||
  winHiders: '%TAG%NThe %AHIDERS%N have won!'
 | 
			
		||||
  setwarpWarpSet: '%TAG%NSet warp ''%A%warp%%N'' to your location!'
 | 
			
		||||
  addedToken: '%TAG%A%amount%%N tokens were added to your account!'
 | 
			
		||||
  removeRemovedArena: '%TAG%NRemoved arena ''%A%name%%N''!'
 | 
			
		||||
  tokensChanged: '%TAG%N%option% %A%amount%%N tokens %option2% %A%playername%%N.'
 | 
			
		||||
  tokensChangedPerson: '%TAG%NPlayer %A%playername%%N %N%option% %A%amount%%N %option2%
 | 
			
		||||
    your tokens.'
 | 
			
		||||
  ingameNowSolid: '%TAG%NYou''re now a solid ''%A%block%%N'' block!'
 | 
			
		||||
  ingameNoMoreSolid: '%TAG%NYou''re no longer a solid block!'
 | 
			
		||||
  shopBoughtItem: '%TAG%NYou''ve bought the ''%A%itemname%%N'' item!'
 | 
			
		||||
  shopChoosenBlock: '%TAG%NYou''ve choosen to be a(n) ''%A%block%%N'' block!'
 | 
			
		||||
  shopChoosenSeeker: '%TAG%NYou''ve choosen to be a %Aseeker%N!'
 | 
			
		||||
  shopChoosenHiders: '%TAG%NYou''ve choosen to be a %Ahider%N!'
 | 
			
		||||
  ingameBlocksLeft: '%TAG%NRemaining blocks: %A%1%%N'
 | 
			
		||||
warning:
 | 
			
		||||
  lobbyNeedAtleast: '%TAG%WYou need atleast %A%1%%W player(s) to start the game!'
 | 
			
		||||
  ingameNEWSeekerChoosen: '%TAG%WThe last seeker left and a new seeker has been choosen!'
 | 
			
		||||
  unableToCommand: '%TAG%WSorry but that command is disabled in the arena.'
 | 
			
		||||
  ingameNoSolidPlace: '%TAG%WThat''s not a valid place to become solid!'
 | 
			
		||||
  arenaStopped: '%TAG%WThe arena has been forced to stop!'
 | 
			
		||||
error:
 | 
			
		||||
  noPermission: '%TAG%EYou don''t have the permissions to do that!'
 | 
			
		||||
  notANumber: '%TAG%E''%A%1%%E'' is not a number!'
 | 
			
		||||
  commandNotEnabled: '%TAG%EThis command has been disabled!'
 | 
			
		||||
  commandNotFound: '%TAG%ECouldn''t find the command. Try %A/BlockHunt help %Efor
 | 
			
		||||
    more info.'
 | 
			
		||||
  notEnoughArguments: '%TAG%EYou''re missing arguments, correct syntax: %A%syntax%'
 | 
			
		||||
  libsDisguisesNotInstalled: '%TAG%EThe plugin ''%ALib''s Disguises%E'' is required
 | 
			
		||||
    to run this plugin! Intall it or it won''t work!'
 | 
			
		||||
  protocolLibNotInstalled: '%TAG%EThe plugin ''%AProtocolLib%E'' is required to run
 | 
			
		||||
    this plugin! Intall it or it won''t work!'
 | 
			
		||||
  noArena: '%TAG%ENo arena found with the name ''%A%name%%E''.'
 | 
			
		||||
  onlyIngame: '%TAG%EThis is an only in-game command!'
 | 
			
		||||
  joinAlreadyJoined: '%TAG%EYou''ve already joined an arena!'
 | 
			
		||||
  joinNoBlocksSet: '%TAG%EThere are none blocks set for this arena. Notify the administrator.'
 | 
			
		||||
  joinWarpsNotSet: '%TAG%EThere are no warps set for this arena. Notify the administrator.'
 | 
			
		||||
  joinArenaIngame: '%TAG%EThis game has already started.'
 | 
			
		||||
  joinFull: '%TAG%EUnable to join this arena. It''s full!'
 | 
			
		||||
  joinInventoryNotEmpty: '%TAG%EYour inventory should be empty before joining!'
 | 
			
		||||
  leaveNotInArena: '%TAG%EYou''re not in an arena!'
 | 
			
		||||
  createSelectionFirst: '%TAG%EMake a selection first. Use the wand command: %A/BlockHunt
 | 
			
		||||
    <wand|w>%E.'
 | 
			
		||||
  createNotSameWorld: '%TAG%EMake your selection points in the same world!'
 | 
			
		||||
  setTooHighNumber: '%TAG%EThat amount is too high! Max amount is: %A%max%%E.'
 | 
			
		||||
  setTooLowNumber: '%TAG%EThat amount is too low! Minimal amount is: %A%min%%E.'
 | 
			
		||||
  setNotABlock: '%TAG%EThat is not a block!'
 | 
			
		||||
  setwarpWarpNotFound: '%TAG%EWarp ''%A%warp%%E'' is not valid!'
 | 
			
		||||
  tokensPlayerNotOnline: '%TAG%ENo player found with the name ''%A%playername%%E''!'
 | 
			
		||||
  tokensUnknownsetting: '%TAG%E''%A%option%%E'' is not a known option!'
 | 
			
		||||
  shopNeedMoreTokens: '%TAG%EYou need more tokens before you can buy this item.'
 | 
			
		||||
  shopMaxSeekersReached: '%TAG%ESorry, the maximum amount of seekers has been reached!'
 | 
			
		||||
  shopMaxHidersReached: '%TAG%ESorry, the maximum amount of hiders has been reached!'
 | 
			
		||||
		Reference in New Issue
	
	Block a user