must be a game bug, but for in the meantime you can use the new features of the tool to set the plants to being immortal without having to do them all by hand now
Posts by Kye
Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
-
-
The plant changer tool now supports changing maxdeath rate, so you no longer have to edit each file manually
-
Kye added a new version:
KyeSeptember 14, 2020 at 11:06 AM QuoteUpdate to the Plant Changer!
New Features:
More settings:
you can now set to change just:
Plant maturity rate or Plant Max Death rate or both
MaxDeathRate
you can now change the MaxDeathRate of all plants in the AutoGen/Plant Folder
Automatic File Mover
You can now set it so it will automatically move all the new edited files to the correct folder, don't worry it saves the vanilla files in a safe location
Console Text:
Know your settings,Version output to console, and some more text to help you out.
Main page has been updated with the new config options and what they do
-
im soon to release an update the the plantchanger, it has an added option for changing the max death rate of all the plants so you can make them live longer, hopefully
-
Kye added a new version:
FileOld Download Location.
Use this link instead: https://forum.play.eco/filebase/file/330-elixr-mods-features-pack/KyeSeptember 26, 2020 at 8:40 PM QuoteFix For Daily Plugin:
Fixed:
Server Crashed when trying to sell the Gift in a shop -
Kye hat eine neue Datei hinzugefügt:
FileBig Shovel
Big Shovel Mod Updated for 9.2 - Can pick up, up to the max stack sizes of the same kind! (Sand, Dirt, Clay) Here it is, One of the most requested things around, The Big Shovel!KyeJanuary 28, 2021 at 1:21 PM QuoteHere it is, One of the most requested things around, The Big shovel!
3 New shovel types,
Iron Big Shovel
Steel Big Shovel
Modern Big Shovel
Cost's slightly increased for balance
Credit to kirthos for the models and icons, (sorry i don't have the unity access for this, so the shovels look a bit weird in the hand) -
Kye hat eine neue Datei hinzugefügt:
FileOld Download Location.
Use this link instead: https://forum.play.eco/filebase/file/330-elixr-mods-features-pack/KyeSeptember 26, 2020 at 8:40 PM QuoteElixr Mods Features pack brings in new features to your server such as:
Admin Commands,
Homes,
Player to Player TPS,
Communal Warp Points,
Daily Rewards,
Messages Of The Day,
Jokes,
Shop Informatics
Basic User Commands
EM Framework Is included in this pack. it is also required!
Elixr Mods Framework for information on the em-framework
Installation Instructions:
Download Zip File,
Unzip into your mods folder,
Run the server:
Known Bug: After configuring the AFK module the server needs to be rebooted for it to start working, looking into this.Here is a full list of all the features included in this pack!
Administration (em-admin.dll) - Requires em-framework.dll
CodeAFK Module - Afk Checking Module to boot players after x amount of time - "/afk-timer 60" AFK Timer will be set for 60 minutes Un Claim All - Un claim All The land owned by the Player name - "/unclaim-all Joe" All of joes land will be unclaimed TP Here - Teleport Other Players to you with much more ease - "/tp-here Joe" Joe will be teleported to me Meteor Toggle - Toggle the Meteor from in game - "/meteor-on/off"
Easy Commands (em-commands.dll) - Requires em-framework.dll
CodeLast Online - Check when a player was last online easily - "/lastonline Joe" Joe Has been Offline for X time Player Stats - Check a players stats out - Tells you if they are an admin, dev, online time, Food point rate etc - "/stats joe" Election Check - See who the current leader is and if the election is running or not - "/election" Rules - This apart of it, but mostly not used given the new system that we are brining out Version - Check to see what version of our kit you are using when reporting bugs etc Online - Displays a list of online citizens, - "/online" Admins - Displays a list of all admins on the server - "/admins" - Admins Online - "/admins-online" Top 10 Players - Displays the top 10 players according to Activeness/Richness - "/top"
(edited)
Home Module (em-home.dll) - Requires em-framework.dll
Code
Display MoreNow using the Groups System use of the GoHome (/gohome) command must be assigned to a group to be used, use of the AddHome (/home-add) command must be assigned to a group to be used, /home configurehomes (/home-config) uses 4 settings when setting the config: Max, cost, count Usage: /home-config setting, value // all values are ints, Max - Total amount of times they can go home per day, Cost - Cost of calories per returning home 0 to disable Count - Total amount of homes they can set /home-myinfo or "/home homeinfo" can be used by anyone without needing to be in a group /home-del or "/home removehome" can be used by anyone without needing to be in a group /home groupconfigurehomes groupname, setting, value or "/home-grpconfig groupname, setting, value" Uses the same settings as the default settings for reference but sets a config per group, Group max home tps can not be less then the server default unless set to 0 which is unlimited teleports for the day ie: /home-grpconfig vip, max, 30 To assign the gohome and the home-add command to a group: /grant-command gohome, groupname /grant-command addhome, groupname
Shop Informatics (em-informatics.dll) - Requires em-framework.dll
CodePrices - Fetch Prices of all of a specific item being sold anywhere in the world - "/prices Log" Will fetch the price of every log being sold around the world
Player Jokes (em-jokes.dll) - Requires em-framework.dll
CodePlay jokes on people or do simple text based actions Slap - You can slap a friend in a random body part - "/slap joe" Punch - You Can punch a friend in a random body part - "/punch joe" Wave - You can wave at a friend - "/wave joe" Hug - You can hug a friend - "/hug joe" Get a random Joke! - "/joke" Adult Jokes! - Toggle adult jokes on or off for the server "/adult-jokes" Default setting is off Suggest a joke! - Suggest a joke to be featured in the kit! - "/suggest-joke" send us the joke you would like us to consider adding
Messages Of The Day! (em-motd.dll) - Requires em-framework.dll
CodeTimer - Set how ofter the motd's should pop up - "/modt-interval xx" This is set in seconds Fast / Slow Mode - Set the messages to be quick to post quick to remove or post normally and hang around a bit "/motd-mode fast/slow" Turn it on Or off! - This should auto start on server restart but incase it doesn't - "/motd-on/off" Add/Remove MOTD's - Add new MOTD's or remove old ones! "/motd-add message" "/motd-remove messageid" List Your MOTD - gives you a list of the MOTD's and their Message ID - "/motd-list" Send the next message - Skip the timer and send the next message in the list now! - "/motd-send" you can also use this to test motd's **Note: When adding a new motd do not use "," as this will break the motd, you must type it all in a single sentence or use "!" per break, alternativly you can edit the .json file where the motd is stored, this requires a restart and to be saved in the file format that it was opened in**
Teleport To Players/TP/TPA (em-tp.dll) - Requires em-framework.dll
Code
Display MoreNow using the groups system: use of the request (/tpr) command must be assigned to a group to be used, /teleportation configuretp (/tp-config) uses 4 settings when setting the config: Max, cost, expiry, cooldown Usage: /tp-config setting, value // all values are ints, Max - Total amount of teleports per day, Cost - Cost of calories per tp 0 to disable expiry - How long a teleport request stays active in seconds cooldown - how long they have to wait to use the tpr command again, in seconds /tpa or /teleportation accept can be used by anyone without needing to be in a group /teleportation groupconfiguretp groupname, setting, value or "/tp-grpconfig groupname, setting, value" Uses the same settings as the default settings for reference but sets a config per group, Group max teleports can not be less then the server default unless set to 0 which is unlimited teleports for the day ie: /tp-grpconfig vip, max, 30 To assign the tpr command to a group: /grant-command request, groupname
Warp Points (em-warp.dll) - Requires em-framework.dll
Code
Display MoreNow using the Groups System use of the "/warp warpto" (/warpto) command must be assigned to a group to be used, /warp configurewarp (/warp-config) uses settings when setting the config: Max, cost, cooldown Usage: /warp-config setting, value // all values are ints, Max - Total amount of times they can go home per day, Cost - Cost of calories per returning home 0 to disable Cooldown - Time they need to wait before being able to warp again /warp-list or "/warp warplist" can be used by anyone without needing to be in a group /warp groupconfigurewarp groupname, setting, value or "/warp-grpconfig groupname, setting, value" Uses the same settings as the default settings for reference but sets a config per group, Group max warp tps can not be less then the server default unless set to 0 which is unlimited teleports for the day ie: /warp-grpconfig vip, max, 30 To assign the WarpTo command to a group: /grant-command warpto, groupname
-
We might implement this to the tool as well:
"this.MaxDeathRate = 0.0xxx"
I want to make a ui based tool for editing eco files easier -
sometimes, some can even generate to the surface (mostly cold or copper)
-
Iron ore is found in deserts, the generation of it has changed, think of the generation as like a big bunch of grapes
-
Kye hat eine neue Datei hinzugefügt:
KyeSeptember 14, 2020 at 11:06 AM QuoteThanks to Fyre For the initial Design of this little app, after some small tweaks and changes to make your life easier here is something for you
The Plant Life Changer:
This is an exe file with a config file, we will update this to have more config options,
Here is how it works:
Unzip into your servers Root directory, Not the mods folder.
Edit: PlantChanger.dll.config (with notepad++ or something similar) and only change these lines:
Code<add key="DoPlants" value="true"/> //This tells the app to change the plant files, if you set this to false it will do nothing <add key="DoPlantMaturity" value="false"/> // This tells the app to change the plant maturity, true or false only (must be lowercase) <add key="PlantMaturity" value="0.3"/> //This is the plant maturity value you wish to change to <add key="DoPlantDeathRate" value="true"/> // This tells the app to change the plants Max Death rate, true or false only (must be lower case) <add key="PlantDeathRate" value="0.001"/> //This is the new Max Death Rate ( the lower the number the slower the plants die) <add key="AutoReplace" value="false"/> //This tells the app to move all the new edited files to the servers mods folder into the correct place, it also saves a copy of the vanilla files for you (provided you haven't changed them, it would then copy the edited files you have)
Change the value to your desired value, How the maturity value works is: 1.0 is 1 day, 0.5 is 12 hours, 0.25 is 6 Hours, 0.125 is 3 Hours etc
The default is set to 0.3 which is just over 6 hours
Once done run the .exe
This will then make a backup Directory with the modded files under: EM-PlantChanger/Plant
Copy your old plant files from: Mods/AutoGen/Plant to a safe location the replace the old ones with the new ones located in the backup dir, we will add more options to this later on for tress growth specifically etc
next release will have a save vanilla files only feature as well as the auto move -
-
Kye added a new version:
FileWorld Edit - Obsolete Link
World Edit has moved! Don't worry! World Edit is still fully supported and still being developed!KyeSeptember 10, 2020 at 9:42 AM QuoteFixed:
Fixed /replace command not recognizing Replacement blocks properly
Added:
/weversion command will output the version of the world edit for bug reports -
thats weird, give me a few and ill get some more info for you
-
install the .net core sdk and try again, the runtime can sometimes be weird by itself
-
Kye hat eine neue Datei hinzugefügt:
FileWorld Edit - Obsolete Link
World Edit has moved! Don't worry! World Edit is still fully supported and still being developed!KyeSeptember 10, 2020 at 9:42 AM QuoteMampf's World Edit Updated to Eco 9.0 and made standalone, Doesn't require anything else just this mod, will do icons and a tool for it late
This plugin is open source:
https://github.com/TheKye/Eco-WorldEdit
Join the Eco Modding Community on discord! : https://discord.gg/5BdXErQ/wand Gives you the World Edit selection tool (left and right click to select an area).
/rmwand Remove wand
/set <block> Set the selection to the desired blocktype.
/replace <replaceBlock> <desiredBlock> Lets you replace a specific block of a selection with a desired block.
/replace <desiredBlock> Replace everything except air with desired block
/walls Creates a wall inside the selection.
/expand <amount> <direction> Resizes the selection in the direction where you are looking at
/contract <amount> <direction> opposite of expand
/shift <amount> <direction> move selection
/move <amount> <direction> move blocks in selection
/up <amount> Teleports you up in the air.
/stack <amount> <direction> "Stacks" the current selection
/copy Copies a selection.
/paste Pastes a copied selection from clipboard.
/rotate <degree>[/ICODE] Rotate the clipboard
/undo Revert the last command
/import <name> Import a schematic file into clipboard
/export <name> Export the clipboard into a file
/distr Show information about current selection
Changed:
/replace blocktochange, blocktochangeto
/set, /walls now will convert to lower to ensure maximum compatibility
Added:
Commands
/Setpos1
/SetPos2
Known Bugs:
leaves plants in /pastes -
Kye added a new version:
FileElixr Mods Framework
Elixr Mods Framework is an extensible system for eco designed for modders and server owners alike! it provides great additions to your server as well as housing great extras for modders! Let us help you give your admins more power and less temptation!KyeJanuary 13, 2022 at 5:49 AM QuoteFixed issue with the chat manager sendtoplayer defaulting to the server not the player
-
Kye added a new version:
FileElixr Mods Framework
Elixr Mods Framework is an extensible system for eco designed for modders and server owners alike! it provides great additions to your server as well as housing great extras for modders! Let us help you give your admins more power and less temptation!KyeJanuary 13, 2022 at 5:49 AM QuoteFix:
Fixed an issue where adding a command to a group would not work:
Reference issue overlapping -
Kye hat eine neue Datei hinzugefügt:
FileElixr Mods Framework
Elixr Mods Framework is an extensible system for eco designed for modders and server owners alike! it provides great additions to your server as well as housing great extras for modders! Let us help you give your admins more power and less temptation!KyeJanuary 13, 2022 at 5:49 AM QuoteJoin the Eco Modding Community on discord! : https://discord.gg/5BdXErQ
The Elixr Mods Framework is designed to make modding easier for eco, mods more compatible, and extend what you can do in your server,
As of Version 2.1.0 There are some big changes and the info found here may not be totally correct.
For all documentation on the Elixr Mods Framework please visit this link: https://elixrmods.com/docs/elixr-mods/introThe documentations section includes a left side nav bar for all sections we have documentation for ( im still not done with everything outside of em-framework will do them as i release more things) and Right side navigation usually used for Page Navigation, the only exception is the introduction page which has quick links to each part of the framework under EM Framework Namespaces, the rest are page navigation links
The em-framework documentation is for Version 2.1.0 Onwards.Permissions System
While our Permissions system is still under development this is some basic documentation on what we have so far and will be updated as we add more features to it:
Using the EM Permissions system is easy,
What the EM permissions system brings to you is the ability to be able to create new user groups and give them access to commands so long as they are in that group,
Example,
Joe donated to your server, You can create the group called "VIP" and add joe to that group,
You can then assign commands to that group for joe to use:
Say you have teleport commands on the server, you can add the teleport command to the group VIP then Joe can use the teleport command,
Usage for server admins:
By default there are 2 user groups, Admin and Default, These 2 groups can not be deleted
If the user is already an admin they don't need to be added to the admin group, but if the user isn't an admin you can ad them to the admin group and assign your admins certain commands, IE: kick, mod based commands or what ever you feel like
Here is a list of all the commands that a admin/ owner in the server can use:
Commands for giving groups permissions to commands
Code
Display More"/CommandPermissions grant command, groupname " // Used to give groups permission to use a command: Eg: "/CommandPermissions grant fly, VIP" //this gives the group VIP access to use the /fly command You cannot assign shortcuts to a command, ie: ElixrMods Auto door has a shotcut command: /ad-on doing: "/CommandPermissions grant ad-on, VIP" will not work "/CommandPermissions revoke command, groupname" // Used to revoke a groups permission to a command: Eg: "/CommandPermissions revoke fly, VIP" // Will take away the ability for the VIP group to use the /fly command You cannot use shortcodes when revoking a command ie: doing: "/CommandPermissions revoke ad-on, VIP" will not work "/CommandPermissions setbehaviour admin/user, true/false" //this is used to allow Admins or users default access to their default commands: ie: "/CommandPermissions setbehaviour admin, false" // will mean any user that was made an admin will not have access to admin commands anymore and you will need to assign then use of admin commands via a group ie: Group Admin. "/CommandPermissions setbehaviour user, false" // will mean any user that is not in a group or an admin will not be able to use any command without being in a group
Shortcuts:
Code"/grant-command command, groupname" "/revoke-command command, groupname" "/behaviour-command admin/user, true/false"
The "command" In the commands is any command in the eco game, regardless if its registered by a mod or a core command!
Creating Groups and adding users to groups commands
Code"/groups addgroup groupname" // Used to create a new group "/groups deletegroup groupname" // used to delete a created group "/groups listgroups" // will list all groups you have on the server "/groups grouppermissions groupname" // Will list all the permissions the named group has "/groups addusertogroup username, groupname" // will add a user to a selected group or will creat the group then add the user too it "/groups removeuserfromgroup username, groupname" // will remove a user from that group, if the group doesn't exist it will tell you "/groups forcesave" //forces the groups system to save everything just incase a save fails
All commands that use a username are case sensitive so make sure your naming is correct otherwise it will say that user doesn't exist
Shortcuts:
Code"/grp-add groupname" "/grp-del groupname" "/grp-list" "/grp-perms groupname" "/grp-adduser username, groupname" "/grp-remuser username, groupname" "/grp-fs"
Config File Structure - If you are not comfortable editing this file then please just use the in game commands - Located in Configs/Mods
ElixrMods-GroupsDate.json
Code
Display More{ "Groups": [ { "GroupName": "groupname", // The Name of each group "GroupUsers": [ { "Name": "Username", // The username of the person added to the group "SlgID": "slgid", // their slgid if present "SteamID": "steamid" // their steamid if present } ], // Each user in this group "Permissions": [ //each command this group has access too { "$type": "Eco.EM.Permissions.ChatCommandAdapter, em-framework", //do not edit this "Identifier": "Command" //Command name }, { "$type": "Eco.EM.TP.TeleportConfig, em-tp-9", //This is a custom configuration for another mod using the groups system Do not edit this "MaxTeleports": 30, // config setting "CalorieCost": 250, //config setting "CooldownSeconds": 15, // config setting "Expiry": 15 //config setting } ] } ], "AllUsers": [ // Each user that logs into the server { "Name": "UserName", // Their username "SlgID": "slgid", //Their SLG Id - Can be blank if slg id not present "SteamID": "steam64id" //Their Steam ID - Can be blank if steamid not present } ] }
For Modders:
There isn't much you need to do to be able to use our permissions system,
To enforce the use of the permissions system you can do the following:
When creating a Chat Command set the following:
Code[ChatCommand("Description", "Shortcut", ChatAuthorizationLevel.Admin)] [ChatSubCommand("Command Parent", "Description", "shortcut", ChatAuthorizationLevel.Admin)]
By setting the commands to be used by admins means server owners can assign these commands to any group and allow users in that group to use these commands regardless of them being admin level commands, this also means a user needs to be in a group to use these commands
If you set them like this:
Code[ChatCommand("Description", "Shortcut", ChatAuthorizationLevel.User or Leave Blank)] [ChatSubCommand("Command Parent", "Description", "shortcut", ChatAuthorizationLevel.User or Leave Blank)]
Any user will then be able to use the command unless the server owner turns off users being able to use user commands, However this may cause issues with users using /? command for help with a list of basic commands they would normally be able to use,
Extensibilty:
Modders can also extend on the permissions system with their own commands for other features, This requires you to reference our em-framework.dll and you can do some of the following with it:
Codenamespace Eco.EM.Groups [ChatSubCommand("CommandPermissions" //This sets your command to be a sub command of our permissions system and allows you to use: /permissions yourcommand, "Your Command Description", "Your Command shortcut IE: Instead of using /CommandPermissions yourcommand you can use /yourcommand", ChatAuthorizationLevel.Admin // this enforces it to be usable by the permissions system and prevents un-authorized users from using the command, admins by default get access to this)]
Extra info
This is the using hook.
using Eco.EM.Groups;
CodeGroupsManager.API.GetGroup(string group, bool true/false); //This will get a group, if it doesn't exist specify if it will create the group or not GroupsManager.API.AllGroups() //This will get all of the available groups GroupsManager.API.UserPermitted(User user, permssion) //This will get all the groups the user is in and check if any of those groups have permission to use the commands Ease Of Use: public static void yourfunction(string groupName) { Group group = GroupsManager.API.GetGroup(groupName); // assign group to a var to make your life easier when looking for groups } GroupsManager.API.SaveData(); // Used to save your group based configuration to the groups file useful if you want a group to be able to have specific settings
Usings (covers the file manager and chat base):
File Manager:
CodeFileManager<DataStructure>.ReadFromFile(Base.SaveLocation, filename); filename you can set FileManager<DataStructure>.WriteToFile(datainput, Base.SaveLocation, filename);
You can also do this with the file manager for your own folder
CodeFileManager<DataStructure>.WriteToFile(datainput, Base.SaveLocation + "/Foldername", filename); FileManager<DataStructure>.ReadFromFile(Base.SaveLocation + "/Foldername", filename);
The file manager will automatically create the directory if it doesn't existYou can set the file name as a string const and use that or use a direct string:
Codeconst string filename = "MyMod"; FileManager<DataStructure>.WriteToFile(datainput, Base.SaveLocation + "/Foldername", filename); or FileManager<DataStructure>.WriteToFile(datainput, Base.SaveLocation + "/Foldername", "MyMod");
Should you not want to use the Base.SaveLocation you can use your own:CodeFileManager<DataStructure>.WriteToFile(datainput, "/Mods/YourFolderHere", filename); FileManager<DataStructure>.ReadFromFile("/Mods/YourFolderHere", filename);
I recommend using the base save location as in case the mods folder gets deleted all your config files will remain safe, All configs are saved in .json formatFor Configs:
Codepublic PluginConfig<ConfigName> ConfigName; //your data structure public IPluginConfig PluginConfig => ConfigName; public void LoadConfig() { ConfigName = new PluginConfig<ConfigName>(configFileName // const string or direct string); } public void SaveConfig() { ConfigName.SaveAsync(); }
Tweaks may be required on your end but you can structure it how you like
Chat Manager
here is for sending server messages:
Codepublic Message( string content ) // for sending server based messages is also temporary public Message( string content, MessageType messageType ) // for sending server based messages that are not temporary public Message( string content, User user ) // for sending to user is also temporary public Message( string content, Player player ) //for sending to player is also temporary public Message( string content, User user, MessageType messageType ) // for sending to user not temporary public Message( string content, Player player, MessageType messageType ) //for sending to player is not temporary public Message( string content, MessageCategory chatCategory, DefaultChatTags defaultChatTags ) // for sending server messages and selecting chat tags and chat category is temp public Message( string title, string content ) // server notifications with title, message type is either popup or annoucement
Example:
Codebool Send( Message Message ) //To server or player internal bool SendToPlayer( Message Message ) // to player and switches message type: infopanel - annoucement, okboxloc - popup, msglocstr - temp, servermessagetoplayer - perm internal bool SendToServer( Message Message ) // to server as annoucement, popup, temp, perm ChatBase.Send(new ChatBase.Message(string.Format(Localizer.DoStr(appName + "{0} has been teleported to you."), Requester.Name), Receiver)); // this uses vars in text and sends to a user ChatBase.Send(new ChatBase.Message(string.Format(Localizer.DoStr(appName + "{0} has been teleported to you."), Requester.Name), reciever, ChatBase.MessageType.Type)); This will allow you to say if its a popup or a perm message etc ChatBase.Send(new ChatBase.Message(string.Format(Localizer.DoStr(""), ChatBase.MessageType.Type))); //this will send to the server ChatBase.Send(new ChatBase.Message(string.Format(Localizer.DoStr(""), ChatBase.MessageType.Type), user)); //this will send to the user
It can also be simplified:
CodeChatBase.Send(new ChatBase.Message(Localizer.DoStr("Message"), user)); //This sends to a user ChatBase.Send(new ChatBase.Message(Localizer.DoStr("Message"), user, messagetype)); //This sends to a user with a specified messagetype like a popup
There is more to the Custom Chat manager but these will all be included on the website, these are temporary docs for now
Chatmanager Simplified: Easy How To Use:
CodeChatBase.Send(new ChatBase.Message(string content, user, ChatBase.MessageType.Temporary)); //Will send a temporary message to the user ChatBase.Send(new ChatBase.Message(string content, user, ChatBase.MessageType.Permanent)); // Will send a permanent message to the user ChatBase.Send(new ChatBase.Message(string content, user)); //Will default to a temporary message to the user ChatBase.Send(new ChatBase.Message(string title, string content, user)); //Will send an Info Panel to a user ChatBase.Send(new ChatBase.Message(null | "", string content, user)); //Will send a Popup Ok box to the user ChatBase.Send(new ChatBase.Message(string content)); // Will send a Temporary message to all online users on the server ChatBase.Send(new ChatBase.Message(string content, ChatBase.MessageType.Permanent)); //Will send a Permanent message to all online users on the server ChatBase.Send(new ChatBase.Message(string title, string content)); //Will send an info box to all online users on the server ChatBase.Send(new ChatBase.Message(null | "", string content)); //Will send a Popup Ok Box to all online users on the server ChatBase.Send(new ChatBase.Message(string content, ChatBase.MessageType.GlobalAnnoucement)); //Sends a global annoucement to all players on the server ( or think of it as adding a new notification in the notifications section ) this is great for leaving notifications for offline users
String Sanitizerour string sanitizer emits all text .tolower() and removes spaces after the "," so you can have text like this read in commands easily: /somecommand thisthing, that thing
It will remove the spaces at the end and start of anything after a comma to allow for more acurate reading of user input
To use: string = Base.Sanitize(string); example:
Code
Display Morepublic static void somecommand(User user, string setting, string something) { something = Base.Sanitize(something); } /somecommand Food, Pineapple will read as: food,pineapple or public static void somecommand(User user, string setting, string something, int amount) { something = Base.Sanitize(something); amount = Base.Sanitize(amount); //this is an int and will not work even if you set .ToString() like so: amount = Base.Sanitize(amount.ToString()); // this will throw an error, this sanitizer is designed for strings } /somecommand Food, Pineapple, 5 will read as: food,pineapple, 5
Using this can help with conflicts similar to our group system, we have it set so all group names are set to lower so you don't accidently create 4 of the same group by using different cases: ie: Vip, vip, VIp, VIP would all return as vip
Our sanitizer helps protect against whitespaces as well, preventing our groups system from adding in 2 groups of the same name but one containing a white space: ie: "vip" " vip" making sure you get the same group every time -
Kye updated [plain]Elixr Mods[/plain] with a new update entry:
[plain]Hopefully Fixes the Prior issues people where having[/plain]
QuoteThis is just a re-upload as the other upload seemed broken, the new zip folder you should get its called mods.6.zip