Hidendra / LWC

Lightweight Protection for Chests, Furnaces, Dispensers, and more for the Minecraft server mod Bukkit
Other
167 stars 123 forks source link

[Feature Request] Rename Map command #196

Closed RustyDagger closed 12 years ago

RustyDagger commented 12 years ago

Many times i find that for one reason or another I need to rename a map This leads to many broken protections and much frustration for my users. not to mention the need for the cleanup command to be used to remove all the invalid protections.

So i would like to request a very simple admin command to rename a map would not not just need to change every entry in the DB? I could see how that could be bad if the DB was huge.

No doubt there is some fancy way to do this already with mysql but I'm not a wiz with that :(

Hidendra commented 12 years ago

Hello,

You can use this command to rename OLDWORLD to NEWWORLD:

/lwc admin updateprotections world = 'NEWWORLD' where world = 'OLDWORLD';

On 12/26/2011 4:58 AM, RustyDagger wrote:

Many times i find that for one reason or another I need to rename a map This leads to many broken protections and much frustration for my users. not to mention the need for the cleanup command to be used to remove all the invalid protections.

So i would like to request a very simple admin command to rename a map would not not just need to change every entry in the DB? I could see how that could be bad if the DB was huge.

No doubt there is some fancy way to do this already with mysql but I'm not a wiz with that :(


Reply to this email directly or view it on GitHub: https://github.com/Hidendra/LWC/issues/196

RustyDagger commented 12 years ago

oh boy that's a long command no wonder I never knew about it :o are the ' ' needed around the name?

Some of the more advanced commands like this might need some better documentation some where easy for server owners to find like a new page on bukkitdev..

Hidendra commented 12 years ago

Yes the single quotes (') should be around it.

I'm working on improving the wiki and moving it to github (which looks nicer than mediawiki) but progress is somewhat slow with Christmas just ending.

On 12/26/2011 7:07 PM, RustyDagger wrote:

oh boy that's a long command no wonder I never knew about it :o are the ' ' needed around the name?

Some of the more advanced commands like this might need some better documentation some where easy for server owners to find like a new page on bukkitdev..


Reply to this email directly or view it on GitHub: https://github.com/Hidendra/LWC/issues/196#issuecomment-3277419

RustyDagger commented 12 years ago

I tried this command today and i got an error in chat...

err: near "world": syntax error

I used the command as. /lwc admin updateprotections world = 'Safe' where world = 'Player'

Hidendra commented 12 years ago

Yes, I forgot 'SET' after updateprotections, like so:

/lwc admin updateprotections set world = 'Safe' where world = 'Player'

On 1/8/2012 9:22 PM, RustyDagger wrote:

I tried this command today and i got an error in chat...

err: near "world": syntax error

I used the command as. /lwc admin updateprotections world = 'Safe' where world = 'Player'


Reply to this email directly or view it on GitHub: https://github.com/Hidendra/LWC/issues/196#issuecomment-3406236

RustyDagger commented 12 years ago

arr that makes more sense you know its a wonder I didn't realize because i went and goggled what i needed to know to clean/rename it by hand.

For some reason also my admin clean up is not removing any protections that are from old maps that are no longer valid. was a little strange.

RustyDagger commented 12 years ago

herpa derp clean command is not working because its not connected to the mysql :o I'm so forgetful at times. I had to remove the config because some how the server shut down as lwc was converting them and it got a bit messed up... forgot to reput the info in lmao.