FireFreeze is the best freeze plugin on the market! It has several new features never seen in other plugins, such as anydesk-id task, freeze history, freeze glowing, titles support, and more...
There are 3 events in the plugin: PlayerFreezeAddEvent, PlayerFreezeRemoveEvent, and PlayerFreezeQuitEvent
The FreezeProfile class is the custom player object. You can freeze/unfreeze a player and teleport him to the freeze location You can call it by using:
public class FireFreezeTest {
public void onEnable() {
FreezeProfile profile = new FreezeProfile(playerObject);
profile.freeze(); //To freeze the player
profile.unfreeze(); //To unfreeze the player
profile.forceUnfreeze(); //It's just a normal unfreeze but with the EntryType set to FORCED
profile.getWhoFroze(); //Returns the staff member who froze the player
}
}