TotalFreedomMod icon indicating copy to clipboard operation
TotalFreedomMod copied to clipboard

Limit Changes

Open ExactObject opened this issue 10 years ago • 3 comments

The current /limit features auto de-ops people who do /limit but the person will generally get re-opped. I was thinking of something more refined like allowing a limit change to a certain maximum that won't likely cause harm (e.g. 10000?) and than auto-resetting back to 500 or a 1000 as default after a few minutes. If the person did something like /limit -1 or something near infinity, it would deop them and post a red warning that the limit has been changed by 'name' to an unsafe amount and reset back to default unless an admin did it.

ExactObject avatar Feb 17 '15 21:02 ExactObject

Probably should be moved to the WE Repo tracker.

Wild1145 avatar Feb 17 '15 22:02 Wild1145

So maybe we could fine tune the actual WE plugin? I am not sure if there is a method to set their limit, but if there is, we could do (something along the lines of) this:

int limit; (On the command) if (limit > 10000 || limit < -1) { //Deop and reset limit return true; } if (limit == 10000) { //Reset after a few minutes, via a bukkitrunnable return true; }

setLimit(limit); (Or something similar)

Hockeyfan360 avatar Feb 17 '15 22:02 Hockeyfan360

I think that is more or less what currently happens, but we use the built in original limiting system so as to modify as little code as possible within other projects. This would require more significant changes to the WorldEdit project, and its about balancing the perks that you will get, with the development time and risks of doing it.

Wild1145 avatar Feb 17 '15 22:02 Wild1145