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:

use Case

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 :)

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of kolorafa kolorafa Mar 17, 2013 at 10:30 UTC - 0 likes

    @kubson97: Go

    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: Go

    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.

  • Avatar of kubson97 kubson97 Mar 16, 2013 at 16:57 UTC - 0 likes

    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.

  • Avatar of Darius013 Darius013 Jan 13, 2013 at 14:07 UTC - 0 likes

    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

    Related ticket: #4
  • Avatar of kolorafa kolorafa Jan 10, 2013 at 10:56 UTC - 0 likes

    @rvoegeli: Go

    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)

  • Avatar of rvoegeli rvoegeli Jan 09, 2013 at 20:46 UTC - 0 likes

    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?

    2013-01-09 21:44:19 [SEVERE] Could not pass event ResidenceFlagCheckEvent to rescreative v1.0
    org.bukkit.event.EventException
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    	at com.bekvon.bukkit.residence.protection.ResidencePermissions.playerHas(ResidencePermissions.java:55)
    	at com.bekvon.bukkit.residence.listeners.ResidenceBlockListener.onBlockBreak(ResidenceBlockListener.java:69)
    	at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    	at net.minecraft.server.v1_4_6.PlayerInteractManager.breakBlock(PlayerInteractManager.java:282)
    	at net.minecraft.server.v1_4_6.PlayerInteractManager.dig(PlayerInteractManager.java:131)
    	at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:563)
    	at net.minecraft.server.v1_4_6.Packet14BlockDig.handle(SourceFile:46)
    	at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
    	at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
    	at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
    	at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
    	at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
    	at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
    	at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
    	at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
    	at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.lang.IllegalAccessError: tried to access field com.bekvon.bukkit.residence.event.ResidenceFlagCheckEvent.override from class me.kolorafa.rescreative.rescreative
    	at me.kolorafa.rescreative.rescreative.flagCheck(rescreative.java:178)
    	at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    
  • Avatar of Melekaiah Melekaiah Dec 07, 2012 at 13:31 UTC - 0 likes

    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

  • Avatar of kolorafa kolorafa Dec 07, 2012 at 08:14 UTC - 0 likes

    @Melekaiah: Go

    clearinv doesn't disable changing GM, turn on debug and check if it runs or not.

    (and create ticket ;)

  • Avatar of Melekaiah Melekaiah Dec 06, 2012 at 23:13 UTC - 0 likes

    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.

    Last edited Dec 06, 2012 by Melekaiah
  • Avatar of Nightiky Nightiky Nov 03, 2012 at 02:43 UTC - 0 likes

    @kolorafa: Go

    Thanks, that would be wonderful if it could work!

  • Avatar of kolorafa kolorafa Nov 02, 2012 at 23:29 UTC - 0 likes

    @Nightiky: Go

    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.

Facts

Date created
Jun 08, 2012
Categories
Last update
Jan 10, 2013
Development stage
Release
Language
  • enUS
  • plPL
License
GNU General Public License version 3 (GPLv3)
Curse link
Residence Creative
Downloads
7,944
Recent files
  • B: v1.1 for 1.5.1 Jan 10, 2013
  • B: v1.0 for CB 1.3.2-R0.1 Sep 08, 2012
  • R: v0.2 for CB 1.3.1-R2.0 Jun 08, 2012
  • B: v0.1 for CB 1.2.5-R3.0 Jun 08, 2012

Authors