Please remove ALL the folder of the FireFreeze 1.x before updating! I Finally finished the
FireFreeze 2.0! This version has various improvements and several new features!
// If you see a bug, please report it on the discussion page or on my discord server! Features:
Recoded ALL the plugin!
Remade the /firefreeze command
/freezehistory command! (Permission: firefreeze.freezehistory) Now you can see when a player has been frozen, with the times
All data stored on SQLite (by default) or MySQL
Possibility to merge /unfreeze to /freeze in the config
NEW! Anydesk task. When a player gets frozen, he has 1 minute (you can modify the time in the config) to give the anydesk id in chat, otherwise the plugin will send a message to all the staff saying "this player has not give the anydesk id" (obviously you can modify this message)
Now you can make the console execute various commands when a player gets frozen/unfrozen
Now the configuration file is split in 2 different files! config.yml for the configuration, and messages.yml for all the messages
Recoded all the API!
There are 3 events in the plugin:
PlayerFreezeAddEvent, PlayerFreezeRemoveEvent, and PlayerFreezeQuitEvent
PlayerFreezeAddEvent is called when the players gets frozen. You can get the staff and the frozen player
PlayerFreezeRemoveEvent is called when the players get unfrozen. You can get the staff and the unfrozen player
PlayerFreezeQuitEvent is called when the player quits the server while frozen. You can get only the frozen player
Usage of the FreezeProfile class: The FreezeProfile class is the custom player object. You can freeze/unfreeze the player and/or teleport him to the freeze location
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[/SPOILER] [B
][/B
]