@@ -19,10 +19,10 @@ namespace PersonalItems
1919 name = "Personal-items" ,
2020 description = "Gives specific players items on spawn." ,
2121 id = "karlofduty.personal-items" ,
22- version = "1.2.0 " ,
22+ version = "1.2.2 " ,
2323 SmodMajor = 3 ,
2424 SmodMinor = 1 ,
25- SmodRevision = 19
25+ SmodRevision = 21
2626 ) ]
2727 public class PersonalItems : Plugin
2828 {
@@ -59,16 +59,16 @@ public override void Register()
5959
6060 public override void OnEnable ( )
6161 {
62- if ( ! Directory . Exists ( FileManager . AppFolder + "Personal-items" ) )
62+ if ( ! Directory . Exists ( FileManager . GetAppFolder ( ) + "Personal-items" ) )
6363 {
64- Directory . CreateDirectory ( FileManager . AppFolder + "Personal-items" ) ;
64+ Directory . CreateDirectory ( FileManager . GetAppFolder ( ) + "Personal-items" ) ;
6565 }
6666
67- if ( ! File . Exists ( FileManager . AppFolder + "Personal-items/config.json" ) )
67+ if ( ! File . Exists ( FileManager . GetAppFolder ( ) + "Personal-items/config.json" ) )
6868 {
69- File . WriteAllText ( FileManager . AppFolder + "Personal-items/config.json" , defaultConfig ) ;
69+ File . WriteAllText ( FileManager . GetAppFolder ( ) + "Personal-items/config.json" , defaultConfig ) ;
7070 }
71- jsonObject = JArray . Parse ( File . ReadAllText ( FileManager . AppFolder + "Personal-items/config.json" ) ) ;
71+ jsonObject = JArray . Parse ( File . ReadAllText ( FileManager . GetAppFolder ( ) + "Personal-items/config.json" ) ) ;
7272 this . Info ( "Personal-Items enabled." ) ;
7373 }
7474 }
@@ -92,7 +92,7 @@ public string GetUsage()
9292
9393 public string [ ] OnCall ( ICommandSender sender , string [ ] args )
9494 {
95- plugin . jsonObject = JArray . Parse ( File . ReadAllText ( FileManager . AppFolder + "Personal-items/config.json" ) ) ;
95+ plugin . jsonObject = JArray . Parse ( File . ReadAllText ( FileManager . GetAppFolder ( ) + "Personal-items/config.json" ) ) ;
9696 return new string [ ] { "Personal-Items has been reloaded." } ;
9797 }
9898 }
@@ -115,7 +115,7 @@ public void OnSpawn(PlayerSpawnEvent ev)
115115 }
116116 }
117117 }
118-
118+
119119 class DelayedItemGiver
120120 {
121121 public DelayedItemGiver ( PersonalItems plugin , Player player )
0 commit comments