Skip to content

A plugin for TShock that kills players if they get too far from others

License

Notifications You must be signed in to change notification settings

Kuz-zzz/StayClose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

StayClose

Config options (tshock/stayclose.json):

  • killEveryone: if true, all players die if one goes too far;
  • enableTeams: the player dies if they are too far from their team even if other players are nearby;
  • secondsUntilDeath: time players have to go back to others until they die. If 0, players die instantly;
  • distance: distance in blocks that is considered "far".

Usage:

  • put StayClose.dll in ServerPlugins

Note that lag can do funny things and make the game nearly impossible. It checks players' positions every 2 seconds and when players move (falling does not count), so keep in mind that sometimes you'll have to move a little for it to recognize your position (blame relogic).