graywolf336/Jail

Jail attempts to jail players that have never joined the server

hitechwizard opened this issue · 3 comments

Using the /jail command, I seem to jail people like sign, etc. Before attempting to jail a player, jail should verify that the player has been on the server before.

The easiest way to check this is to use the Bukkit.OfflinePlayer.getLastPlayed(), which will return -1 if the player hasn't been on the server.

Couple ideas came to me from this.

First one is doing this but making it controllable via the config that way
if someone wanted that feature enabled it could be. Then if it is enabled
they have to type the confirm command to really jail someone who has never
been on before.

Second is command matching/suggestions. If you only provide one argument
then it suggests commands if it didn't find any.
On Jun 7, 2015 9:55 PM, "hitechwizard" notifications@github.com wrote:

Using the /jail command, I seem to jail people like sign, etc. Before
attempting to jail a player, jail should verify that the player has been on
the server before.

The easiest way to check this is to use the
Bukkit.OfflinePlayer.getLastPlayed(), which will return -1 if the player
hasn't been on the server.


Reply to this email directly or view it on GitHub
#82.

Marking it as an enhancement since the old version of jail allowed for jailing players who had never visited the server before.

You can overwrite this with -f in the /jail command now.