File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
MethodSystem/Methods/PlayerMethods Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- using LabApi . Features . Wrappers ;
1+ using System . Linq ;
2+ using System . Collections . Generic ;
3+ using LabApi . Features . Wrappers ;
24using SER . ArgumentSystem . Arguments ;
35using SER . ArgumentSystem . BaseArguments ;
46using SER . MethodSystem . BaseMethods ;
5- using System . Collections . Generic ;
67
78namespace SER . MethodSystem . Methods . PlayerMethods ;
89
@@ -22,7 +23,9 @@ public class SetInfoAreaMethod : SynchronousMethod
2223 public override void Execute ( )
2324 {
2425 List < Player > players = Args . GetPlayers ( "players" ) ;
25- PlayerInfoArea info = Args . GetEnum < PlayerInfoArea > ( "info area" ) ;
26+ PlayerInfoArea info = Args . GetRemainingArguments < object , EnumArgument < PlayerInfoArea > > ( "info area" )
27+ . Cast < PlayerInfoArea > ( )
28+ . Aggregate ( PlayerInfoArea . Nickname , ( a , b ) => a | b ) ;
2629
2730 players . ForEach ( p => p . InfoArea = info ) ;
2831 }
You can’t perform that action at this time.
0 commit comments