Join the Game4Freak Discord Get exclusive plugin sneak peeks, talk directly with VisEntities, never miss important updates, and unlock special discount codes!

creative.freeplacement

Puddingking

Customer
When a player enters the tree house, it changes the the server convar creative.freeplacement for everyone on the server. This allows players to build in monuments. When the player leaves the tree house build zone the convar is still true.

Is there a setting I'm missing? This is not good, plugin is unusable for servers who don't allow players building in monuments
 
It does not enable creative.freeplacement globally for everyone. It's only applied to the specific player inside the tree build zone

If it's staying enabled after they leave, something abnormal is happening there, because this isn't a common issue

I'll need more details from you, how exactly is the player leaving the zone? Walking out normally, disconnecting, teleporting, dying, etc. That'll help me pinpoint what's causing it
 
All they have to do is enter the tree house build zone, the server creative.freeplacement is set true by this plugin. I set it to false before they entered. The problem with the convar is it effects everyone. If they walk out or F1 kill, the convar does not get set back to true.


line 1201 in the .cs " RunServerQuiet("creative.freeplacement", "true");"

"creative.freeplacement" effects everyone on the server
 
Last edited:
All they have to do is enter the tree house build zone, the server creative.freeplacement is set true by this plugin. I set it to false before they entered. The problem with the convar is it effects everyone. If they walk out or F1 kill, the convar does not get set back to true.


line 1201 in the .cs " RunServerQuiet("creative.freeplacement", "true");"

"creative.freeplacement" effects everyone on the server
Creative is only enabled for that specific player. creative.freeplacement is just a true/false toggle, by itself it doesn't “give” anyone creative

What actually enables creative for a player is creative.togglecreativemodeuser. The plugin uses that to turn it on for the player while they're inside the tree zone, then it turns it back off the same way

creative.freeplacement, creative.freebuild,creative.unlimitedio, etc. are just toggles, they don't do anything unless the player is actually in creative mode

You shouldn't manually interfere with this by removing their creative yourself, that can desync things and stop the plugin from correctly cleaning up on zone exit, disconnect, or unload
 
If someone is in their tree house, anyone on the server can build in monuments and no build zones, if no one is in their tree house monuments and no build zones are blocked. This is what is happening on my server because creative.freeplacement is toggles true, which effects the whole server
 
If someone is in their tree house, anyone on the server can build in monuments and no build zones, if no one is in their tree house monuments and no build zones are blocked. This is what is happening on my server because creative.freeplacement is toggles true, which effects the whole server
Again creative.freeplacement does not give the entire server creative mode

From Facepunch's own documentation:
https://wiki.facepunch.com/rust/creative

Creative mode is applied per user using:
creative.togglecreativemodeuser username/id true/false

That is exactly what the plugin uses, it enables creative for the specific player inside the tree zone, and disables it again for that same player when they leave

creative.freeplacement, creative.freebuild, creative.unlimitedio, etc. are just server toggles. They only have any effect on players who are actually in creative mode. Regular players are still blocked unless they have creative enabled

If everyone on your server can suddenly build in monuments, then either:
  • Those players are also being put into creative by something else or
  • You have creative.allusers enabled, which applies creative to the entire server
Please double-check creative.allusers and creative.alwaysonenabled to make sure they weren't enabled accidentally
 
So I had creative.allUsers true so we had creative.unlimitedIO working. After testing, we had some issues with building on the current version, rolled back one version and no issues. I guess now we have to decide which one we want more....
 
Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart