WorldGuardExtender icon indicating copy to clipboard operation
WorldGuardExtender copied to clipboard

Fixed Auto flags and added polygonal regions in claim command. Also removed sources from jar

Open Qveshn opened this issue 4 years ago • 2 comments

Details:

  1. Added version substitute from build.gradle to plugin.yml
  2. Remove sources (java) from jar
  3. clean task now also cleans target dir
  4. Use fake actor to add auto flags to region in claim command (Issue: #22)
  5. Added the ability to claim polygonal regions who have permission "worldguard.region.unlimited" (as WorldGuard does)

Qveshn avatar Oct 27 '21 04:10 Qveshn

  1. Sources must stay in jar. That's the most correct way of upholding the GPL license terms.
  2. The reason why real actor was implemented is to make actor-aware flags work. So using fully fake actor is not an option, a an actor wrapper must be made, that passes everything to real actor with the exception of permission checks.
  3. Use filesMatching('plugin.yml') { expand 'version': project.version } to substitute version

Shevchik avatar Oct 27 '21 23:10 Shevchik

The reason why real actor was implemented is to make actor-aware flags work. So using fully fake actor is not an option, a an actor wrapper must be made, that passes everything to real actor with the exception of permission checks.

"actor-aware flags" - I am not sure I understand this right. =\ Can you give me please the example of such "actor-aware" flag?

Hmm... As I understood, WorldGuard uses actor only to check permission and send him the message about the added flag. All I wanted to do was remove the permission check and suppress sending a message to the player about the added flag. Suppressing the message - because the original command was /rg claim ... and not /rg flag ....

Qveshn avatar Oct 28 '21 01:10 Qveshn