Skip to content

Commit

Permalink
merged PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkbound committed Jan 15, 2020
1 parent f5903db commit 97b2f6e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CommandAmmo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using fr34kyn01535.Uconomy;
using SDG.Unturned;

namespace EasyAmmoRocketMod
namespace EasyAmmo
{
class CommandAmmo : IRocketCommand
{
Expand Down
2 changes: 1 addition & 1 deletion CommandCloneItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using fr34kyn01535.Uconomy;
using SDG.Unturned;

namespace EasyAmmoRocketMod
namespace EasyAmmo
{
class CommandCloneItem : IRocketCommand
{
Expand Down
2 changes: 1 addition & 1 deletion CommandDropAmmo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Linq;
using System.Text;

namespace EasyAmmoRocketMod
namespace EasyAmmo
{
class CommandDropAmmo : IRocketCommand
{
Expand Down
37 changes: 26 additions & 11 deletions EasyAmmo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<EasyAmmoConfig>
{
Expand All @@ -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("------------------------------------");
}

Expand All @@ -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!"
}
};
}
}
Expand Down Expand Up @@ -84,4 +99,4 @@ public static bool CheckIfBlacklisted(IRocketPlayer caller, SDG.Unturned.ItemGun
}
}
}
}
}

0 comments on commit 97b2f6e

Please sign in to comment.