diff --git a/CommandAmmo.cs b/CommandAmmo.cs index 92ef87f..a6f800c 100644 --- a/CommandAmmo.cs +++ b/CommandAmmo.cs @@ -10,7 +10,7 @@ using fr34kyn01535.Uconomy; using SDG.Unturned; -namespace EasyAmmoRocketMod +namespace EasyAmmo { class CommandAmmo : IRocketCommand { diff --git a/CommandCloneItem.cs b/CommandCloneItem.cs index b5b0607..afab700 100644 --- a/CommandCloneItem.cs +++ b/CommandCloneItem.cs @@ -10,7 +10,7 @@ using fr34kyn01535.Uconomy; using SDG.Unturned; -namespace EasyAmmoRocketMod +namespace EasyAmmo { class CommandCloneItem : IRocketCommand { diff --git a/CommandDropAmmo.cs b/CommandDropAmmo.cs index 8b20764..5d02cba 100644 --- a/CommandDropAmmo.cs +++ b/CommandDropAmmo.cs @@ -9,7 +9,7 @@ using System.Linq; using System.Text; -namespace EasyAmmoRocketMod +namespace EasyAmmo { class CommandDropAmmo : IRocketCommand { diff --git a/EasyAmmo.cs b/EasyAmmo.cs index 6ee9d9d..f2815d4 100644 --- a/EasyAmmo.cs +++ b/EasyAmmo.cs @@ -2,13 +2,14 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using EasyAmmo; using Rocket.Unturned.Player; using Rocket.API; using Rocket.Core.Plugins; using Rocket.Core.Logging; using Rocket.Unturned.Chat; -namespace EasyAmmoRocketMod +namespace EasyAmmo { public class EasyAmmo : RocketPlugin { @@ -24,8 +25,10 @@ protected override void Load() Logger.Log("ClipLimit : " + Instance.Configuration.Instance.ClipLimit.ToString()); Logger.Log("UconomySupportEnabled : " + Instance.Configuration.Instance.UconomySupportEnabled.ToString()); Logger.Log("BulletCostMultiplier : " + Instance.Configuration.Instance.PerBulletCostMultiplier); - Logger.Log("ScaleCostByWeaponDamage : " + Instance.Configuration.Instance.ScaleCostByWeaponDamage.ToString()); - Logger.Log("WeaponDamageCostMultiplier : " + Instance.Configuration.Instance.WeaponDamageCostMultiplier.ToString()); + Logger.Log( + "ScaleCostByWeaponDamage : " + Instance.Configuration.Instance.ScaleCostByWeaponDamage.ToString()); + Logger.Log("WeaponDamageCostMultiplier : " + + Instance.Configuration.Instance.WeaponDamageCostMultiplier.ToString()); Logger.LogWarning("------------------------------------"); } @@ -40,21 +43,33 @@ public override Rocket.API.Collections.TranslationList DefaultTranslations { return new Rocket.API.Collections.TranslationList { - {"over_clip_spawn_limit_giving", "{0} is over the spawn limit, giving you {1} of \"{2}\" ID: \"{3}\" instead"}, - {"over_clip_spawn_limit_dropping", "{0} is over the spawn limit, dropping {1} of \"{2}\" ID: \"{3}\" instead"}, + { + "over_clip_spawn_limit_giving", + "{0} is over the spawn limit, giving you {1} of \"{2}\" ID: \"{3}\" instead" + }, + { + "over_clip_spawn_limit_dropping", + "{0} is over the spawn limit, dropping {1} of \"{2}\" ID: \"{3}\" instead" + }, {"balance", "Remaining balance: {0}"}, {"cost", "Cost Per-Mag: {0}"}, {"no_gun_equipped", "You dont have any guns equipped!"}, {"nothing_equipped", "You dont have anything equipped!"}, - {"gun_asset_not_found","Gun asset is not found!"}, + {"gun_asset_not_found", "Gun asset is not found!"}, {"dropping_mags", "Dropping {0} of \"{1}\" ID: \"{2}\" on your location"}, {"giving_mags", "Giving you {0} of \"{1}\" ID: \"{2}\""}, {"removed_mags", "Removed {0} Magazines from your inventory!"}, {"failed_to_spawn_mags", "Failed to spawn a magazine for the gun you are holding!"}, - {"not_enough_funds","You dont have enough {0} to buy {1} of {2}, {0} need: {3}"}, - {"cloned_item","Cloned \"{0}\" {1} times!"}, - {"weapon_blacklisted","The weapon \"{0}\" is blacklisted, you cannot spawn mags for it using this command!"}, - {"Clonei_item_blacklisted","The item \"{0}\" is blacklisted, you cannot clone this item using this command!"} + {"not_enough_funds", "You dont have enough {0} to buy {1} of {2}, {0} need: {3}"}, + {"cloned_item", "Cloned \"{0}\" {1} times!"}, + { + "weapon_blacklisted", + "The weapon \"{0}\" is blacklisted, you cannot spawn mags for it using this command!" + }, + { + "Clonei_item_blacklisted", + "The item \"{0}\" is blacklisted, you cannot clone this item using this command!" + } }; } } @@ -84,4 +99,4 @@ public static bool CheckIfBlacklisted(IRocketPlayer caller, SDG.Unturned.ItemGun } } } -} +} \ No newline at end of file