Code Monkey home page Code Monkey logo

Comments (4)

Staartvin avatar Staartvin commented on July 23, 2024

No, that is not possible. Autorank works internally and externally with minutes.

from autorank-2.

Armarr avatar Armarr commented on July 23, 2024

Well you can change it in /ar leaderboard with the advanced config. Just not in other commands like /ar check, a layout for every command might be a nice feature to add actually.
change
leaderboard layout: '&6&r | &b&p - &7&d day(s), &h hour(s) and &m minute(s).'
to something like
leaderboard layout: '&6&r | &b&p - &7&th hour(s).'

from autorank-2.

Armarr avatar Armarr commented on July 23, 2024

@Staartvin I actually have some code from an unreleased plugin that reads messages from a config and fills in the parameters. If you're planning on doing something similar you can use it as an example.
You request a message here http://pastebin.com/R34f6yMP
This is the message class http://pastebin.com/awyfjUei
You call the argument (should have called it parameter) methods to fill in all parameters that might be appropriate for that message. It also tries to do some fancy stuff where when you do %s it goes backwards in the string to find a number and see if it's "player" or "players" for example. Though that probably needs more testing.
So with that I can do something like Messages.get("lobbyPreyWon").argument(map).argument(stalker.getPlayer()).broadcast();

EDIT: just took a look at the current language system and it already does something similar only with less options for dynamically changing the message, might be good enough though and probably better performing :P

from autorank-2.

Staartvin avatar Staartvin commented on July 23, 2024

Thanks for the classes, but I'm not sure I'm going to use them. This might be useful for other features, though.

from autorank-2.

Related Issues (20)

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.