Residence Creative
Very simple plugin adding creative mode to your Residences
Requires
Why the plugin
Sometime your friend want to build something, but he is tired of digging, you don't want him to give creative everywhere, you can give him creative only on his project. You can create residence, then set build and creative flags and disable container. Remember to let the owner of residence be you, so he can't change flags.
What does it do
It adds "creative" flag to Residence plugin, that you can add to your residence.
If you enter residence with creative flag, your survival inventory will be stored in memory (or files), cleared, you will get creative mode with blocked dropping of items.
It disable itself when someone is OP or have rescreative.ignore perm, to not change your gamemode every time you fly over other residences.
Configuration
- debug - display debug in console, default: false
- clearinv - enables clearing/restoring inventories from survival and creative
- usefiles - use files as survival inventory save - may have some game impact
Commands
- /rescreative - toggle console debug
Permissions
- rescreative.ignore - player with this permission will be ignored
- rescreative.toggledebug - access to /rescreative command
Future Idea
- Interact with permissions to block overusing creative.
How to install
Just drop the jar file in your plugins directory and restart your server.
How to use
Do not type any commands, do not set any permissions!
After install admin just type /res [residence name] creative true, and anyone who gets to that residence will be in creative mode.
Setting permission 'rescreative.ignore' or giving OP disables the plugin , that will not change game mode.
Optionally if you want your players to be able to set the flag by them self's or to be default on residence, check Residence config.
It only activate creative without flying, to fly you need Residence Fly
Best solution to create residence with subzones like this:
Source
Included in jar
Known Bugs
- Lots of overuse possibilities.
- People could still use orbs potion, probably you could blacklist it, if you know how, comment.
Suggestions
Do you like to change something?
Have some idea?
Comment :)
I'm just doing what the warning message asked me to. No stack traces that occur alongside this.
@kubson97
No, it only disable (change from creative to survival) only when plugin did set creative, it was designed to add creative to specific plots/players when they need it by admins. It doesn't control in any way if player is in creative or not.
But yes, you can simple modify few lines and it will just forcibly change gamemode, but still i think players will exploit it by going to shop and then changing gamemode.
@Darius013
The banned items work like a ban list, if they are found, whole inventory is cleared on inventory close, but i need check because it could miss items when they are stacked.
I personally don't use it from some time now, because i did drop creative world idea and disallow even creative world after my players build a greate large town and then destroyed it with tnt for fun ... they were boooored because it was too easy on creative :)
But i will check stacked problem, and i will fix it if its is what i think.
Does it block creative if someone with gm enters into residence with creative: false. I need it because i have shop on server, and residence to protect shop, but players with gm can sell items for free. I would like to strictly use only survival mode.
Hello, I have the plugin and the banned items list doesn't work because when they press Shift and click the item it gives the 64 stack so it doesn't remove it from the inventory! help please. thanks
@rvoegeli
Fixed in 1.1
Because of that "blockContainers" feature didn't work from Residence 2.6.5, so:
Residence 2.6.5 and newer - ResCreative 1.1 Residence 2.6.4 and older - ResCreative 1.0 (but doesn't work without inventory changes)
HI,
I get repeated error using Bukkit 1.4.6, Residence 2.6.5 and ResCreative 1.0 (also using ResFly, Multiverse and more).
Appently the error occours when users enter oder leave their residences with creative enabled for them. The GameMode gets updated properly but the error is spamming my server.log ;)
Anything I can do?
i made a ticket :). i hope it has enough info.
you will see that im not using 1.3.2 either, so most likely this is caused by bukkit update. but ive noted that, in the hopes that when we do get an RB to build against, this may help?.
and with 1.4.5 beta r02 this clearinv false is throwing an error in console.
[rescreative] DEBUG: Error while change to survival - Melekaiah
@Melekaiah
clearinv doesn't disable changing GM, turn on debug and check if it runs or not.
(and create ticket ;)
i Cant get this to work reliable in conjuction with either
CreativeControl or Limited Creative.
I am using multiinventory i guess. which could be an issue. is there a way to have this plugin JUST change the game mode and not care about the inventories at all ?
if i turn clearn inventory to false. then gamemode doesnt update when i enter and leave.
@kolorafa
Thanks, that would be wonderful if it could work!
@Nightiky
I don't think that will be possible, but i could give it a try.
You can ban items, so they are removed on inventory close, but change items in crafting table probably will not be possible, i will check code later.
Would it be possible to disable/hide some items and blocks from interface so players dont see them? I want to give some players ability for creative in their residences, but i dont want them to use and see all blocks in creative menu. For example i want them to use only build blocks from first sheet and all other sheets would be empty if you understand me. I thought that this does "bannedItems" option in config file but it seems not working properly. In default config there are block like diamond block, silver block and so on disabled, but players can still use them. I tried to change it to ID of block but still, players can use them.
@Nightiky
It doesn't have any block types hardcoded, so it should work well with 1.4.2 without any changes, i will check it when will be recommended or at least i will install dev version on my server.
But let me know if you saw something to change.
Will this get updated on 1.4.2 with new blocks etc? Thanks!
@EmZon
/res ResName
or
/res set ResName ... ?
I experience that /res ResName creative true doesn't work, why?
@XYKbear
My mistake, on my test server i use both rescreative and resfly, and using both when you enter residence you will not have fly ability because resfly removes it while entering ...
2 solutions:
@kolorafa
Player enter the residence and switch to creative mode -> double click space bar and fly -> fly out the residence and toggle off creative,but can still fly everywhre and can't toggle off this unless landing in the residence and walk out or OP's commend.It's just like a cheats.
I think fly mode is a part of creative mode,so toggle off fly mode when toggle off creative is reasonable.
so...now I must install a Res fly plugin and set a fly flag to control? If yes.OK it's my mistake to disturb you,sorry~
@XYKbear
I still don't know the ansfer to my qustion, ...
How your players are able to fly? This plugin doesn't allow or disallow flying.
@kolorafa
no,I don't have use it.