Giter VIP home page Giter VIP logo

popcommand's Introduction

Features

  • Displays the serveur population informations
  • Tweak the information displayed in the chat

Permissions

  • popcommand.use - Allows player to use the /pop command if requiered in config
  • popcommand.admin - Allows player to use the /apop command

Commands

  • pop - Displays the population infos
  • apop - Displays the full population infos (for admins)

Also work with the ! prefix (such as !pop)

Configuration

Default configuration:

{
  "Use permission for lambda players": false,
  "Broadcast to every player on /pop": false,
  "Chat default avatar": 0,
  "Display Options": {
    "Show player count": true,
    "Show server slots": true,
    "Show sleepers": false,
    "Show joining players": false,
    "Show players in queue": false
  }
}
  • Use permission for lambda players (true or false) - If true, players will need the popcommand.use permission to use the /pop command
  • Broadcast to every player on /pop (true or false) - If true, the /pop command will be broadcasted to every player on the server
  • Chat default avatar (ulong*) - The steam avatar that appears on command trigger (steamId)

WARNING: You can tweak theses options but make sure to edit the lang file to match your changes

  • Display Options - Options to tweak the information displayed in the chat
    • Show player count (true or false) - If true, the player count will be displayed
    • Show server slots (true or false) - If true, the server slots will be displayed
    • Show sleepers (true or false) - If true, the sleepers count will be displayed
    • Show joining players (true or false) - If true, the joining players count will be displayed
    • Show players in queue (true or false) - If true, the players in queue count will be displayed

Localization

Default english translation:

{
  "PopCommand.ChatMessage": "Players online: <color=orange>{0}</color>/<color=orange>{1}</color>",
  "PopCommand.AdminMessage": "Players online: <color=orange>{0}</color>/<color=orange>{1}</color> | Sleeping: <color=orange>{2}</color> | Joining: <color=orange>{3}</color> | Queued: <color=orange>{4}</color>",
  "PopCommand.PermissionDeny": "You are not allowed to run this command!",
  "PopCommand.AdminPermissionDeny": "Only administrators can run this command!",
  "PopCommand.Error": "The config/lang file contains some errors!"
}

According to the Display Options in the config, you can tweak theses messages to match your changes.

PLEASE MAKE SURE TO KEEP THE {x} PARAMETERS STARTING FROM 0 AND WITH THE ASCENDING ORDER!!

If there is more {x} parameters than configure in the Display Options, the message will not be displayed and the error message will appear.

Credits

popcommand's People

Contributors

handys11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.