package Ġcom . github . sh atter ed suite . scroll s . data . scroll . commands . scroll s Ċ Ċ import Ġcom . github . sh atter ed suite . core . commands . Leaf Command Ċ import Ġcom . github . sh atter ed suite . core . commands . Tab Comp le ters Ċ import Ġcom . github . sh atter ed suite . core . commands . predicates . Argument Minimum Predicate Ċ import Ġcom . github . sh atter ed suite . core . commands . predicates . Command Context Ċ import Ġcom . github . sh atter ed suite . core . commands . responses . Cancel Response Ċ import Ġcom . github . sh atter ed suite . core . validation . Validators Ċ import Ġcom . github . sh atter ed suite . scroll s . Sh atter ed Scroll s Ċ import Ġcom . github . sh atter ed suite . scroll s . data . scroll . Scroll Type Ċ import Ġcom . github . sh atter ed suite . scroll s . validation . Scroll Type Validator Ċ Ċ class ĠScroll Edit Char ges Command ( val Ġinstance : ĠSh atter ed Scroll s , Ġparent : ĠScroll Edit Command ) Ġ: ĊĠĠĠĠĠĠĠ ĠLeaf Command ( instance , Ġparent , Ġ" charges ", Ġ" sh atter ed scroll s . command . scroll . edit ", Ġ" command . scroll . edit ") Ġ{ ĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġadd Alias (" c ") ĊĠĠĠĠĠĠĠ Ġcontext Pred icates [" args "] Ġ= ĠArgument Minimum Predicate ( Cancel Response ( this . help Path ), Ġ 2 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġexecute ( ctx : ĠCommand Context ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtype Ġ= ĠScroll Type Validator . validate ( ctx . args [ 0 ]) ĊĠĠĠĠĠĠĠ Ġval Ġamount Ġ= ĠValidators . integer Validator . validate ( ctx . args [ 1 ]) ĊĠĠĠĠĠĠĠ Ġval Ġnew Type Ġ= Ġtype . copy ( default Char ges Ġ= Ġamount ) ĊĊĠĠĠĠĠĠĠ Ġinstance . scroll s (). delete ( type . id ) ĊĠĠĠĠĠĠĠ Ġinstance . scroll s (). register ( new Type ) ĊĊĠĠĠĠĠĠĠ Ġctx . context Messages . put All ( new Type . placeholders ) ĊĠĠĠĠĠĠĠ Ġctx . context Messages [" value "] Ġ= Ġamount . toString () ĊĠĠĠĠĠĠĠ Ġctx . context Messages [" key "] Ġ= Ġctx . messenger . getMessage (" scroll . charges ", Ġctx . context Messages ) ĊĊĠĠĠĠĠĠĠ Ġctx . sendMessage (" edit - scroll ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Tab Complete ( ctx : ĠCommand Context ): ĠMutable List < String > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠTab Comp le ters . complete O dds ( ctx . args , Ġ 1 , Ġ 3 ) ĊĠĠĠ Ġ} Ċ }