parent
45ea3cc771
commit
e72896490d
2 changed files with 7 additions and 1 deletions
|
|
@ -684,7 +684,10 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
if (!cmd.CanRun(player))
|
if (!cmd.CanRun(player))
|
||||||
{
|
{
|
||||||
TShock.Utils.SendLogs(GetString("{0} tried to execute {1}{2}.", player.Name, Specifier, cmdText), Color.PaleVioletRed, player);
|
if (cmd.DoLog)
|
||||||
|
TShock.Utils.SendLogs(GetString("{0} tried to execute {1}{2}.", player.Name, Specifier, cmdText), Color.PaleVioletRed, player);
|
||||||
|
else
|
||||||
|
TShock.Utils.SendLogs(GetString("{0} tried to execute (args omitted) {1}{2}.", player.Name, Specifier, cmdName), Color.PaleVioletRed, player);
|
||||||
player.SendErrorMessage(GetString("You do not have access to this command."));
|
player.SendErrorMessage(GetString("You do not have access to this command."));
|
||||||
if (player.HasPermission(Permissions.su))
|
if (player.HasPermission(Permissions.su))
|
||||||
{
|
{
|
||||||
|
|
@ -699,6 +702,8 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
if (cmd.DoLog)
|
if (cmd.DoLog)
|
||||||
TShock.Utils.SendLogs(GetString("{0} executed: {1}{2}.", player.Name, silent ? SilentSpecifier : Specifier, cmdText), Color.PaleVioletRed, player);
|
TShock.Utils.SendLogs(GetString("{0} executed: {1}{2}.", player.Name, silent ? SilentSpecifier : Specifier, cmdText), Color.PaleVioletRed, player);
|
||||||
|
else
|
||||||
|
TShock.Utils.SendLogs(GetString("{0} executed (args omitted): {1}{2}.", player.Name, silent ? SilentSpecifier : Specifier, cmdName), Color.PaleVioletRed, player);
|
||||||
cmd.Run(cmdText, silent, player, args);
|
cmd.Run(cmdText, silent, player, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ Use past tense when adding new entries; sign your name off when you add or chang
|
||||||
* Fixed SSC not save `ateArtisanBread`, `usedAegisCrystal`, `usedAegisFruit`, `usedArcaneCrystal`, `usedGalaxyPearl`, `usedGummyWorm`, `usedAmbrosia`, `unlockedSuperCart`, `enabledSuperCart` flags, and Server will correct read them. (@hufang360)
|
* Fixed SSC not save `ateArtisanBread`, `usedAegisCrystal`, `usedAegisFruit`, `usedArcaneCrystal`, `usedGalaxyPearl`, `usedGummyWorm`, `usedAmbrosia`, `unlockedSuperCart`, `enabledSuperCart` flags, and Server will correct read them. (@hufang360)
|
||||||
* Allow flask buffs to be applied on town npc due to the Flymeal. Add a permission could skip the buff detection. (@KawaiiYuyu)
|
* Allow flask buffs to be applied on town npc due to the Flymeal. Add a permission could skip the buff detection. (@KawaiiYuyu)
|
||||||
* Dockerize TShock (@PotatoCider)
|
* Dockerize TShock (@PotatoCider)
|
||||||
|
* Log the command itself without arguments if the command is not DoLog. (@sgkoishi, [#2779](https://github.com/Pryaxis/TShock/issues/2779))
|
||||||
|
|
||||||
* Add ability for items given to players to be inserted directly into their inventory instead of spawned as an item drop (@pontaoski)
|
* Add ability for items given to players to be inserted directly into their inventory instead of spawned as an item drop (@pontaoski)
|
||||||
* Added support of `-lang` and `-language` flags for our i18n system. (@KawaiiYuyu)
|
* Added support of `-lang` and `-language` flags for our i18n system. (@KawaiiYuyu)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue