First attempt at getting the signs of cells to display information #31
The variables possible are: * %player% - the player's last known name * %uuid% - the player's uuid, or what can fit on a sign * %reason% - the reason the player was jailed * %jailer% - the person/thing who jailed this player * %afktime% - the amount of time the player has been afk * %timeinminutes% - the amount of remaining time the player has in minutes If the player is jailed forever, then it pulls from the language file `jailedforeversign` property.
This commit is contained in:
@ -15,6 +15,7 @@ import com.graywolf336.jail.enums.Settings;
|
||||
import com.graywolf336.jail.legacy.LegacyManager;
|
||||
import com.graywolf336.jail.listeners.BlockListener;
|
||||
import com.graywolf336.jail.listeners.CacheListener;
|
||||
import com.graywolf336.jail.listeners.CellSignListener;
|
||||
import com.graywolf336.jail.listeners.EntityListener;
|
||||
import com.graywolf336.jail.listeners.HandCuffListener;
|
||||
import com.graywolf336.jail.listeners.JailingListener;
|
||||
@ -87,6 +88,7 @@ public class JailMain extends JavaPlugin {
|
||||
PluginManager plm = this.getServer().getPluginManager();
|
||||
plm.registerEvents(new BlockListener(this), this);
|
||||
plm.registerEvents(new CacheListener(this), this);
|
||||
plm.registerEvents(new CellSignListener(this), this);
|
||||
plm.registerEvents(new EntityListener(this), this);
|
||||
plm.registerEvents(new HandCuffListener(this), this);
|
||||
plm.registerEvents(new JailingListener(this), this);
|
||||
|
Reference in New Issue
Block a user