MyEssentials / MyTown2-Protections

All the protection files updated to the latest version for the MyTown2's protection system.
7 stars 11 forks source link

Portal Guns Protection #79

Closed Bydon closed 3 years ago

Bydon commented 9 years ago

As of 1.5.1, the Infinity modpack has added the Portal Gun Mod, and you can both create portals in towns (which could be against the will of the owner, or used to grief since you can place a portal on the moon and suck in all the blocks in an area around the portal on the world), and pick up blocks by pressing 'g'.

dariusc93 commented 9 years ago

It may be possible to block it by using reflection and monitor the projectile object.

krwminer commented 9 years ago

Blocking the portals looks pretty easy. Still checking about the pick up blocks part.

dariusc93 commented 9 years ago

@krwminer That should also be easy. I have yet to look at the source though which I may do in a bit.

krwminer commented 9 years ago

The pick up part I could handle by putting a range of say 10 for the gun use. The guns create a PortalBall entity which can be protected against.

@dariusc93 if you are so inclined, feel free to implement it. There are a ton of examples now to work from.

I will not be able to get to it before tonight after work.

krwminer commented 9 years ago

I take that back, it uses a command for pickup. Not sure how we protect against that, not as easy as I thought.

cjm721 commented 8 years ago

This same issue applies for the Gravitygun with its pickup code.