Jump to content
  • 0

Can I make server only allowed 3 players


JoeNuts

Question

4 answers to this question

Recommended Posts

  • 0

You could limit the amount of players but in my opinion the best way is to turn the whitelist on (/whitelist on) and add only yourself and your friends to the whitelist (/whitelist add NAME) so that only the people that are in the whitelist will be able to join, so there's no risk that you are on but two other people can still join

  • Thanks 1
Link to comment
Share on other sites

  • 0

I can help you with that! I made a script that does exactly that! Use /playerslots <number> to set the player slots!

  1. command /playerslot <number>:
  2.   permission: op
  3.   aliases: slot, ps
  4.   trigger:
  5.     set {server::playerslots} to arg-1
  6.     play sound "entity.player.levelup" to player
  7.     message "&f "
  8.     message "&3Set the current player slots to &b%{server::playerslots}%&3!"
  9.     message "&f "
  10.  
  11. on join:
  12.   if number of online players is more than {server::playerslots}:
  13.     console command "/kick %player% This server is full!"

 

  • Thanks 1

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

  • 0
49 minutes ago, Ezekia said:

I can help you with that! I made a script that does exactly that! Use /playerslots <number> to set the player slots!

  1. command /playerslot <number>:
  2.   permission: op
  3.   aliases: slot, ps
  4.   trigger:
  5.     set {server::playerslots} to arg-1
  6.     play sound "entity.player.levelup" to player
  7.     message "&f "
  8.     message "&3Set the current player slots to &b%{server::playerslots}%&3!"
  9.     message "&f "
  10.  
  11. on join:
  12.   if number of online players is more than {server::playerslots}:
  13.     console command "/kick %player% This server is full!"

 

the whitelist method is better as I explained it above and you should replace the `on join` with "on connect" because otherwise it's going to send the join and quit messages.

Also, instead of using 

 console command "/kick %player% This server is full!"

you should use

kick player due to "This server is full!"

 

  • Like 1
Link to comment
Share on other sites

  • 0
16 minutes ago, DeltaRays said:

the whitelist method is better as I explained it above and you should replace the `on join` with "on connect" because otherwise it's going to send the join and quit messages.

Also, instead of using 


 console command "/kick %player% This server is full!"

you should use


kick player due to "This server is full!"

 

Okay. Thanks for the help!

By reading this you are a confirmed nerd

IMG_1036.PNG

lolololol.PNG

lmao.PNG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...