Prevent timed command execution?
Hello guys,
I am working on raidzone plugin for my server, but I am new to this, all that is left for me to do is add one functionality mainly:

when i do "/home 1" outside of raidzone and enter raidzone command is not blocked. Maybe you could give me a tip here? Command is blocked when I try to do it from inside of raidzone, but when i initiate command that has timer like (home,tpr, trade) outside of raidzone, then after entering raidzone, the command will execute. How can I block such behaviour?

Hopefully you can give some answer to your fellow newbie :D
You'd need to store and kill the timer when they enter/exit if you don't want it to run after they enter/exit.
5e13a8d5b2bc5.jpg Wulf
You'd need to store and kill the timer when they enter/exit if you don't want it to run after they enter/exit.

Or should I add reference to nteleportation plugin, edit this plugin to add function which teleport cancels, and call it from within my RaidBlock plugin, like here, but i guess that would force me to edit nTeleportation :(

[PluginReference]
private Plugin EpicStuff;

private void Loaded()
{
    if (EpicStuff != null)
    {
        EpicStuff.Call("SomeMethod");
    }
}
If you are trying to stop a teleport from another plugin such as that one, it provides hooks such as CanTeleport for that purpose.
5e13a8d5b2bc5.jpg Wulf
If you are trying to stop a teleport from another plugin such as that one, it provides hooks such as CanTeleport for that purpose.

Ok bear with me another minute, here comes another novice question. Where can i see definition of this canteleport?
https://imgur.com/vFkGm0Zhttps://imgur.com/vFkGm0Zhttps://imgur.com/vFkGm0Z

edit: Ok its in noescape plugin. Its time to quit posting...

Merged post

@Wulf well I achieved what i wanted but it required me to edit NTeleportation plugin, I don't know if its "clean solution", it certainly makes me update nteleportation everytime new version comes out with my chunk of code :P
As mentioned above, NTeleportation also provides CanTeleport.
private bool CanTeleport(BasePlayer player)
{
    return false;
}​