FixFirstLogin

FixFirstLogin

I made this little plugin to fix new players getting stuck in walls or spawning on roofs, etc. and dying when they first log into the server.

It works by running a command after a configurable amount of ticks when players log in for the first time (or they don't have a player file).

I thought I should upload it here in case someone might find it useful. I couldn't find anything to do what I wanted so here it is.

config.yml

The config.yml file should be automatically generated for you the first time you start your server with the plugin in your plugins folder and add any new variables on plugin updates with their defaults.

ticks: 20
The number of ticks to wait before running the command.

command: spawn
The command to run after waiting the number of ticks.

  • Will replace any occurances of PLAYERNAME in the command with the player's name.
  • Will replace any occurances of PLAYERUUID in the command with the player's UUID.

Note that if you use spawn as your command you should have a plugin that provides that command or it won't work.

runas: player
Enter player or console to choose to run the command as the player or as console.

span: 5000
The number of milliseconds the player must have been logged in to avoid the command being run when they join.

prevent_new_logins: false
Stops new players from logging in.

prevent_message: "New players are not currently allowed to login. Please try again later."
The message to display to players who are prevented from logging in.

Commands

/ffl prevent <on|off>
Turn on or off the preventing of new players from logging in. Default: off (new players can login by default)

/ffl reload
Reload the config from disk.

Permissions

ffl.prevent
Gives access to use /ffl prevent <on|off>

ffl.reload
Gives access to use /ffl reload

ffl.all
Gives all FixFirstLogin permissions.
Note: Before FixFirstLogin v1.4 this permission was ffl.*

Source

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of danielfr789 danielfr789 Aug 06, 2015 at 05:45 UTC - 0 likes

    Hey can you update the source on GitHub with the latest version?

  • Avatar of ryvix ryvix Feb 18, 2015 at 01:11 UTC - 0 likes

    @danielfr789: Go

    I uploaded a new version which hopefully works with Spigot 1.8 properly.

  • Avatar of danielfr789 danielfr789 Feb 16, 2015 at 06:34 UTC - 0 likes

    Actually yes, just about to report that it doesn't work. If you need the error: http://pastebin.com/UUquc7G9

    Just PM me the spigot 1.8 version.

    Last edited Feb 16, 2015 by danielfr789
  • Avatar of ryvix ryvix Feb 15, 2015 at 23:36 UTC - 0 likes

    @danielfr789: Go

    Are you using this with Spigot 1.8? I may have to release a new version for Spigot 1.8.

  • Avatar of danielfr789 danielfr789 Feb 15, 2015 at 21:47 UTC - 0 likes

    Perfect plugin! Exactly what I needed. Thank you ryvix :)

  • Avatar of madtomic madtomic Sep 20, 2014 at 05:55 UTC - 0 likes

    very nice plugin! thanks!

  • Avatar of ryvix ryvix Apr 27, 2014 at 04:43 UTC - 0 likes

    FixFirstLogin v1.3

    • Compiled against Bukkit 1.7.9 with Java 1.7
    • Added the ability to prevent new players who have never logged in before from logging in.
  • Avatar of Serilum Serilum Nov 19, 2012 at 21:09 UTC - 0 likes

    Thank you for the plugin!

    McCombat a hardcore server whereas the only rule is no hacked client.

  • Avatar of DruidKiria DruidKiria Aug 27, 2012 at 03:07 UTC - 0 likes

    @ryvix: Go

    Awesome! Thank you very much! This solved everything!

  • Avatar of ryvix ryvix Aug 24, 2012 at 17:27 UTC - 0 likes

    @DruidKiria: Go

    I just uploaded version 1.2.1 which lets you replace PLAYERNAME in the command with the player's name.

Facts

Date created
Jun 19, 2012
Category
Last update
Feb 18, 2015
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
FixFirstLogin
Downloads
4,419
Recent files

Authors