Manic Digger

It is currently Mon May 20, 2013 6:07 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Patches I made
PostPosted: Tue Dec 27, 2011 3:33 am 
Online
User avatar

Joined: Thu Apr 21, 2011 4:32 am
Posts: 142
Added the /memoryusage command, it is only usable by admins it displays how much physical memory the Manic Digger Server is using. Changed the /servertime command so that it is useable by all users.


Attachments:
0005-Added-the-memoryusage-command-it-is-only-usable-by-a.patch [4.55 KiB]
Downloaded 13 times

_________________
http://www.facebook.com/strangebutfunny.net
Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Tue Dec 27, 2011 11:46 am 
Online
User avatar

Joined: Thu Apr 21, 2011 4:32 am
Posts: 142
Added the /serversize command, it displays the size of
the default.mddbs file in MB and KB and modified
/memoryusage to also display in MB and KB


Attachments:
0006-Added-the-serversize-command-it-displays-the-size-of.patch [2.46 KiB]
Downloaded 17 times

_________________
http://www.facebook.com/strangebutfunny.net
Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Wed Dec 28, 2011 2:23 am 
Offline
User avatar

Joined: Thu Apr 21, 2011 7:29 pm
Posts: 333
I think /uptime and other statistical commands should be usable by all users.

_________________
Uwielbiam creepery, przy nich można się naprawdę rozerwać!
Song for all minecraft fanboys!


Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Sun Feb 26, 2012 10:32 pm 
Online
User avatar

Joined: Thu Apr 21, 2011 4:32 am
Posts: 142
Re-added the /lockserver command,


Attachments:
0002-Added-the-lockserver-command-allows-locking-so-no-bl.patch [968 Bytes]
Downloaded 16 times

_________________
http://www.facebook.com/strangebutfunny.net
Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Tue Apr 17, 2012 4:02 am 
Offline
Site Admin

Joined: Mon Jun 21, 2010 12:02 pm
Posts: 384
Anthony wrote:
added the /restart command, only used by admins, it
starts a new process of ManicDiggerServer.exe and exits
the old one.

It won't work on Linux because it would need to be Process.Start("mono ManicDiggerServer.exe");

Real /restart command should just manually create new server object. Create new socket, remove all players, reload map etc.


Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Wed Apr 25, 2012 9:04 pm 
Offline
User avatar

Joined: Thu Apr 21, 2011 7:29 pm
Posts: 333
Is there any way to check if MD is running under Mono or "real" .NET? Then we can just do if and start either using Anthony's code or exe's

_________________
Uwielbiam creepery, przy nich można się naprawdę rozerwać!
Song for all minecraft fanboys!


Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Thu Apr 26, 2012 1:23 am 
Offline

Joined: Sat Apr 21, 2012 2:28 am
Posts: 18
simple.
ServeCommand.cs > IsMono
i would think that,,
Code:
 public bool IsMono = Type.GetType("Mono.Runtime") != null;

If (IsMono = true);
{
//run Anthony's code
else;
//run exe's code
{

sorry for the psuedo-vb/c# code. coming at this form VB, kind if...infuriating.
but yeah, that should work.


Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Sat Aug 04, 2012 7:36 am 
Online
User avatar

Joined: Thu Apr 21, 2011 4:32 am
Posts: 142
Added the /me command


Attachments:
0001-added-me-command-adds-a-phrase-to-the-chat-with-the-.patch [2.79 KiB]
Downloaded 17 times

_________________
http://www.facebook.com/strangebutfunny.net
Top
 Profile  
 
 Post subject: Re: Patches I made
PostPosted: Sat Aug 04, 2012 9:14 am 
Online
User avatar

Joined: Thu Apr 21, 2011 4:32 am
Posts: 142
added chat log of give command now it says "PLAYER gave 90 wood to PLAYER" after usage of the give command


Attachments:
0002-added-chat-log-of-give-command-now-it-says-PLAYER-ga.patch [1.68 KiB]
Downloaded 11 times

_________________
http://www.facebook.com/strangebutfunny.net
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group