1 Screenshot

About This File

This mod is just a life quality improvement for those who find themselves typing redundant code on the console.

It doesn't really change the game in any way other than adding some handy console commands.

In case of any questions about how stuff works, just take a look at the code.

Just install this mod on the SERVER and it's ready to be used.

Command list:

shutdown(bool save)

Same as c_shutdown()

reset(bool save)

Same as c_reset()

restart(bool save)

Same as c_reset(), for those who just like me think that the word "restart" is nice and smooth to type.

modList(int index)

Prints a table-like list of all the mods active on the server, containing the following information:

ID: just for organizing the list better and to be used as a parameter;

Name: workshop name of the mod;

c_requires: whether or not the client needs to download the mod in order to join the server;

Version: the mod version;

Fancy Name: The way the mod is called, such as "expert tools".

Parameters:

int index: [optional] This parameter allows you to see information about the specific mod instead the whole list.

count(str prefab)

Uses c_announce() to display a count of the prefab on the world. See parameters for more info.

Parameters:

str prefab:

"beefalo": counts and specifies beefalo and baby beefalo.

"gears": counts gears on the world, including those that are still inside the mobs, just waiting to be killed.

You can also input any prefab to have a generic message with a count of that prefab.

revive(int playerIndex)

Revives players, specific or all.

Parameters:

int playerIndex: [optional] specifies the player to revive by the number you get with c_listallplayers(). If absent, revives all dead players.

kill(int playerIndex)

Works just like revive(), but kills instead of reviving.

creative(int playerIndex)

Toggles creative mode on playerIndex.

Parameters:

int playerIndex: specifies the player.

isCreative(int playerIndex, bool noPrint)

Returns whether or not the player is on creative mode.

Parameters:

int playerIndex: [optional] specifies the player.

bool noPrint: [optional] suppresses the print.

If used with no parameters, a list showing all players and their creative status will be displayed.

say(str message)

Allows you to send chat messages from the console easier.

Parameters:

str message: the message.

kick(int playerIndex)

Kicks a player and drops its inventory.

Parameters:

int playerIndex: specifies the player.

ban(int playerIndex)

Bans a player and drops its inventory.

Parameters:

int playerIndex: specifies the player.

tp(int p1, int p2)

Teleports player 2 to player 1. Specify only player1 to teleport all to p1.

If you get confused on who goes to who, just remember that p1 never moves.

Parameters:

int p1: specifies the final location of the teleport.

int p2: [optional] specifies the player that is going to be teleported.

If p2 is absent, all players will be teleported to p1.

p1 and p2 work just like playerIndex on the other functions.

heal(int playerIndex, noPrint)

Heals health, sanity, hunger, moisture, temperature and removes revival penalties.

Parameters:

int playerIndex: specifies the player.

bool noPrint: [optional] suppresses the print.

god(int playerIndex, noPrint, god)

Applies heal() and makes the player a god, invulnerable to everything.

Parameters:

int playerIndex: specifies the player.

bool noPrint: [optional] suppresses the print.
bool god: [optional] forces god state to be false or true, instead of toggling it.

isGod(int playerIndex)

Returns whether or not the player is on GodMode. Works in a similar way to isCreative().

Parameters:

int playerIndex: [optional] specifies the player.

bool noPrint: [optional] suppresses the print.

If used with no parameters, a list showing all players and their GodMode status will be displayed.

silentBan(int playerIndex)

Silently bans a player, without kicking from the server.

Parameters:

int playerIndex: specifies the player.

unban(int playerIndex)

Removes a player from the ban list, allowing him to join the server again.

Parameters:

int playerIndex: specifies the player. This player here is not a player that is on the server, its a player from the banlist()

banlist()

Displays a list with all the banned players, does not display user names.

serverTime()

Prints for how long the server has been running.

goNext(str prefab, int ...)

Teleports how many players needed to the nearest specified prefab.

Parameters:

str prefab: this is the prefab that is going to be the teleport target.

int ...: [optional] this means that you could specify how many number of playerIndex'es you wish. Example: goNext("beefalo",1,3,7,4). This would teleport players 1,3,4 and 7 to the closest beefalo. If used with no parameters, teleports all players to the prefab.

player()

Displays a list with all the players. Lists player indexes, name, character and if they are admin.

invisible(int playerIndex, bool noPrint, bool invis)

Makes the player invisible.

Parameters:

int playerIndex: specifies the player.

bool noPrint: [optional] suppresses the print.
bool invis: [optional] forces invisible state to be false or true, instead of toggling it.

isInvisible(int playerIndex, bool noPrint)

Returns whether or not the player is invisible.

Parameters:

int playerIndex: [optional] specifies the player.

bool noPrint: [optional] suppresses the print.

If used with no parameters, a list showing all players and their invisible status will be displayed.

I'm currently working on adding other functions and improving the mod.

Please leave a comment to say something you think should be different or just that the mod helps you. Show some love!

You may request a feature that you would like to see in this mod.


What's New in Version 0.0.5   See changelog

Released

##[0.0.5] - 2016-02-09
### Added
- killFires(bool firepit)
- spectator(int spectated, int spectator)
- serverVersion()
- thunder(int playerIndex)
- Parameters noPrint and invis to invisible()
- Parameters noPrint and godMode to god()
- Parameter noPrint to heal()

  • Like 1



User Feedback

Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now