To configure the new features, reset your config or add the following:
Code (YAML):
freeze-gui:
enabled: true
# Should the gui be enabled on freezeall? enabled-on-freezeall: false
title: '&b&lYou''re frozen'
rows: 3
# Should players be able to close the GUI? # WARNING: If allow-close is false players will not be able to disconnect from the server, instead they'll have to close their client allow-close: true
items:
ts-item:
material: BEDROCK
# Data is optional in this case (By default data is 0) #data: 0 # Amount is also optional (By default amount is 1) #amount: 1 name: '&cYou''re frozen'
lore: - '&7You''ve been frozen for hacking'
- '&7Join our teamspeak server and you will talk to a staff'
- '&7IP: ts.teamspeak.com'
x-cord: 4
y-cord: 2
freeze-info-item:
material: WOOL
data: 14
amount: 1
name: '&bFreeze Info'
lore:
- '&aFrozen by: &7{FREEZER}' - '&aLength: &7{TIME}' - '&aLocation: &7{LOCATION}' - '&aReason: &7{REASON}' x-cord: 6
y-cord: 2
# If no servers are provided these servers will be used (location can never be used) # Remember you can always use /freeze <player> * to freeze them on ALL servers using SimpleFreeze # If you don't want any default servers set this to [] (ex. default-servers: []) default-servers: []
# Commands ran when a player that is frozen leaves (If you don't want any logout-command change the below to logout-commands: []) logout-commands:
freeze: - '/broadcast &b
{PLAYER
} &7left while frozen'
tempfreeze: - '/broadcast &b
{PLAYER
} &7left while frozen with &b
{TIME
} &7left in their freeze'
# Don't want any commands to run? Instead of putting a list of commands put [] freezeall: []
# Message sent to command sender of /freezeall freezeall-success: - '
{PREFIX
}Server frozen successfully'
# Message sent to command sender of /freezeall unfreezeall-success: - '
{PREFIX
}Server unfrozen successfully'
Changelog
A customizable GUI may now appear on a frozen players screen
You can now set default servers in the config (If no servers are provided when freezing those servers will be used)
You can now perform a global freeze by providing * as the server argument (Or just add every server to your default-servers in the config)
Logout commands can now be set for each specific type of frozen player
Successful freezeall/unfreezeall messages are now configurable in the config
Fixed a bug where sometimes freezing/unfreezing a player on a SQL sever caused an error or did nothing at all
Fixed a bug where sounds would break after /sf reload
Fixed a bug where unfreeze notify messages would sent on servers that the player wasnt even frozen on
Fixed a bug where console name wouldn't change to the config set one for the freezeall-message