mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-25 06:01:48 +01:00
Add Revert command to /glamour
The /glamour command can be used to apply a glamor to character, but there's no way to remove a glamour and revert to default without using the GUI. Introduce a Revert command that can be used to revert a player back to their default.
This commit is contained in:
parent
9dfa948c81
commit
3529351b82
1 changed files with 11 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ namespace Glamourer
|
||||||
{
|
{
|
||||||
public class Glamourer : IDalamudPlugin
|
public class Glamourer : IDalamudPlugin
|
||||||
{
|
{
|
||||||
private const string HelpString = "[Copy|Apply|Save],[Name or PlaceHolder],<Name for Save>";
|
private const string HelpString = "[Copy|Apply|Save|Revert],[Name or PlaceHolder],<Name for Save>";
|
||||||
|
|
||||||
public string Name
|
public string Name
|
||||||
=> "Glamourer";
|
=> "Glamourer";
|
||||||
|
|
@ -132,6 +132,11 @@ namespace Glamourer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void RevertCommand(Character player)
|
||||||
|
{
|
||||||
|
GlamourerIpc.Revert(player);
|
||||||
|
}
|
||||||
|
|
||||||
public void OnGlamour(string command, string arguments)
|
public void OnGlamour(string command, string arguments)
|
||||||
{
|
{
|
||||||
static void PrintHelp()
|
static void PrintHelp()
|
||||||
|
|
@ -193,6 +198,11 @@ namespace Glamourer
|
||||||
SaveCommand(player, split[2]);
|
SaveCommand(player, split[2]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case "revert":
|
||||||
|
{
|
||||||
|
RevertCommand(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
PrintHelp();
|
PrintHelp();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue