don't inherit handled event args for them

This commit is contained in:
Ruby Rose 2017-07-11 16:29:48 +03:00
parent 79f66f554f
commit 3764527d3d

View file

@ -143,7 +143,7 @@ namespace TShockAPI.Hooks
/// <summary> /// <summary>
/// EventArgs used for the <see cref="PlayerHooks.PlayerPermission"/> event. /// EventArgs used for the <see cref="PlayerHooks.PlayerPermission"/> event.
/// </summary> /// </summary>
public class PlayerPermissionEventArgs : HandledEventArgs public class PlayerPermissionEventArgs
{ {
/// <summary> /// <summary>
/// The player who fired the event. /// The player who fired the event.
@ -176,7 +176,7 @@ namespace TShockAPI.Hooks
/// <summary> /// <summary>
/// EventArgs used for the <see cref="PlayerHooks.PlayerItembanPermission"/> event. /// EventArgs used for the <see cref="PlayerHooks.PlayerItembanPermission"/> event.
/// </summary> /// </summary>
public class PlayerItembanPermissionEventArgs : HandledEventArgs public class PlayerItembanPermissionEventArgs
{ {
/// <summary> /// <summary>
/// The player who fired the event. /// The player who fired the event.
@ -209,7 +209,7 @@ namespace TShockAPI.Hooks
/// <summary> /// <summary>
/// EventArgs used for the <see cref="PlayerHooks.PlayerProjbanPermission"/> event. /// EventArgs used for the <see cref="PlayerHooks.PlayerProjbanPermission"/> event.
/// </summary> /// </summary>
public class PlayerProjbanPermissionEventArgs : HandledEventArgs public class PlayerProjbanPermissionEventArgs
{ {
/// <summary> /// <summary>
/// The player who fired the event. /// The player who fired the event.
@ -242,7 +242,7 @@ namespace TShockAPI.Hooks
/// <summary> /// <summary>
/// EventArgs used for the <see cref="PlayerHooks.PlayerTilebanPermission"/> event. /// EventArgs used for the <see cref="PlayerHooks.PlayerTilebanPermission"/> event.
/// </summary> /// </summary>
public class PlayerTilebanPermissionEventArgs : HandledEventArgs public class PlayerTilebanPermissionEventArgs
{ {
/// <summary> /// <summary>
/// The player who fired the event. /// The player who fired the event.
@ -472,10 +472,7 @@ namespace TShockAPI.Hooks
var args = new PlayerPermissionEventArgs(player, permission); var args = new PlayerPermissionEventArgs(player, permission);
PlayerPermission(args); PlayerPermission(args);
if (args.Handled)
return args.Result; return args.Result;
else
return PermissionResult.Inconclusive;
} }
/// <summary> /// <summary>
@ -491,10 +488,7 @@ namespace TShockAPI.Hooks
var args = new PlayerItembanPermissionEventArgs(player, bannedItem); var args = new PlayerItembanPermissionEventArgs(player, bannedItem);
PlayerItembanPermission(args); PlayerItembanPermission(args);
if (args.Handled)
return args.Result; return args.Result;
else
return PermissionResult.Inconclusive;
} }
/// <summary> /// <summary>
@ -510,10 +504,7 @@ namespace TShockAPI.Hooks
var args = new PlayerProjbanPermissionEventArgs(player, bannedProj); var args = new PlayerProjbanPermissionEventArgs(player, bannedProj);
PlayerProjbanPermission(args); PlayerProjbanPermission(args);
if (args.Handled)
return args.Result; return args.Result;
else
return PermissionResult.Inconclusive;
} }
/// <summary> /// <summary>
@ -529,10 +520,7 @@ namespace TShockAPI.Hooks
var args = new PlayerTilebanPermissionEventArgs(player, bannedTile); var args = new PlayerTilebanPermissionEventArgs(player, bannedTile);
PlayerTilebanPermission(args); PlayerTilebanPermission(args);
if (args.Handled)
return args.Result; return args.Result;
else
return PermissionResult.Inconclusive;
} }
} }