generated from AriasCreations/vsmodtemplate
parent
c269066a26
commit
98d9097ba5
2 changed files with 36 additions and 14 deletions
|
@ -567,7 +567,7 @@ namespace AriasServerUtils
|
|||
// Check for the gears and pay here, or show error.
|
||||
withMount = true;
|
||||
}
|
||||
int cost = ServerUtilities.config.cmdCosts.costs[withMount ? CommandCosts.CostType.sethomemount : CommandCosts.CostType.setwarp];
|
||||
int cost = ServerUtilities.config.cmdCosts.costs[withMount ? CommandCosts.CostType.setwarpmount : CommandCosts.CostType.setwarp];
|
||||
|
||||
int balance = RustyGearUtils.CountRustyGears(isp);
|
||||
if (cost > 0)
|
||||
|
@ -867,77 +867,99 @@ namespace AriasServerUtils
|
|||
{
|
||||
UpdateCost(CommandCosts.CostType.spawn, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostRTP(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.rtp, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostBack(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.back, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostSetHome(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.sethome, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostHome(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.home, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostDelHome(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.delhome, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostSetHomeMount(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.sethomemount, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostWarp(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.warp, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostSetWarp(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.setwarp, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostDelWarp(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.delwarp, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleASUUpdateCommandCostSetWarpMount(TextCommandCallingArgs args)
|
||||
{
|
||||
UpdateCost(CommandCosts.CostType.setwarpmount, args);
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
int cost = 0;
|
||||
if (args[0] is int nc) cost = nc;
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig", cost));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,8 +3,8 @@
|
|||
"modid": "ariasserverutils",
|
||||
"name": "Aria's Server Utilities",
|
||||
"authors": ["zontreck"],
|
||||
"description": "A collection of server utilities\n\nBuild Date: 06-07-2025 @ 1:47 PM MST",
|
||||
"version": "1.1.0-dev.8",
|
||||
"description": "A collection of server utilities\n\nBuild Date: 06-07-2025 @ 1:56 PM MST",
|
||||
"version": "1.1.0",
|
||||
"dependencies": {
|
||||
"game": ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue