Editing the return in HandleSpecial; Fixes #2436.

This commit is contained in:
Armano den Boef 2021-08-23 22:58:56 +02:00 committed by GitHub
parent 988c36e3ac
commit 5bcd37949b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3240,6 +3240,7 @@ namespace TShockAPI
{
TShock.Log.ConsoleDebug($"GetDataHandlers / HandleSpecial rejected enchanted sundial permission {args.Player.Name}");
args.Player.SendErrorMessage("You do not have permission to use the Enchanted Sundial.");
return true;
}
else if (TShock.Config.Settings.ForceTime != "normal")
{
@ -3250,8 +3251,8 @@ namespace TShockAPI
}
else
args.Player.SendErrorMessage("You must set ForceTime to normal via config to use the Enchanted Sundial.");
return true;
}
return true;
}
return false;