Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variable in message #53

Closed
Toshka17 opened this issue Feb 23, 2015 · 6 comments
Closed

Add variable in message #53

Toshka17 opened this issue Feb 23, 2015 · 6 comments

Comments

@Toshka17
Copy link

Add to this message "broadcastmessageforminutes" variable "reason", please
it would be awesome)

And add variable "cell" :)

@graywolf336
Copy link
Owner

What do you mean add variable cell? Want a different message if they were jailed in a cell?

@Toshka17
Copy link
Author

It would be perfect if the message "broadcastmessageforminutes" says not only about how many minutes player should be in a jail, but also in what prison, in what camera and for what reason.

Now it looks like this:
broadcastmessageforminutes: '&9% 0% has been jailed for %1% minutes.'

%0% - player, %1% - time.

And could be done as follows:
broadcastmessageforminutes: '&9%0% has been jailed for %1% minutes for %2% in %3% prison, in cell %4%.'

%0% - player, %1% - time, %2% - reason, %3% - jail_name, %4% - cell_name.

@graywolf336
Copy link
Owner

Problem is what if they're not jailed in a cell and are just jailed in that
jail? I'll have to add two messages to support them being jailed in cells.
On Feb 24, 2015 10:57 PM, "Toshka17" notifications@github.com wrote:

It would be perfect if the message "broadcastmessageforminutes" says not
only about how many minutes player should be in a jail, but also in what
prison, in what camera and for what reason.

Now it looks like this:
broadcastmessageforminutes: '&9% 0% has been jailed for %1% minutes.'

%0% - player, %1% - time.

And could be done as follows:
broadcastmessageforminutes: '&9%0% has been jailed for %1% minutes for %2%
in %3% prison, in cell %4%.'

%0% - player, %1% - time, %2% - reason, %3% - jail_name, %4% - cell_name.


Reply to this email directly or view it on GitHub
#53 (comment).

@Toshka17
Copy link
Author

hmmmm..

@graywolf336
Copy link
Owner

Actually, what I'll do is pass the information needed and you can add the numbers you described and they'll be there but it won't be in the default message.

@graywolf336
Copy link
Owner

broadcastmessageforminutes:

  • %0% is the last known player name
  • %1% is the length in minutes
  • %2% is the reason
  • %3% is the jail name
  • %4% is the cell name, empty is no cell.

broadcastmessageforever:

  • %0% is the last known player name
  • %1% is the reason
  • %2% is the jail name
  • %3% is the cell name, empty is no cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants