Jump to content
  • 0

Server time


ImportBot

Question

Recommended Posts

Originally Posted by intyiciya*:

 

Nyet.

 

I understand that you don't want someone to type a chat command. But I still do not understand which date and time exactly you mean?

 

* Current calendar date and current time? And if so, the time local to the player, local to the server, local to the layer, or some universal time like UTC? (And most importantly, why would you want to spam this in chat_)

 

* Uptime of the server in days, hours, minutes and seconds?

 

* Elapsed time for the round, but then why do you need date?

 

How often do you want this to be spammed in chat?

 

It would help if you explained why you need this information? What problem are you trying to solve? Again, use more words. The more details you provide, the easier it is for us to piece together what you want.

* Uptime of the server in days, hours, minutes and seconds?

 

why do I need this_)

to know when did restart the server

the server must be rebooted for 100% hit

 

 

where is that this plugin was,but was can't find it

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by EBassie*:

 

* Uptime of the server in days, hours, minutes and seconds?

 

why do I need this_)

to know when did restart the server

the server must be rebooted for 100% hit

 

 

where is that this plugin was,but was can't find it

But... why would you need this in the ingame chat, as the server's uptime is shown in Procon?

 

Posted Image

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

* Uptime of the server in days, hours, minutes and seconds?

 

why do I need this_)

to know when did restart the server

the server must be rebooted for 100% hit

 

 

where is that this plugin was,but was can't find it

Okay, now we are getting somewhere.

 

Why isn't the uptime shown in Procon good enough, as EBassie points out in screenshot above? Why must it be in chat?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

But... why would you need this in the ingame chat, as the server's uptime is shown in Procon?

 

Posted Image

so that was shown during the game in the chat

 

I need

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by Phil_K*:

 

Hi.

 

Take a look at my "AdminIn & Spawn Message" plugin found here -> showthread....-2-2014-02-10)*

 

It has the options to send the round time and server uptime via the chat.

Maybe you came along a server with that.

 

Greets

Phil.

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

I need a plugin which displays the time or date,as the server is running,so that was shown in the chat during the game

 

don't you understand?

Nyet.

 

I understand that you don't want someone to type a chat command. But I still do not understand which date and time exactly you mean?

 

* Current calendar date and current time? And if so, the time local to the player, local to the server, local to the layer, or some universal time like UTC? (And most importantly, why would you want to spam this in chat_)

 

* Uptime of the server in days, hours, minutes and seconds?

 

* Elapsed time for the round, but then why do you need date?

 

How often do you want this to be spammed in chat?

 

It would help if you explained why you need this information? What problem are you trying to solve? Again, use more words. The more details you provide, the easier it is for us to piece together what you want.

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by LCARSx64*:

 

For spamming server uptime:

 

Install and setup this plugin: ...*

 

Then add this limit (change the value highlighted in red to the frequency you would like in seconds, minimum 10 seconds):

 


Spam Server Uptime

 

Create a new limit to evaluate OnIntervalServer. Set the evaluation_interval to 60 seconds. Set action to None.

 

Set first_check to this Code:

Code:

// Show Server Uptime

TimeSpan servUp = TimeSpan.FromSeconds(server.TimeUp);
String msg = "Server Uptime: " + servUp.Days.ToString() + "d " + servUp.Hours.ToString() + "h ";
int iMins = servUp.Minutes;
int iSecs = servUp.Seconds;

if (iMins < 10) msg = msg + "0";
msg = msg + iMins.ToString() + "m ";
if (iSecs < 10) msg = msg + "0";
msg = msg + iSecs.ToString() + "s";

plugin.SendGlobalMessage(msg);

return false;

End of post!

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

hi.

 

Take a look at my "adminin & spawn message" plugin found here -> showthread....-2-2014-02-10)*

 

it has the options to send the round time and server uptime via the chat.

Maybe you came along a server with that.

 

Greets

phil.

good.very nice men)
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by HATANO_KENJI*:

 

For spamming server uptime:

 

Install and setup this plugin: ...*

 

Then add this limit (change the value highlighted in red to the frequency you would like in seconds, minimum 10 seconds):

 


Spam Server Uptime

 

Create a new limit to evaluate OnIntervalServer. Set the evaluation_interval to 60 seconds. Set action to None.

 

Set first_check to this Code:

Code:

// Show Server Uptime

TimeSpan servUp = TimeSpan.FromSeconds(server.TimeUp);
String msg = "Server Uptime: " + servUp.Days.ToString() + "d " + servUp.Hours.ToString() + "h ";
int iMins = servUp.Minutes;
int iSecs = servUp.Seconds;

if (iMins < 10) msg = msg + "0";
msg = msg + iMins.ToString() + "m ";
if (iSecs < 10) msg = msg + "0";
msg = msg + iSecs.ToString() + "s";

plugin.SendGlobalMessage(msg);

return false;

End of post!

Excuse me, Can your code be changed to the current time?

 

Like this:

Current time: 2018/06/29 - AM:07:00

 

Nyet.

 

I understand that you don't want someone to type a chat command. But I still do not understand which date and time exactly you mean?

 

* Current calendar date and current time? And if so, the time local to the player, local to the server, local to the layer, or some universal time like UTC? (And most importantly, why would you want to spam this in chat_)

 

* Uptime of the server in days, hours, minutes and seconds?

 

* Elapsed time for the round, but then why do you need date?

 

How often do you want this to be spammed in chat?

 

It would help if you explained why you need this information? What problem are you trying to solve? Again, use more words. The more details you provide, the easier it is for us to piece together what you want.

I have a requirement to show the current time, Because of my server, No players have joined the server during daytime in my time zone, So I need the player to provide screenshots of the current time to do "Thank you for helping populate!"

 

How can I solve this problem for this?

 

My time zone is GMT+8, Perhaps the current time directly targeting the player will be the best solution.

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by maxdralle*:

 

@HATANO_KENJI

 

DateTime.Now is what you need.

this sample returns the current server time:

Code:

plugin.SendGlobalMessage("Current Server Time: " + DateTime.Now.ToString("yyyy/MM/dd HH:mm"));
you can format the DateTime string like this:

DateTime.Now.ToString("MM/dd/yyyy"); // 07/21/2007

DateTime.Now.ToString("dddd, dd MMMM yyyy"); //Saturday, 21 July 2007

DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm"); // Saturday, 21 July 2007 14:58

DateTime.Now.ToString("dddd, dd MMMM yyyy hh:mm tt"); // Saturday, 21 July 2007 03:00 PM

DateTime.Now.ToString("dddd, dd MMMM yyyy H:mm"); // Saturday, 21 July 2007 5:01

DateTime.Now.ToString("dddd, dd MMMM yyyy h:mm tt"); // Saturday, 21 July 2007 3:03 PM

DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm:ss"); // Saturday, 21 July 2007 15:04:10

DateTime.Now.ToString("MM/dd/yyyy HH:mm"); // 07/21/2007 15:05

DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"); // 07/21/2007 03:06 PM

DateTime.Now.ToString("MM/dd/yyyy H:mm"); // 07/21/2007 15:07

DateTime.Now.ToString("MM/dd/yyyy h:mm tt"); // 07/21/2007 3:07 PM

DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss"); // 07/21/2007 15:09:29

DateTime.Now.ToString("MMMM dd"); // July 21

DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK"); // 2007-07-21T15:11:19.1250000+05:30

DateTime.Now.ToString("ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"); // Sat, 21 Jul 2007 15:12:16 GMT

DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss"); // 2007-07-21T15:12:57

DateTime.Now.ToString("HH:mm"); // 15:14

DateTime.Now.ToString("hh:mm tt"); // 03:14 PM

DateTime.Now.ToString("H:mm"); // 5:15

DateTime.Now.ToString("h:mm tt"); // 3:16 PM

DateTime.Now.ToString("HH:mm:ss"); // 15:16:29

DateTime.Now.ToString("yyyy'-'MM'-'dd HH':'mm':'ss'Z'"); // 2007-07-21 15:17:20Z

DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm:ss"); // Saturday, 21 July 2007 15:17:58

DateTime.Now.ToString("yyyy MMMM"); // 2007 July

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by HATANO_KENJI*:

 

plugin.SendGlobalMessage("Current Server Time: " + DateTime.Now.ToString("yyyy/MM/dd tt HH:mm")); // 2018/06/30 AM:00:00

 

Thank you for your help!

 

I have been able to correctly display the time format I want, But the game server seems to be different from my time zone.

 

Excuse me, Can we show the current time of the player?

 

PS.Our time zone is: GMT+8

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by maxdralle*:

 

...

PS.Our time zone is: GMT+8

Code:
plugin.SendGlobalMessage("Current Server Time (China): " + DateTime.UtcNow.AddHours(8).ToString("yyyy/MM/dd HH:mm"));
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

I can help you with display server's date & time

Download this plugin

myrcon.net/.../proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions

 

Add in this code Code:

######  show server time & date
On Say;Text !time; say Time: %hms% Date:%ymd%[YMD];PlayerYell Time: %hms% Date:%ymd% [YMD]
When type !time , it will show time & date on chat and also yell to the player who type in that command.

thank you

but I need another plugin,there is no need to type in the chat team,he shows how much time the server is running

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by trans-am*:

 

I can help you with display server's date & time

Download this plugin

myrcon.net/.../proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions

 

Add in this code Code:

######  show server time & date
On Say;Text !time; say Time: %hms% Date:%ymd%[YMD];PlayerYell Time: %hms% Date:%ymd% [YMD]
When type !time , it will show time & date on chat and also yell to the player who type in that command.
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

I need a plugin which displays the time or date,as the server is running,so that was shown in the chat during the game

 

don't you understand?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

I will try to find you some help from a person that speaks Russian.

 

Until then, explain with more words what you want. We can understand Google Translate better if you describe what you want in several different ways, but always describe the same thing. For example:

 

Russian (Google Translate):

??? ???????? ???? ?????. ????? ??? ??? ??????? ???????. ???????????? ??????? ????? ???? ?????. ? ?? ?????? ???, ?? ????? ? ?????, ? ??? ?????.

 

It is very clear what I am talking about, right?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

No. I'm starting to suspect juvenile trolling.

 

Are you asking for a plugin to tell you the server's uptime? That uptime is already visible in Procon (top right, just below the server name). Why do you need a plugin to tell you the same information?

 

What language do you speak?

I need help ftw trolling!!!?

 

I need that everything seen in the chat how long the server is running

 

Russia

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

No. I'm starting to suspect juvenile trolling.

 

Are you asking for a plugin to tell you the server's uptime? That uptime is already visible in Procon (top right, just below the server name). Why do you need a plugin to tell you the same information?

 

What language do you speak?

No trolling!!!I need that everything seen in the chat how long the server is running

 

Russia

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

understand_)

No. I'm starting to suspect juvenile trolling.

 

Are you asking for a plugin to tell you the server's uptime? That uptime is already visible in Procon (top right, just below the server name). Why do you need a plugin to tell you the same information?

 

What language do you speak?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

1) Please don't create multiple threads for the same question

2) What exactly are we supposed to make of this post? What's your questions? What's your problem?

3) If you're having a problem, provide more information about what you have tried so far

4) If you need some help, try actually describing what you're looking for/having troubles with

sorri
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.