Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------------------------------------ #
- # All the custom commands
- # ------------------------------------------------------------ #
- # Exemple command : aliases to /spawn with a delay
- ccspawn:
- # Firth configuration : command usage
- # This will be displayed when a player misuses a command
- usage: '/ccspawn, /spawn, /teleportspawn'
- # Second configuration : command aliases
- # When the player will do /ccspawn, /spawn or /teleportspawn, the command will be handled here
- # This is case insensivite
- aliases:
- - 'ccspawn'
- - 'spawn'
- - 'teleportspawn'
- # Third configuration : arguments patterns that the player can use
- #
- # In the patterns, for each arg, you can use :
- # anything you want, so the player must enter it
- # [string], so the player can enter anything
- # [string:{min}:{max}], so the player can enter anything between {min} characters and {max} characters
- # [int], so the player must enter a number
- # [double], so the player must enter a decimal number (like 12.85 or 12,85)
- # [infinite], so after this arg the player can enter an infinite number of arguments
- #
- # This is case insensivite
- arguments-patterns:
- # Fourth configuration : the permission needed to use the command
- # Just remove the line if you don't want a permission
- permission: 'cc.spawn'
- # Last configuration : the actions executed when the player executes the command
- #
- # Actions list :
- #
- # 'send message'
- # data :
- # - target ('player', 'everyone', '{arg:[NUMBER]}')
- # - message line 1 (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
- # - message line 2 (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
- # - ...
- #
- # 'wait x ticks'
- # data :
- # - delay in ticks
- #
- # 'execute commands for'
- # data:
- # - command 1 (placeholders : {args}, {player}, {arg:NUMBER})
- # - command 2 (placeholders : {args}, {player}, {arg:NUMBER})
- # - ...
- #
- # 'execute commands as'
- # data :
- # - target ('player', 'everyone', '{arg:[NUMBER]}')
- # - command 1 (placeholders : {args}, {player}, {arg:NUMBER})
- # - command 2 (placeholders : {args}, {player}, {arg:NUMBER})
- # - ...
- #
- # 'send title'
- # data :
- # - target ('player', 'everyone', '{arg:[NUMBER]}')
- # - title (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
- # - subtitle (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
- # - fadein in ticks
- # - duration in ticks
- # - fadeout in ticks
- #
- # 'send actionbar'
- # data :
- # - target ('player', 'everyone', '{arg:[NUMBER]}')
- # - the action bar (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
- #
- # 'give item'
- # data:
- # - target ('player', 'everyone', '{arg:[NUMBER]}')
- # - the item name (when you saved it with /ccmd saveitem [name])
- #
- # 'teleport'
- # data:
- # - target ('player', 'everyone', '{arg:[NUMBER]}')
- # - the location name (when you saved it with /ccmd saveloc [name])
- actions:
- my-action-1:
- type: 'send message'
- data:
- - 'player'
- - '§cYou''ll be teleported soon to spawn.'
- - '§cPlease, wait 3 seconds...'
- my-action-2:
- type: 'wait x ticks'
- data:
- - '60'
- my-action-3:
- type: 'execute commands for'
- data:
- - 'spawn {player}'
- my-action-4:
- type: 'execute commands as'
- data:
- - 'player'
- - 'me I''m now at spawn !'
- my-action-5:
- type: 'send title'
- data:
- - 'player'
- - '&7You''re at spawn !'
- - '&7For real !'
- - '10'
- - '80'
- - '10'
- my-action-6:
- type: 'send actionbar'
- data:
- - 'player'
- - '&aYOU ARE AT SPAWN !!! :D'
- ula:
- usage: /ula
- aliases:
- - 'ula'
- arguments-patterns:
- - '[string]'
- permission: upload.level.a
- actions:
- message-recording:
- type: 'send message'
- data:
- - 'player'
- - '&cRecording video...'
- delay-recording:
- type: 'wait x ticks'
- data:
- - '18'
- message-uploading:
- type: 'send message'
- data:
- - 'player'
- - '&aUploading video...'
- delay-uploading:
- type: 'wait x ticks'
- data:
- - '12'
- message-views:
- type: 'send message'
- data:
- - 'player'
- - '&1Generating views...'
- delay-views:
- type: 'wait x ticks'
- data:
- - '3'
- message-views-done:
- type: 'send message'
- data:
- - 'player'
- - '&7You got&2 {args}&7views on your newest video!'
- give-views:
- type: 'execute commands for'
- data:
- - 'levelme addExp {player} Player {args}'
- ulb:
- usage: /ulb
- aliases:
- - 'ulb'
- arguments-patterns:
- - '[string]'
- permission: upload.level.b
- actions:
- message-recording:
- type: 'send message'
- data:
- - 'player'
- - '&cRecording video...'
- delay-recording:
- type: 'wait x ticks'
- data:
- - '1800'
- message-uploading:
- type: 'send message'
- data:
- - 'player'
- - '&aUploading video...'
- delay-uploading:
- type: 'wait x ticks'
- data:
- - '1200'
- message-views:
- type: 'send message'
- data:
- - 'player'
- - '&1Generating views...'
- delay-views:
- type: 'wait x ticks'
- data:
- - '300'
- message-views-done:
- type: 'send message'
- data:
- - 'player'
- - '&7You got &217 &7views on your newest video!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement