File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed
Helpers/FrameworkExtensions
Methods/PlayerDataMethods Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 22using MEC ;
33using Logger = LabApi . Features . Console . Logger ;
44
5- namespace SER . Code . Helpers ;
5+ namespace SER . Code . Helpers . FrameworkExtensions ;
66
77public static class ExiledHelper
88{
Original file line number Diff line number Diff line change @@ -26,7 +26,12 @@ protected Method()
2626 Subgroup = type . Namespace ?
2727 . Split ( '.' )
2828 . LastOrDefault ( ) ?
29- . WithCurrent ( name => name [ ..^ "Methods" . Length ] )
29+ . WithCurrent ( name =>
30+ {
31+ if ( name . EndsWith ( "Methods" ) ) return name [ ..^ "Methods" . Length ] ;
32+ return name ;
33+ } )
34+ . Replace ( "_" , " " )
3035 ?? "Unknown" ;
3136
3237 var name = type . Name ;
Original file line number Diff line number Diff line change 11using System . Reflection ;
22using LabApi . Features . Console ;
33using SER . Code . Helpers ;
4+ using SER . Code . Helpers . FrameworkExtensions ;
45using SER . Code . Helpers . ResultSystem ;
56using SER . Code . MethodSystem . BaseMethods ;
67using SER . Code . MethodSystem . Structures ;
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ public override void Execute()
2626 var players = Args . GetPlayers ( "players" ) ;
2727 var key = Args . GetText ( "key to clear" ) ;
2828
29- var func = key . IsEmpty ( )
30- ? ( Action < Dictionary < string , Value > > ) ( dict => dict . Clear ( ) )
29+ Action < Dictionary < string , Value > > func = key . IsEmpty ( )
30+ ? dict => dict . Clear ( )
3131 : dict => dict . Remove ( key ) ;
3232
3333 players . ForEach ( p =>
Original file line number Diff line number Diff line change 77using SER . Code . FlagSystem . Flags ;
88using SER . Code . Helpers ;
99using SER . Code . Helpers . Extensions ;
10+ using SER . Code . Helpers . FrameworkExtensions ;
1011using SER . Code . MethodSystem ;
1112using SER . Code . MethodSystem . Methods . PlayerDataMethods ;
1213using SER . Code . ScriptSystem ;
Original file line number Diff line number Diff line change 100100 </ItemGroup >
101101 <ItemGroup >
102102 <Folder Include =" Code\" />
103+ <Folder Include =" Code\MethodSystem\Methods\EXILED_custom_roleMethods\" />
103104 </ItemGroup >
104105
105106 <!-- embedding dependencies into SER.dll -->
You can’t perform that action at this time.
0 commit comments